is there a way to find out which suppressions of a suppression file are actually used?
Over time for our projects huge suppression files have accumulated, and I'd like to weed out all the lines which are not relevant any more.
Thanks,
Martin
P.S.: I have a feeling that this has been asked before, but I couldn't find it in the forum :-/
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
is there a way to find out which suppressions of a suppression file are actually used?
Over time for our projects huge suppression files have accumulated, and I'd like to weed out all the lines which are not relevant any more.
Thanks,
Martin
P.S.: I have a feeling that this has been asked before, but I couldn't find it in the forum :-/
If you use
--enable=information
then Cppcheck will tell you that.Try this on some arbitrary file:
Obviously.. no "aaaa" warning will be reported. So it is expected that you get such information from Cppcheck:
This should work for inline suppressions and suppressions in file, as well..
Last edit: Daniel Marjamäki 2021-02-10
This works, thanks!