What are some best practices for using pc-lint - how to wade thru the zillion options?
I'm particularly interested in better ways to read/parse the output files.
What are some best practices for using pc-lint - how to wade thru the zillion options?
I'm particularly interested in better ways to read/parse the output files.
There's a Visual Lint that builds upon PC-Lint making the messages a bit more friendly. Unfortunately its not free and only works on Windows with Visual Studio. They have a trial version IIRC.
Since my employer at the time was a cheapskate I didn't get the full version, although I did find it useful.
Well I don't know of free/opensource tools designed to process pc-lint output, but I have used the following strategy using splint
The "Indian Hill C Style and Coding Standards" talks about approaches to using Lint.
My approach to any static analysis tool is to define your local coding standard (or use an existing one), then apply the static analysis rules that enforce that standard. Explicitly switch off the rules for code that you allow, and leave on the rules for all those aspects your standard never even considered; when they occur, consider whether your coding standard needs modification or if the rule should be switched off, or whether it was simply a coding error that should be fixed without change to either the standard or the analyser configuration.