开发者

Doxygen with custom annotations

开发者 https://www.devze.com 2023-03-31 01:12 出处:网络
I couldn\'t really find anythingon this anywhere: i\'d like to use custom annotations with doxygen. To be more exact, Ihave an @android before every method thats supported on android, and would like d

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 开发者_如何学Gowith doxygen.

Thanks a lot!


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消