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

Method reportErr

cli/cppcheckexecutor.cpp:592–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590#endif
591
592void StdLogger::reportErr(const std::string &errmsg)
593{
594 if (mErrorOutput)
595 *mErrorOutput << errmsg << std::endl;
596 else {
597 std::cerr << ansiToOEM(errmsg, mSettings.outputFormat != Settings::OutputFormat::xml) << std::endl;
598 }
599}
600
601void StdLogger::reportOut(const std::string &outmsg, Color c)
602{

Callers 2

check_internalMethod · 0.45

Calls 10

ansiToOEMFunction · 0.85
isCriticalErrorIdFunction · 0.85
addFindingMethod · 0.80
toXMLMethod · 0.80
endsWithFunction · 0.50
getGuidelineFunction · 0.50
getClassificationFunction · 0.50
findMethod · 0.45
emptyMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected