Is it possible to make Doxygen to extend enumeration initializers?

For the following input:

enum A  
{  
  A1 = 1,
  A2 = 2  
};  
enum B  
{  
  B1 = A2,  
  B2 = A2 * A2 + 1  
}  

I would like doxygen to extend / enable the B :: B1 and B :: B2 initializers. I would like to have a respectable 2and 5in initializers B1 and B2, instead of A2and A2 * A2 + 1. Is it possible? If so, how can this be achieved?
Keep in mind that I only ask about enumeration initializers. They are known at compile time, so (theoretically) doxygen should be able to calculate.

EDIT: Removed ;from enumeration definitions.

+3
source share
1 answer

, , , , , , , #define , , - doxygen .

:

#define A_1 1
#define A_2 2
#define B_1 A_2
#define B_2 (A_2 * A_2 + 1)

enum A  
{  
  A1 = A_1,
  A2 = A_2
};

enum B  
{  
  B1 = B_1,
  B2 = B_2
};

doxygen ENABLE_PREPROCESSING MACRO_EXPANSION.

+1

All Articles