cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

fixed #14276 - report inline suppressions with invalid error IDs

Open firewave opened this issue 1 month ago • 3 comments

firewave avatar Nov 18 '25 00:11 firewave

Still fails tests because as inline suppressions are now being tracked globally until the end of the analysis ones that are found in included filed might be picked up more than once.

To fix this the function adding the suppressions should report more states than boolean and using the fileindex we can determine that it isn't the file which passed to the analysis and omit the warning. That would probably cause suppressions which are duplicated in the included file itself never to be reported (need to add tests for that) - but that seems acceptable for now.

firewave avatar Nov 29 '25 18:11 firewave

Still fails tests because as inline suppressions are now being tracked globally until the end of the analysis ones that are found in included filed might be picked up more than once.

To fix this we need to store the actual location of the suppression but that requires #8000 to be merged first.

firewave avatar Dec 03 '25 19:12 firewave