MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / operatorEqVarError

Method operatorEqVarError

lib/checkclass.cpp:1210–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1208}
1209
1210void CheckClassImpl::operatorEqVarError(const Token *tok, const std::string &classname, const std::string &varname, bool inconclusive)
1211{
1212 reportError(tok, Severity::warning, "operatorEqVarError", "$symbol:" + classname + "::" + varname + "\nMember variable '$symbol' is not assigned a value in '" + classname + "::operator='.", CWE398, inconclusive ? Certainty::inconclusive : Certainty::normal);
1213}
1214
1215//---------------------------------------------------------------------------
1216// ClassCheck: Use initialization list instead of assignment

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected