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

Method isMatch

lib/suppressions.cpp:456–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456bool SuppressionList::Suppression::isMatch(const SuppressionList::ErrorMessage &errmsg)
457{
458 switch (isSuppressed(errmsg)) {
459 case Result::None:
460 return false;
461 case Result::Checked:
462 checked = true;
463 return false;
464 case Result::Matched:
465 checked = true;
466 matched = true;
467 return true;
468 }
469 cppcheck::unreachable();
470}
471
472bool SuppressionList::isSuppressed(const SuppressionList::ErrorMessage &errmsg, bool global)
473{

Callers 2

isSuppressedMethod · 0.45

Calls 1

unreachableFunction · 0.85

Tested by

no test coverage detected