【问题标题】:Doxygen Alias to Ignore Line忽略行的 Doxygen 别名
【发布时间】:2013-05-15 14:01:21
【问题描述】:

为了使公司范围的标题格式适应 doxygen,我想创建一些将被 doxygen 忽略的自定义标签。我想我可以用别名来做到这一点,但到目前为止只能用其他人替换标签。我想要完成的工作:

/** * @company 公司名称 **/

使用像 @company="" 这样的别名。不幸的是,这只是打印没有部分名称的文本。

有什么想法吗?

【问题讨论】:

    标签: alias doxygen


    【解决方案1】:

    您可以使用 HTML 样式的 cmets 来隐藏部分,即

    /** Show this <!-- but hide this --> and show this again */
    

    或者你可以使用@if...@endif

    /** Show this @if VISIBILE but hide this @endif and show this again */
    

    为了节省输入,您可以定义一对别名

    ALIASES = hide="@if VISIBLE" endhide="@endif"
    

    然后写

    /** Show this @hide but hide this @endhide and show this again */
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-10
      • 2012-09-01
      • 2014-10-07
      • 2023-03-07
      • 2011-12-07
      • 2010-11-24
      • 1970-01-01
      • 2011-07-19
      相关资源
      最近更新 更多