适用于 C++ 的 Eclipse 指标插件

发布于 2024-10-06 16:51:13 字数 1539 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

岁吢 2024-10-13 16:51:13

Eclipse Metrics 非常强大,但遗憾的是仅适用于 Java。
Project Code Meter 是一款专业、全面、但价格昂贵的工具。
cccc 是一个糟糕的、被黑客攻击的命令行工具,仅适用于 Windows。
然而,代码分析器是一个简单、免费的图形工具,非常适合 C 和 C++。

不过,它查看了帮助以开始使用,您需要:

  • 从“工具”->“扩展集”->“选择”菜单中选择一个扩展集(我选择了 C 集),
  • 右键单击“新建”代码集图标并执行“添加分支”,然后导航到源根文件夹,
  • 单击运行,然后就可以了:

在此处输入图像描述

Eclipse Metrics is very powerful but only works for Java unfortunately.
Project Code Meter is a professional, comprehensive, but also expensive tool.
cccc is an awful, hacked command line tool for Windows only.
However Code Analyzer is a simple, free graphics tool that works great with C and C++.

It took a look at the help to get started though, you need to:

  • select an extension set from the Tools->Extension Set->Select menu (I chose the C set)
  • right click on the "New" Code Set icon and do "Add Branch", then navigate to your source root folder
  • click run, and here you go:

enter image description here

|煩躁 2024-10-13 16:51:13

据我所知,C++/CDT 没有代码度量插件,但您可以使用 cccc

但是我想你已经知道了:)

祝你好运!

As far as i know there is no code metrics plugin for C++/CDT, but you can use cccc

But i guess you already knew about it :)

Good luck!

北城半夏 2024-10-13 16:51:13

我们一直在开发一个名为 metriculator 的 Eclipse 插件。它仍在开发中,但一些主要指标(例如 LSLOC、McCabe、EfferentCoupling)已经实施。

请参阅http://sinv-56013.edu.hsr.ch /redmine/projects/metricular/wiki/Documentation 了解更多详细信息。

编辑:
上面的链接已失效,您可以使用 https://github.com/ideadapt/metriculator 代替。

We have been working on an Eclipse plug-in called metriculator. Its still under development but some major metrics (e.g. LSLOC, McCabe, EfferentCoupling) are already implemented.

See http://sinv-56013.edu.hsr.ch/redmine/projects/metricular/wiki/Documentation for more details.

EDIT:
Above link is dead, you can use https://github.com/ideadapt/metriculator instead.

我很坚强 2024-10-13 16:51:13

有开源 Eclipse Metrics 插件,但我个人更喜欢 ProjectCodeMeter,它作为外部与 eclipse 集成指标工具

There's the open source Eclipse Metrics plugin, but i personally prefer ProjectCodeMeter which integrates with eclipse as external metrics tool.

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