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

Method internalError

lib/cppcheck.cpp:1309–1323  ·  view source on GitHub ↗

TODO: replace with ErrorMessage::fromInternalError()

Source from the content-addressed store, hash-verified

1307
1308// TODO: replace with ErrorMessage::fromInternalError()
1309void 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

Callers

nothing calls this directly

Calls 1

reportErrMethod · 0.45

Tested by

no test coverage detected