TODO: replace with ErrorMessage::fromInternalError()
| 1307 | |
| 1308 | // TODO: replace with ErrorMessage::fromInternalError() |
| 1309 | void CppCheck::internalError(const std::string &filename, const std::string &msg) |
| 1310 | { |
| 1311 | const std::string fullmsg("Bailing out from analysis: " + msg); |
| 1312 | |
| 1313 | ErrorMessage::FileLocation loc1(filename, 0, 0); |
| 1314 | |
| 1315 | ErrorMessage errmsg({std::move(loc1)}, |
| 1316 | "", |
| 1317 | Severity::error, |
| 1318 | fullmsg, |
| 1319 | "internalError", |
| 1320 | Certainty::normal); |
| 1321 | |
| 1322 | mErrorLogger.reportErr(errmsg); |
| 1323 | } |
| 1324 | |
| 1325 | //--------------------------------------------------------------------------- |
| 1326 | // CppCheck - A function that checks a normal token list |