| 27 | #include <utility> |
| 28 | |
| 29 | void 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 | |
| 36 | void CheckImpl::reportError(ErrorPath errorPath, Severity severity, const char id[], const std::string &msg, const CWE &cwe, Certainty certainty) |
| 37 | { |