Export (0) Print
Expand All
0 out of 4 rated this helpful - Rate this topic

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

Code analysis tool detects common coding errors, such as buffer overrun, un-initialized memory, null pointer dereference, and memory and resource leaks.

To enable code analysis for C/C++ code

  1. Open a project in Visual Studio.

  2. On the Project menu, click Properties.

  3. Click Code Analysis.

  4. In the Enable Code Analysis for C/C++ list, select Yes (/analyze) and then click OK.

To disable code analysis for C/C++ code

  1. Open a project in Visual Studio.

  2. On the Project menu, click Properties.

  3. Click Code Analysis.

  4. In the Enable Code Analysis for C/C++ list, select No and then click OK.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.