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

Method suppressionToString

cli/processexecutor.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124 private:
125 static std::string suppressionToString(const SuppressionList::Suppression &suppr)
126 {
127 std::string suppr_str = suppr.toString();
128 suppr_str += ";";
129 suppr_str += std::to_string(suppr.column);
130 suppr_str += ";";
131 suppr_str += suppr.checked ? "1" : "0";
132 suppr_str += ";";
133 suppr_str += suppr.matched ? "1" : "0";
134 suppr_str += ";";
135 suppr_str += suppr.extraComment;
136 return suppr_str;
137 }
138
139 // TODO: how to log file name in error?
140 void writeToPipeInternal(PipeSignal type, const void* data, std::size_t to_write) const

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected