3 ms·
Is there a kind of "linter" for C that spots stuff like the problems presented here (as opposed to just formatting)? What kinds of static analysis are available
by headcanon 10y ago
Is there a kind of "linter" for C that spots stuff like the problems presented here (as opposed to just formatting)? What kinds of static analysis are available here?
- syncsynchalt 10y agoThere are lots of useful -W flags to gcc/clang that expose language pitfalls (examples: -Wparentheses and -Wshadow). As far as dedicated tools, my best experience is with Coverity, which seems to have a design focus of finding errors in codebases with a minimum of false positives.