Integrated Code Analysis for C/C++

Team Foundation Server code analysis tests C and C++ code written in Visual Studio 2005 to check that it avoids common design problems such as buffer overflows, un-initialized memory, null pointer deference, and memory and resource leaks. This helps development teams write quality code that performs better and avoids common security risks.

Code analysis in Team Foundation Server may be integrated into several different points in the development process. Code analysis can be run within the development environment by developers or from the command line. It can also be run as during the check-in process as part of a required policy. Team Build integration also allows code analysis to be run as an automatic part of the build process. Annotation support helps developers improve the accuracy of code analysis.

Code analysis settings can be configured through the property pages for a project, when creating a code analysis check-in policy, when creating a new build type in the Team Explorer, or from the Visual Studio 2005 command-line.

Enabling code analysis for a project using C or C++