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

After you run code analysis on your project, you can view any generated warnings in the Error List or Output windows of the Visual Studio IDE. Code analysis warning numbers for C/C++ code are prefixed by C.In the Error List, you can sort warnings and double-click a warning to view the line of code in the code editor that caused the warning. You can also select a warning and press F1 to view Help for the warning.

To view code analysis warnings

  • On the View menu, click Error List.