| 3303 | } |
| 3304 | |
| 3305 | void CheckClassImpl::copyCtorAndEqOperatorError(const Token *tok, const std::string &classname, bool isStruct, bool hasCopyCtor) |
| 3306 | { |
| 3307 | const std::string message = "$symbol:" + classname + "\n" |
| 3308 | "The " + std::string(isStruct ? "struct" : "class") + " '$symbol' has '" + |
| 3309 | getFunctionTypeName(hasCopyCtor ? FunctionType::eCopyConstructor : FunctionType::eOperatorEqual) + |
| 3310 | "' but lack of '" + getFunctionTypeName(hasCopyCtor ? FunctionType::eOperatorEqual : FunctionType::eCopyConstructor) + |
| 3311 | "'."; |
| 3312 | reportError(tok, Severity::warning, "copyCtorAndEqOperator", message); |
| 3313 | } |
| 3314 | |
| 3315 | void CheckClassImpl::checkOverride() |
| 3316 | { |
no test coverage detected