我想用Doxygen记录两个包含一些相似值的类枚举。但是这会为每个具有相同名称的字段生成重复文本。
以下是我的两个枚举:
/*!
* \enum OperandType
* \brief A type of operand. Represents the location of the operand.
*/
enum class OperandType : unsigned int {
IMMEDIATE, /**< An immediate operand */
REGISTER, /**< An operand in a register */
STACK, /**< An operand on the stack */
GLOBAL /**< A global operand */
};
/*!
* \enum PositionType
* \brief A type of position for a variable
*/
enum class PositionType : unsigned int {
STACK, /**< A variable on the stack */
PARAMETER, /**< A parameter */
GLOBAL, /**< A global variable */
CONST /**< A const variable.*/
};
每个枚举的STACK成员的描述是两个描述的连接,GLOBAL也存在同样的问题。
STACK的描述如下:
是否有一种特定的方式来记录它们?堆栈上的变量
堆栈上的操作数