什么开源的C ++静态分析工具可用? [英] What open source C++ static analysis tools are available?
问题描述
Java有一些非常好的开源静态分析工具,例如 FindBugs , Checkstyle 和 PMD 。这些工具易于使用,非常有用,可在多个操作系统上运行且免费。
商业C ++静态分析产品可从供应商< a href =http://www.klocwork.com/> Klocwork , Gimpel 和社群。还有一个鲜为人知的 PVS-Studio 分析器。虽然有这样的产品是伟大的,成本只是对学生太多,通常是很难得到试用版。
另一种方法是找到开源C将在多个平台(Windows和Unix)上运行的静态分析工具。通过使用开源工具,可以对其进行修改以适应某些需求。找到工具并不容易。
下面是其他人发现或建议的C ++静态分析工具的简短列表。
- C ++检查 http://sf.net / projects / cppcheck /
- Oink http://danielwilkerson.com/oink /index.html
- C和C ++代码计数器 http://sourceforge.net / projects / cccc /
- Splint(来自答案)
- Mozilla的猪肉(来自答案)
- Mozilla的Dehydra(来自答案)
- 使用选项
-Weffc ++
答案)
一些其他可移植开源C ++静态分析工具是任何人都知道的,
- Windows上的C ++以上静态代码分析工具
- http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis
- http://www.chris-lott.org/resources/cmetrics/
- < a href =http://stackoverflow.com/questions/93260/a-free-tool-to-check-cc-source-code-against-a-set-of-coding-standards>免费工具检查针对一组编码标准的C / C ++源代码?
- http:// spinroot。 com / static /
- 选择a static code analysis tool
Oink是一个建立在Elsa C ++前端。
查看: http://danielwilkerson.com/oink/index.html
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.
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.
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.
Below is a short list of C++ static analysis tools that were found or suggested by others.
- C++ Check http://sf.net/projects/cppcheck/
- Oink http://danielwilkerson.com/oink/index.html
- C 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?
Some related links.
- C++ static code analysis tool on Windows
- http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis
- http://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 is a tool built on top of the Elsa C++ front-end. Mozilla's Pork is a fork of Elsa/Oink.
See: http://danielwilkerson.com/oink/index.html
这篇关于什么开源的C ++静态分析工具可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!