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.
Asked
Active
Viewed 170 times
2
-
2PC-Lint Plus seem to be a commercial software. They should have support for such a questions. OTOH I would imagine such a feature quite obsolete, as suppressing warnings is for not seeing them anywhere in reports. If you want to see them - don't suppress. – Eugene Sh. Apr 15 '21 at 13:31
-
Some coding guidelines requires that all deviations are documented, e.g. MISRA C. So these kinds of reports are quite common in some industries. – Lars Ljung Apr 15 '21 at 16:41
1 Answers
1
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.

Lars Ljung
- 375
- 2
- 6