Is there a way to get a report of suppressed lint messages?

234 views Asked by At

I am using PC-Lint Plus and suppressing few lint warnings throughout the source code. Is there a way in PC-Lint Plus to get a report of line numbers (or file names) where someone has suppressed warnings for software risk analysis ? This will help evaluate if some ignored/suppressed warnings have good reasons to ignore/suppress or should be handled.

1

There are 1 answers

0
Lars Ljung On

Not that I'm aware of. But it's quite easy to write a script in your favourite scripting language to search for /*lint and //lint. If you have a rationale in the comment you can also extract that and include it in the report. If you want to be extra fancy you could even match the warning number to e.g. MISRA rules. It's a fun little exercise if you like writing scripts.