/ analysis in Visual Studio 2010 Professional
Starting Visual Studio 2008 Professional allows you to enable static code analysis using the / analysis flag (although this is not supported for the Professional version according to the documentation ).
This no longer works in Visual Studio 2010 Professional. Added default / parsing flag instead (one I can't find the GUI setting for). It doesn't work the same as the VS2008 version (or at all).
Can anyone shed some light on this? What does the new / analysis-flag do and is there a way to enable the old analysis?
a source to share
The 2010 compiler is non-commercial. VS 2008 happened with an enterprise compiler. (Compare the output cl /?
)
/analyze-
disables static analysis. What you can do is see if the latest SDK platform comes with enterprise compilers (they've done this in the past) and configure your paths in VS to use them instead.
a source to share
This can be done using the SDK and installing the latest compiler update, see
http://randomascii.wordpress.com/2011/10/15/try-analyze-for-free/
Note that if you are using an x64 system, you need to manually set your environment to x86 mode (x64 by default) in order to get / parse to work.
a source to share
Upgrade to VS 2012 or VS 2013. They support / parse in a professional SKU and support / parse for both 32-bit and 64-bit. See my blog / analyst article for more details:
http://randomascii.wordpress.com/2011/10/15/try-analyze-for-free/
a source to share