/analyze (Enterprise Code Analysis)
Enable code analysis.
/analyze[:WX-]
Specifying /analyze:WX- means code analysis warnings will not be treated as errors when compiling with /WX. See /w, /Wn, /WX, /Wall, /wln, /wdn, /wen, /won (Warning Level) for more information.
/analyze is only available in Enterprise (team development) versions for x86 compilers.
For more information on code analysis, see Code Analysis for C/C++ Overview and Code Analysis for C/C++ Warnings.
To set this compiler option in the Visual Studio development environment
-
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
-
Expand the Configuration Properties node.
-
Expand the Code Analysis node.
-
Select the General property page.
-
Modify one or more of the Code Analysis properties.
To set this compiler option programmatically
-
See EnablePREfast.
No Code analysis node
In the Command line, I have the
/analyze-
option, but I don't have a Code Analysis node below the Configuration Properties node. Is that supposed?
Additional info: the project is of type dll and generates an Activex .ocx as Output.
/analyze-
option, but I don't have a Code Analysis node below the Configuration Properties node. Is that supposed?
Additional info: the project is of type dll and generates an Activex .ocx as Output.
- 12/5/2011
- Sérgio Lr
/analyze is available (for free) in the SDK
/analyze is also available - for free - in the Windows 7/.Net 3.5 SDK. However, it is not included Windows 7/.Net 4.0 SDK.
Visit http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505 for the Windows 7/.Net 3.5 SDK download.
Visit http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505 for the Windows 7/.Net 3.5 SDK download.
- 1/8/2011
- Jeffrey Walton
