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

Method StdLogger

cli/cppcheckexecutor.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 {
106 public:
107 explicit StdLogger(const Settings& settings)
108 : mSettings(settings)
109 , mGuidelineMapping(createGuidelineMapping(settings.reportType))
110 {
111 if (!mSettings.outputFile.empty()) {
112 mErrorOutput = new std::ofstream(settings.outputFile);
113 }
114 if (!mSettings.buildDir.empty()) {
115 mCheckersFile = Path::join(settings.buildDir, "checkers.txt");
116 }
117 }
118
119 ~StdLogger() override {
120 if (mSettings.outputFormat == Settings::OutputFormat::sarif) {

Callers

nothing calls this directly

Calls 3

createGuidelineMappingFunction · 0.85
joinFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected