| 506 | } |
| 507 | |
| 508 | void 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 |