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

Function reportError

lib/checkimpl.h:53–55  ·  view source on GitHub ↗

report an error */

Source from the content-addressed store, hash-verified

51
52 /** report an error */
53 void reportError(const Token *tok, const Severity severity, const std::string &id, const std::string &msg) {
54 reportError(tok, severity, id, msg, CWE(0U), Certainty::normal);
55 }
56
57 /** report an error */
58 void reportError(const Token *tok, const Severity severity, const std::string &id, const std::string &msg, const CWE &cwe, Certainty certainty) {

Callers 15

nullPointerErrorMethod · 0.70
arrayIndexErrorMethod · 0.70
negativeIndexErrorMethod · 0.70
bufferOverflowErrorMethod · 0.70
terminateStrncpyErrorMethod · 0.70
argumentSizeErrorMethod · 0.70
objectIndexErrorMethod · 0.70

Calls 1

CWEClass · 0.70

Tested by

no test coverage detected