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

Method reportError

lib/checkimpl.cpp:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include <utility>
28
29void CheckImpl::reportError(const std::list<const Token *> &callstack, Severity severity, const std::string &id, const std::string &msg, const CWE &cwe, Certainty certainty)
30{
31 // TODO: report debug warning when error is for a disabled severity
32 const ErrorMessage errmsg(callstack, mTokenizer ? &mTokenizer->list : nullptr, severity, id, msg, cwe, certainty);
33 mErrorLogger.reportErr(errmsg);
34}
35
36void CheckImpl::reportError(ErrorPath errorPath, Severity severity, const char id[], const std::string &msg, const CWE &cwe, Certainty certainty)
37{

Callers

nothing calls this directly

Calls 1

reportErrMethod · 0.45

Tested by

no test coverage detected