C++、Eclipse CDT代码分析?

发布于 2024-10-29 13:46:05 字数 206 浏览 4 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

纸短情长 2024-11-05 13:46:05

还有一个叫做“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.

迎风吟唱 2024-11-05 13:46:05

您也可以随时在 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.

灯角 2024-11-05 13:46:05

我推荐一个基于 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文