【问题标题】:Is it possible to hide attribute declarations in Doxygen?是否可以在 Doxygen 中隐藏属性声明?
【发布时间】:2013-03-24 02:19:33
【问题描述】:

在 C# 中,我有一些静态只读属性,如下所示:

/// Provides the thingie.
public static readonly SomeClass Thingie = new SomeClass("Thingie Name");

在更大的班级内。 Doxygen 在文档中生成一个静态公共属性部分(如预期的那样),其中包含一个我想要的 Thingie 条目。但是,它也包含声明,如下所示:

+--------------------------+-----------------------------------------+
|static readonly SomeClass | Thingie = new SomeClass("Thingie Name");|
|                          | Provides the thingie.                   |
+--------------------------+-----------------------------------------+

我只想隐藏= new SomeClass("Thingie Name"); 位。这可能吗?

【问题讨论】:

    标签: c# doxygen


    【解决方案1】:

    您可以在配置文件中将MAX_INITIALIZER_LINES 设置为0 以全局隐藏初始化程序。

    你也可以使用/** @cond */ thing to hide from doxygen /** @endcond */在本地隐藏一些东西。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-27
      • 1970-01-01
      • 2021-12-19
      • 2015-06-16
      • 2015-12-08
      • 1970-01-01
      相关资源
      最近更新 更多