带有自定义注释的 Doxygen
我在任何地方都找不到任何相关内容:我想在 doxygen 中使用自定义注释。更准确地说,我在 android 支持的每个方法之前都有一个 @android
,并且希望 doxygen 能够识别、支持和链接他的方法,类似于它对 xrefitem 所做的事情。这可能吗?
最棒的是能够对此进行一些简单的推断。例如,我想从一个类的用 android 注释的方法的百分比来推断它的支持级别。我知道我可以用 java 和检查员做类似的事情,我只是不确定我是否可以用 doxygen 来做这件事。
多谢!
I couldn't really find anythingon this anywhere: i'd like to use custom annotations with doxygen. To be more exact, I have an @android
before every method thats supported on android, and would like doxygen to recognize, support and link his, similar to what it does with xrefitem. Is that possible?
The ultimate awesomeness would be to be able to do some light inference on this. For example, i'd like to infer he supportion level of a class from the percentage of it's method that are annotated wih android. I knowhat i can do somthing like that with java and inspectors, i'm just not sure if i could do this with doxygen.
Thanks a lot!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您从此处开始阅读 \xrefitem 的文档:
http://www.doxygen.org/commands .html#cmdxrefitem
您会发现可以通过别名定义自定义命令,此处有更详细的记录
http://www.doxygen.org/custcmd.html
“覆盖级别”的计算不是直接支持。您可以检查是否可以使用 doxygen 的 XML 输出(请参阅配置选项 GENERATE_XML)。
If you start with reading the documentation for \xrefitem here:
http://www.doxygen.org/commands.html#cmdxrefitem
you'll find that you can define custom commands via ALIASES, which are documented in more detail here
http://www.doxygen.org/custcmd.html
The computation of a 'coverage level' is not directly supported. You could check if you can use doxygen's XML output for that (see config option GENERATE_XML).