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

Method writeSuppr

cli/processexecutor.cpp:94–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void writeSuppr(const SuppressionList &supprs) const {
95 for (const auto& suppr : supprs.getSuppressions())
96 {
97 if (suppr.isInline)
98 writeToPipe(REPORT_SUPPR_INLINE, suppressionToString(suppr));
99 else if (suppr.checked)
100 writeToPipe(REPORT_SUPPR, suppressionToString(suppr));
101 }
102 }
103
104 void reportMetric(const std::string &metric) override {
105 writeToPipe(REPORT_METRIC, metric);

Callers 1

checkMethod · 0.80

Calls 1

getSuppressionsMethod · 0.80

Tested by

no test coverage detected