C++、Eclipse CDT代码分析?
Eclipse CDT 有什么好的静态代码分析插件吗? 到目前为止我找到了两个:
- Cppcheck插件,但这仍然需要原始的cppcheck可执行文件
- CppChecker,但这不起作用(它没有做任何事情)
还有其他更好的吗?或者我如何让 CppChecker 做某事(或者它根本就是一个静态代码分析器?网站根本不清楚)?
Are there any good plugins for static code analysis for Eclipse CDT?
I found two so far:
- Cppcheck plugin, but this still needs the original cppcheck executable
- CppChecker, but this didn't work (it didn't do anything)
Are there any more that are better? Or how do I get CppChecker to do something (or is it a static code analyiser at all? the website is not clear at all)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
还有一个叫做“Codan”,代表 CODe 分析。
可以在此 wiki 上查看它,并提供该工具的链接:
http://wiki.eclipse.org/CDT/designs/ StaticAnalysis
我无法回答这是否比您的列表更好,但至少它是您可以查看的另一个选项。 Eclipse 集成似乎是其唯一的要求。
请记住,这是一项正在进行的工作,但鉴于其目标,它可能适合您的短期需求。
There is another called "Codan," stands for CODe ANalysis.
It can be reviewed at this wiki, with links to the tool:
http://wiki.eclipse.org/CDT/designs/StaticAnalysis
I cannot answer whether this is the better than your list, but at least it's another option you can review. Eclipse integration seems to be its only requirement.
Keep in mind that this is a work in progress, but given its goals, it may suit your short-term needs.
您也可以随时在 Eclipse 中运行 lint。我写了一篇 博客条目手动进行。然而,也存在 Visual Lint 并且它可以在 VS 和 Eclipse 中运行。它并不完美,但比手动设置更容易。
You can always run lint inside Eclipse as well. I wrote up a blog entry on doing it manually. However, there also exists Visual Lint and it works in VS and Eclipse. It's not perfect but it's easier than setting it all up manually.
我推荐一个基于 Codan 框架的免费插件,称为 Artemis。您可以从 ecliplse 市场获取它。还有其他检查器,但只有集成到 Codan 中的插件(例如这个)可以在 Eclipse 中执行实时分析。
I suggest a free plugin based on Codan framework called Artemis. You can get it from ecliplse marketplace. There are other checkers but only plugins integrated into Codan, like this one, can perform real-time analysis in Eclipse.