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

Function getLabels

gui/resultstree.cpp:111–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static QStringList getLabels() {
112 return QStringList{
113 QObject::tr("File"),
114 QObject::tr("Line"),
115 QObject::tr("Severity"),
116 QObject::tr("Classification"),
117 QObject::tr("Level"),
118 QObject::tr("Inconclusive"),
119 QObject::tr("Summary"),
120 QObject::tr("Id"),
121 QObject::tr("Guideline"),
122 QObject::tr("Rule"),
123 QObject::tr("Since date"),
124 QObject::tr("Tags"),
125 QObject::tr("CWE")};
126}
127
128static Severity getSeverity(ReportType reportType, const ErrorItem& errorItem) {
129 return reportType == ReportType::normal ? errorItem.severity : getSeverityFromClassification(errorItem.classification);

Callers 2

addBacktraceFilesMethod · 0.85
translateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected