Doxygen的自定义标签 [英] Custom tags with Doxygen
本文介绍了Doxygen的自定义标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试确定是否有一种使用Doxygen创建自定义标签的方法。我确实找到了ALIAS配置文件选项,但是并不能完全满足我的需要。基本上在我的代码中,我希望能够编写类似
I am trying to figure out if there is a way to create a custom tag using Doxygen. I did find the ALIAS configuration file option but that does not do exactly what I need. Basically in my code I want to be able to write something like
/// \req Requirement #322 - blah blah
然后让Doxygen像 \bug一样创建一个列表
和 \todo
命令用于具有此自定义标记的行。 Doxygen可以做到吗?
And then have Doxygen create a list like it does for \bug
and \todo
commands for lines that have this custom tag. Is this possible with Doxygen?
推荐答案
\bug
的推广而 \todo
是 \xrefitem
。
我建议的解决方案是:
-
在Doxyfile中:
in Doxyfile:
ALIASES += "req=\xrefitem req \"Requirement\" \"Requirements\" "
以书面代码进行>>
in documented code:
/// \req #42 - The system shall work in any situation
这篇关于Doxygen的自定义标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文