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

Method collectLogCheckers

lib/settings.cpp:787–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785}
786
787bool Settings::collectLogCheckers(bool* summary, bool* xmlReport, bool* textReport) const
788{
789 const bool s = safety || severity.isEnabled(Severity::information);
790 if (summary)
791 *summary = s;
792 const bool x = outputFormat == Settings::OutputFormat::xml && xml_version == 3;
793 if (xmlReport)
794 *xmlReport = x;
795 const bool t = !checkersReportFilename.empty();
796 if (textReport)
797 *textReport = t;
798
799 return s || x || t;
800}

Callers 2

logCheckerMethod · 0.80
writeCheckersReportMethod · 0.80

Calls 2

isEnabledMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected