Analyzing C/C++ Code Quality by Using Code Analysis
This article applies to Visual Studio 2015. If you're looking for Visual Studio 2017 documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2017. Download it here.
You can improve your C/C++ code by using the code analysis in Visual Studio to find and fix code defects.
In This Section
|Code Analysis for C/C++ Overview||Learn about the features of the code analysis tool.|
|Quick Start: Code Analysis for C/C++||Learn the basics of code analysis for C/C++.|
|Using Rule Sets to Specify the C++ Rules to Run||Specify the rules to run on your project or solution.|
|Using the C++ Core Guidelines checkers||Add the C++ Core Guidelines checkers to your project.|
|How to: Set Code Analysis Properties for C/C++ Projects||Describes the configuration settings for code analysis.|
|How to: Specify Additional Code Information by Using __analysis_assume||Learn how to use
|Walkthrough: Analyzing C/C++ Code for Defects||Gain hands-on experience by performing code analysis on a C/C++ project.|
|Using SAL 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.|