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

Method memsetErrorReference

lib/checkclass.cpp:1642–1647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1640}
1641
1642void CheckClassImpl::memsetErrorReference(const Token *tok, const std::string &memfunc, const std::string &type)
1643{
1644 reportError(tok, Severity::error, "memsetClassReference",
1645 "$symbol:" + memfunc +"\n"
1646 "Using '" + memfunc + "' on " + type + " that contains a reference.", CWE665, Certainty::normal);
1647}
1648
1649void CheckClassImpl::memsetErrorFloat(const Token *tok, const std::string &type)
1650{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected