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

Function createErrorItem

gui/test/resultstree/testresultstree.cpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168static ErrorItem createErrorItem(const QString& file, int line, Severity sev, const QString& message, QString id) {
169 ErrorItem ret;
170 ret.errorId = std::move(id);
171 ret.severity = sev;
172 ret.cwe = ret.hash = 0;
173 ret.file0 = file;
174 ret.inconclusive = false;
175 ret.message = ret.summary = message;
176 ret.errorPath << createErrorPathItem(file, line, 1, message);
177 return ret;
178}
179
180void TestResultsTree::multiLineResult() const
181{

Callers 6

multiLineResultMethod · 0.85
resultsInSameFileMethod · 0.85
testReportTypeMethod · 0.85
testReportTypeIconMethod · 0.85
testGetGuidelineErrorMethod · 0.85

Calls 1

createErrorPathItemFunction · 0.85

Tested by

no test coverage detected