开发者

C++ static code analysis that can be run in a TFS 2010 build?

开发者 https://www.devze.com 2023-02-20 02:52 出处:网络
I\'m looking for a native C++开发者_运维问答 static analysis tool that I can use both from within Visual Studio and as part of a TFS 2010 build.It must also work for 64-bit compilation.Does anyone kno

I'm looking for a native C++开发者_运维问答 static analysis tool that I can use both from within Visual Studio and as part of a TFS 2010 build. It must also work for 64-bit compilation. Does anyone know any tools that support this?


I am using CppCheck.

This is a commandline tool which we use in our continous integration server, but I'm sure it can be called from a pre/post build event. It outputs to console or file (text/xml).


See our SD C++ CloneDR tool, which detects cloned code in spite of changes to layout, variable names and often even replaced statements.

This tool can be launched from a command line.


I'm not sure about 64-bit compilation. But, I think can use FxCop for static code analysis of C++ projects by integrating FxCop into VS2010 project, run fxcopcmd.exe in the post-build event to automatically perform code analysis when building projects (or) you can use Invoke Process Activity in Build process Template.


According to this blog, Visual Studio 11 will support 64-bit code analysis out-of-the-box in all editions: http://blogs.msdn.com/b/codeanalysis/archive/2012/03/09/what-s-new-in-code-analysis-for-visual-studio-11.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消