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

Method isErrorItemHidden

gui/resultstree.cpp:558–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558bool ResultsTree::isErrorItemHidden(const QSharedPointer<ErrorItem>& errorItem) const {
559 //Check if this error should be hidden
560 if (mHiddenMessageId.contains(errorItem->errorId))
561 return true;
562
563 bool hide;
564 if (mReportType == ReportType::normal)
565 hide = !mShowSeverities.isShown(errorItem->severity);
566 else
567 hide = errorItem->classification.isEmpty() || !mShowSeverities.isShown(getSeverityFromClassification(errorItem->classification));
568
569 // If specified, filter on summary, message, filename, and id
570 if (!hide && !mFilter.isEmpty())
571 hide = !errorItem->filterMatch(mFilter);
572
573 // Tool filter
574 if (!hide) {
575 if (errorItem->isClangResult())
576 hide = !mShowClang;
577 else
578 hide = !mShowCppcheck;
579 }
580
581 return hide;
582}
583
584ResultItem *ResultsTree::ensureFileItem(const QSharedPointer<ErrorItem>& errorItem, bool hide)
585{

Callers

nothing calls this directly

Calls 6

isShownMethod · 0.80
isEmptyMethod · 0.80
filterMatchMethod · 0.80
isClangResultMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected