Volodymyr
Volodymyr

Reputation: 49

How do I make doxygen hide enum values in documenting each member?

For example, I have source code

enum ColorModel
{
     COLOR_MODEL_RGB               = 0,
     COLOR_MODEL_RGBA              = 1,
     COLOR_MODEL_Grayscale         = 2,
     COLOR_MODEL_GrayscaleAlpha    = 3,
     COLOR_MODEL_CMYK              = 4,
};

And after generation, in Enumerations section I get:

enum    EColorModel { 
    COLOR_MODEL_RGB = 0, COLOR_MODEL_RGBA = 1, COLOR_MODEL_Grayscale = 2, COLOR_MODEL_GrayscaleAlpha = 3, COLOR_MODEL_CMYK = 4 
}

How can I hide values to get just

enum    EColorModel { 
    COLOR_MODEL_RGB,
    COLOR_MODEL_RGBA,
    COLOR_MODEL_Grayscale,
    COLOR_MODEL_GrayscaleAlpha,
    COLOR_MODEL_CMYK,
}

Upvotes: 1

Views: 1116

Answers (1)

doxygen
doxygen

Reputation: 14879

Set the following in doxygen's configuration file:

MAX_INITIALIZER_LINES = 0

Upvotes: 3

Related Questions