Prefast with Visual studio 2008

后端 未结 3 1269
醉酒成梦
醉酒成梦 2021-01-05 10:17

Is there any way to enable Prefast in Visual Studio 2008 Professional addition?

I am trying to compile native c++ code.

相关标签:
3条回答
  • 2021-01-05 10:52

    Code Analysis works for VS C ++ Express, but for visual studio ... I can not find it ... VS C++ Express and VS have some differences.

    0 讨论(0)
  • 2021-01-05 10:53

    You don't need to use Prefast separately. Visual C++ Prefast is accessed using the /analyze compiler switch.

    0 讨论(0)
  • 2021-01-05 11:06

    VS 2008 has a built-in code analysis (FxCop and PREfast). You can turn it on at Project->Properties->Configuration Properties->C/C++->Advanced->Enable Code Analysis For C/C++ on Build.

    Then you can try to compile some examples from PREfast and see warnings.

    Good luck!

    EDIT: Professional edition has no such option :(

    0 讨论(0)
提交回复
热议问题