是否可以在Doxygen中隐藏属性声明?
问题描述:
在C#中,我有一个类似如下的一些静态只读属性:是否可以在Doxygen中隐藏属性声明?
/// 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");
位。这可能吗?
答
您可以在配置文件中将MAX_INITIALIZER_LINES
设置为0
以全局隐藏初始值设定项。
您还可以使用/** @cond */ thing to hide from doxygen /** @endcond */
在本地隐藏某物。