| 1423 | } |
| 1424 | |
| 1425 | void 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 |
no test coverage detected