本文介绍了什么开源的C ++静态分析工具可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! Java有一些非常好的开源静态分析工具,例如 FindBugs , Checkstyle 和 PMD 。这些工具易于使用,非常有用,可在多个操作系统上运行且免费。Java has some very good open source static analysis tools such as FindBugs, Checkstyle and PMD. Those tools are easy to use, very helpful, runs on multiple operating systems and free.商业C ++静态分析产品可从供应商获得 Klocwork , Gimpel 和 Coverity 。此外,还有一个鲜为人知的 PVS-Studio 分析器。虽然有这样的产品是伟大的,成本只是对学生太多,通常是很难得到试用版。Commercial C++ static analysis products are available from vendors Klocwork, Gimpel and Coverity. Also there is less-known PVS-Studio analyzer. Although having such products are great, the cost is just way too much for students and it is usually rather hard to get trial version.另一种方法是找到开源C将在多个平台(Windows和Unix)上运行的静态分析工具。通过使用开源工具,可以对其进行修改以适应某些需求。找到工具并不容易。The alternative is to find open source C++ static analysis tools that will run on multiple platforms (Windows and Unix). By using an open source tool, it could be modified to fit certain needs. Finding the tools has not been easy task.下面是其他人发现或建议的C ++静态分析工具的简短列表。Below is a short list of C++ static analysis tools that were found or suggested by others. C ++检查 http ://sf.net/projects/cppcheck/ Oink http://danielwilkerson.com/oink/index.html C和C ++代码计数器 http://sourceforge.net/projects/cccc/ Splint(来自答案) Mozilla的猪肉(来自答案)(现在是Oink的一部分) Mozilla的Dehydra(来自答案) c $ c> -Weffc ++ 适用于GNU g ++(来自答案)C++ Check http://sf.net/projects/cppcheck/Oink http://danielwilkerson.com/oink/index.htmlC and C++ Code Counter http://sourceforge.net/projects/cccc/Splint (from answers)Mozilla's Pork (from answers) (This is now part of Oink)Mozilla's Dehydra (from answers)Use option -Weffc++ for GNU g++ (from answers)What are some other portable open source C++ static analysis tools that anyone knows of and can be recommended?一些相关的链接。 Windows上的C ++静态代码分析工具 http://en.wikipedia.org / wiki / List_of_tools_for_static_code_analysis http: //www.chris-lott.org/resources/cmetrics/ 一个免费的工具来检查一组编码标准的C / C ++源代码? http://spinroot.com/static/ 选择静态代码分析工具C++ static code analysis tool on Windowshttp://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysishttp://www.chris-lott.org/resources/cmetrics/A free tool to check C/C++ source code against a set of coding standards?http://spinroot.com/static/Choosing a static code analysis tool推荐答案 Oink是一个基于Elsa C ++前端的工具。Oink is a tool built on top of the Elsa C++ front-end. Mozilla's Pork is a fork of Elsa/Oink.查看: http://danielwilkerson.com/oink/index.html 这篇关于什么开源的C ++静态分析工具可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!