使用 Doxygen 生成项目指标?

发布于 2024-12-19 20:16:08 字数 205 浏览 3 评论 0原文

我目前使用 Doxygen 生成我的 C++ 项目的文档。由于 Doxygen 很棒并且生成了大量信息,我想知道是否有一种方法可以将项目的指标集成到生成的文档中。

当我谈论指标时,我会想到代码行数、类数、函数数、圈复杂度等。

有什么办法可以做到这一点吗?

如果这不能直接实现,我们是否可以为 Doxygen 创建一个小插件来向生成文档添加更多信息?

I currently use Doxygen to generate the documentation of my C++ projects. As Doxygen is great and generates a lot of information, I was wondering if there was a way to integrate metrics of the project in the generated documentation.

When I talk of metrics, I think of lines of code, number of classes, number of functions, cyclomatic complexity, etc.

Is there something to do that ?

If that's not possible directly, is there a way we can create a little plugin to Doxygen to add more informations to the generate documentation ?

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

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

发布评论

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

评论(1

琴流音 2024-12-26 20:16:08

我会查看 doxygen 生成的 XML 输出,其中可能包含您需要的信息,尽管您可能需要再次运行 doxygen。

您可以在运行 doxygen 之前添加一个预处理器脚本,该脚本将为您生成指标并创建一组页面来显示此信息。 (查看 Doxyfile 中的 INPUT_FILTER 选项)

我也会发布此内容向 [电子邮件受保护](如果您尚未这样做)。

I'd look into the XML output generated by doxygen which might have the information you need, although you may need to run doxygen again.

You can add a preprocessor script prior to running doxygen that will generate the metrics for you and create a set of pages to display this information. (Look into the INPUT_FILTER option in the Doxyfile)

I'd also post this question to [email protected] if you haven't already done so.

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