Uh oh!
There was an error while loading. Please reload this page.
enabled information messages in selfchecks / mitigated unmatchedSuppression warnings - #3090
Conversation
958466f to
ea5eb5fCompareea5eb5f to
2fec19bComparee212c7d to
34b87f6Comparechrchr-github
commented
Sep 7, 2023
So we have inline suppressions, but don't check if they are (still) matched? Ugh. |
information messages in self-checkfcb246a to
68bfc72Comparefirewave
commented
Oct 12, 2023
The "issue" we are having is that we are using a single suppression file for multiple different Cppcheck analysis invocations. This causes The first could be solved by using more granular suppressions. That might not be what you want. We possible need some way to filter out error IDs without suppressing them indicating that you just not care about them. Suppression should also be considered temporary hence the The latter cannot be solved easily. We adjust the warning to only report them as unmatched if neither the regular expression nor the ID matched. That would require some re-working of the suppression code (which might happen as part of the still in progress executor rework) but might result in lots of outdated entries in the suppression file. Another issue is that you also cannot control |
firewave
commented
Oct 12, 2023
As most (all) of the issues are with having a suppression file and those do not apply to inline suppression at all maybe we should introduce |
68bfc72 to
f86dcf6Comparechrchr-github
commented
Oct 12, 2023
Sounds reasonable. Unmatched inline suppressions are more problematic anyway. |
f86dcf6 to
fd98eccComparea812dc2 to
306a26dCompare306a26d to
2d7e16dCompare2d7e16d to
5095a98CompareI filed https://trac.cppcheck.net/ticket/13659 about the invalid location. I also filed https://trac.cppcheck.net/ticket/13660 about such warnings being shown even if no files matching the wildcard were encountered. |
These are a bit a of problem. The warnings are correct but we have a dedicated job in a different workflow which takes care of this and the check is not enabled in this case. So I have no idea how we can avoid these. This also highlights that the Update: We could just hack these out by not reporting them if |
This will only trigger with the premium selfcheck so we should ignore these suppressions if it is not premium - which would be a horrible hack IMO. Update: Well - I think we already have that "hack" in place for |
5095a98 to
90c463dCompare33511ee to
3ffb291Compareinformation messages in self-checkinformation messages in selfchecks / mitigated unmatchedSuppression warnings3ffb291 to
b56063cCompareb56063c to
03b1a61Compare| contents: read | ||
| jobs: | ||
| # TODO: enable information |
There was a problem hiding this comment.
We cannot enable these yet because we get warnings about the non-unusedFunction inline suppressions. That requires the UNUSEDFUNCTION_ONLY to be adjusted. I will do that in a follow-up to not delay this PR any longer.
03b1a61 to
17bf341Compare17bf341 to
424e25dCompare00ce4eb to
cad1d67Comparecad1d67 to
e9591e3Comparefirewave
commented
Oct 31, 2025
@danmar@chrchr-github This is finally ready for review. 🥳 |



The
unmatchedSuppressionmessages might be a bug where the regular expression appears to be incorrectly validated. I saw this with local runs but didn't look into it yet. There was also different behavior between using no threads and-j. I will file tickets as soon as I have the time to look at it.