21 January 2008

C++ Static Code Analysis

I've mentioned before about the usefulness of PC-Lint when doing C++ development on Windows. It closes off a whole class of bugs that can live in a codebase and raises teh minimum standard of development.

I came across a really decent article you can read here. They integrated it into their automated build process and bootstrapped Msbuild to use it.

Also, you can't forget that there are some good tools that can make it easier to use. There is LintProject to run Lint across an entire project, and also there is the Visual Lint which is a nice integration into Visual Studio.

It would be nice however if somehow it was possible to integrate it completely with the cl.exe commandline.