Doxygen 没有记录静态类?
我最近在我的一个项目中使用了 Doxygen。但我遇到一个问题,它不会为 C# 静态类生成正确的文档。我必须启用某些选项吗?
我相关类的完整源代码位于此处。 此处列出了命名空间的 doxygen 文件。另外,我的 Doxyfile 位于此处。它是使用几乎默认设置从 doxywizard 生成的。
正如您所看到的,生成了类的简短描述,但该类没有自己的页面来查看(已记录的)静态方法和成员。此外,该类未在类索引中列出,或者实际上在其他任何地方都没有列出。问题是什么?
I've been recently using Doxygen for a project of mine. I'm having a problem though that it won't generate the proper documentation for a C# static class. Is there some option I have to enable?
My complete source code for the relevant class is here. And the doxygen file for the namespace is listed here. Also, my Doxyfile is here. It was generated from doxywizard using almost default settings.
As you can see, the class's short description is generated, but the class does not have a page of it's own to see the (documented) static methods and members. Also, the class is not listed in the class index, or really anywhere else. What is the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
自从我创建 doxygen 配置以来已经有一段时间了,但是尝试将 EXTRACT_STATIC 的值更改为 YES,您应该会得到您正在寻找的内容。
It's been a while since I've created a doxygen config, but try changing the value of EXTRACT_STATIC to YES, and you should get what you're looking for.
以防万一有人使用 Doxywizard GUI 而不是手动编辑 Doxyfile,EXTRACT_STATIC 标志会列在“构建”下的“专家”选项卡上:
Just in case anyone is using the Doxywizard GUI rather than editing the Doxyfile by hand, the EXTRACT_STATIC flag is listed on the Expert tab under Build: