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

Method unusedPrivateFunctionError

lib/checkclass.cpp:1425–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423}
1424
1425void CheckClassImpl::unusedPrivateFunctionError(const Token* tok1, const Token *tok2, const std::string &classname, const std::string &funcname)
1426{
1427 std::list<const Token *> toks{ tok1 };
1428 if (tok2)
1429 toks.push_front(tok2);
1430 reportError(toks, Severity::style, "unusedPrivateFunction", "$symbol:" + classname + "::" + funcname + "\nUnused private function: '$symbol'", CWE398, Certainty::normal);
1431}
1432
1433//---------------------------------------------------------------------------
1434// ClassCheck: Check that memset is not used on classes

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected