VCCLCompilerTool::EnablePREfast Property

 

Gets or sets whether Native Code Analysis is enabled.

Namespace:   Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

property bool EnablePREfast {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true to enable code analysis (/analyze).

Additional options can be set using the AdditionalOptions property.

System_CAPS_noteNote

/analyze is only available in Enterprise (Team Developer) versions for x86 compilers.

The following example demonstrates how to use the EnablePREfast and AdditionalOptions properties to set the /analyze:WX- switch. (Both properties are required to do this.) Specifying /analyze:WX- means that code analysis warnings will not be treated as errors when compiling with /WX. For more information, see /analyze (Code Analysis).

No code example is currently available or this language may not be supported.
Return to top
Show: