| 454 | } |
| 455 | |
| 456 | bool 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 | |
| 472 | bool SuppressionList::isSuppressed(const SuppressionList::ErrorMessage &errmsg, bool global) |
| 473 | { |
no test coverage detected