Code Metrics Analysis for Unmanaged C++ Code [closed]

天涯浪子 提交于 2019-11-30 23:13:42

问题


Does anyone know of a free tool, similar to what is built into Visual Studio 2010 for managed code, that can do analysis of unmanaged, MFC C++ code and give metrics (lines of code, dependency or coupling, etc)?

I've been searching on Google for awhile, but really haven't been able to find anything that works. Thanks a ton!


回答1:


Source Monitor is a good free tool tool for code metrics such as LoC and complexity and also produces kiviat graphs. But it does not have any depedency or coupling metrics.




回答2:


Our SourceMeter tool can analyze your Visual C++ project and provide you all the information you asked for: metrics (lines of code, dependency, coupling, 60+ metrics altogether). The results are in standard CSV files, which you can easily open in e.g. spreadsheet editors.




回答3:


I am not sure about free tool but one paid tool which is most comprehensive is IBM's Logiscope http://www-01.ibm.com/software/awdtools/logiscope/




回答4:


Not free but QA-CPP does metrics like cyclomatic complexity and static analysis.

It's fairly complex to set up but they are pretty good on product support and regularly put out updates.



来源:https://stackoverflow.com/questions/9420465/code-metrics-analysis-for-unmanaged-c-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!