什么开源的C ++静态分析工具可用? [英] What open source C++ static analysis tools are available?

查看:228
本文介绍了什么开源的C ++静态分析工具可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 ++静态分析产品可从供应商获得< a href =http://www.klocwork.com/ =nofollow noreferrer> 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++ 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?

一些相关的链接。

  • 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是一个基于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 ++静态分析工具可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆