是否可以为我的一个类标题上声明的枚举使用doxygen生成文档? this link中名为“范围”的属性的枚举未显示为文档类型。
答案 0 :(得分:4)
根据Doxygen手册here:
To document global objects (functions, typedefs, enum, macros, etc), you must document the file in which they are defined. In other words, there must at least be a
/*! \file */
or a
/** @file */
line in this file.
以下是一个例子:
/*! \file MyClass.h
\brief A brief file description.
More details
*/
/*! This is an enum */
enum Direction {
kDirectionRight, /*!< this is right */
kDirectionLeft, /*!< this is left */
};
希望这有帮助
答案 1 :(得分:0)