Skip to content

Commit

Permalink
suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Jun 30, 2024
1 parent c5238fc commit a75ae44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gui/resultstree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,21 @@ static QString getGuideline(ReportType reportType, const QMap<QString,QString>&
static QString getClassification(ReportType reportType, const QString& guideline) {
if (reportType == ReportType::autosar) {
for (const checkers::Info& autosarInfo: checkers::autosarInfo) {
// cppcheck-suppress useStlAlgorithm
if (guideline.compare(autosarInfo.guideline, Qt::CaseInsensitive))
return autosarInfo.classification;
}
}
else if (reportType == ReportType::certC || reportType == ReportType::certCpp) {
if (guideline.endsWith("-CPP")) {
for (const checkers::Info& info: checkers::certCppInfo) {
// cppcheck-suppress useStlAlgorithm
if (guideline.compare(info.guideline, Qt::CaseInsensitive))
return info.classification;
}
} else if (guideline.endsWith("-C")) {
for (const checkers::Info& info: checkers::certCInfo) {
// cppcheck-suppress useStlAlgorithm
if (guideline.compare(info.guideline, Qt::CaseInsensitive))
return info.classification;
}
Expand Down

0 comments on commit a75ae44

Please sign in to comment.