Detecting and Correcting C/C++ Code Defects
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Detecting and Correcting C/C++ Code Defects

When you install either Visual Studio Team System Development Edition or Visual Studio Team Suite, you get a code analysis tool that helps you detect and correct code defects. This section describes Code Analysis and how to use the tool to improve your C/C++ code.

Code Analysis for C/C++ Overview

Learn about the features of the code analysis tool.

Code Analysis Properties for C/C++

Describes the configuration settings for code analysis.

How to: Invoke Code Analysis for C/C++

Learn to invoke the code analysis tool from within the IDE.

How to: Enable and Disable Code Analysis for Specific C/C++ Warnings

Learn to use warning pragma to enable and disable code analysis warnings.

How to: View Code Analysis for C/C++ Warnings

Describes how to view and navigate to errors in code.

How to: Specify Additional Code Information

Learn how to use __analysis_assume to improve code analysis.

How to: Create a Work Item for C/C++ Code Defects

Learn to use the work item tracking feature in Team Foundation.

Walkthrough: Analyzing C/C++ Code for Defects

Gain hands-on experience by performing code analysis on a C/C++ project.

Using Annotations to Reduce C/C++ Code Defects

Learn about annotation features of the code analysis tool to detect violations of the contract between the caller and the callee.

Code Analysis for C/C++ Warnings

Lists and describes code analysis warnings.

© 2016 Microsoft