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

Method reportInternalChildErr

cli/processexecutor.cpp:508–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508void ProcessExecutor::reportInternalChildErr(const std::string &childname, const std::string &msg)
509{
510 std::list<ErrorMessage::FileLocation> locations;
511 locations.emplace_back(childname, 0, 0);
512 const ErrorMessage errmsg(std::move(locations),
513 "",
514 Severity::error,
515 "Internal error: " + msg,
516 "cppcheckError",
517 Certainty::normal);
518
519 if (hasToLog(errmsg))
520 mErrorLogger.reportErr(errmsg);
521}
522
523#endif // HAS_THREADING_MODEL_FORK

Callers

nothing calls this directly

Calls 1

reportErrMethod · 0.45

Tested by

no test coverage detected