| 1198 | } |
| 1199 | |
| 1200 | void CheckClassImpl::missingMemberCopyError(const Token *tok, FunctionType functionType, const std::string& classname, const std::string& varname) |
| 1201 | { |
| 1202 | const std::string ctor(functionType == FunctionType::eCopyConstructor ? "copy" : "move"); |
| 1203 | const std::string action(functionType == FunctionType::eCopyConstructor ? "copied?" : "moved?"); |
| 1204 | const std::string message = |
| 1205 | "$symbol:" + classname + "::" + varname + "\n" + |
| 1206 | "Member variable '$symbol' is not assigned in the " + ctor + " constructor. Should it be " + action; |
| 1207 | reportError(tok, Severity::warning, "missingMemberCopy", message, CWE398, Certainty::inconclusive); |
| 1208 | } |
| 1209 | |
| 1210 | void CheckClassImpl::operatorEqVarError(const Token *tok, const std::string &classname, const std::string &varname, bool inconclusive) |
| 1211 | { |
no test coverage detected