使用 Doxygen 生成项目指标?
我目前使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会查看 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.