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

Method getUnmatchedInlineSuppressions

lib/suppressions.cpp:607–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607std::list<SuppressionList::Suppression> SuppressionList::getUnmatchedInlineSuppressions() const
608{
609 std::list<SuppressionList::Suppression> result;
610 for (const SuppressionList::Suppression &s : SuppressionList::mSuppressions) {
611 if (!s.isInline)
612 continue;
613 // TODO: remove this and markUnmatchedInlineSuppressionsAsChecked()?
614 if (!s.checked)
615 continue;
616 if (s.matched)
617 continue;
618 if (s.hash > 0)
619 continue;
620 result.push_back(s);
621 }
622 return result;
623}
624
625std::list<SuppressionList::Suppression> SuppressionList::getSuppressions() const
626{

Callers 1

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected