1

I have an enum that is straightforward and does not require to have each member documented. I'd still like all members in the documentation so people can see the possible values.

Is there a way to make doxygen to extract all members of enums without setting it to EXTRACT_ALL?

Enum in Question:

/// \brief This enum holds all normal and special keys
enum Key
{
   KEY_A = 'A',
   KEY_B = 'B',
   // etc
};
DeleteMe
  • 197
  • 1
  • 12
  • possible duplicate of [Document multiple enumeration/variables with the same description in doxgen](http://stackoverflow.com/questions/3536033/document-multiple-enumeration-variables-with-the-same-description-in-doxgen) – Chris Oct 23 '12 at 15:47

1 Answers1

1

Have a look at member grouping and the DISTRIBUTE_GROUP_DOC configuration file option.

From the DISTRIBUTE_GROUP_DOC documentation:

If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC tag is set to YES, then doxygen will reuse the documentation of the first member in the group (if any) for the other members of the group. By default all members of a group must be documented explicitly.

Also, remember to have \file somewhere.

albert
  • 8,285
  • 3
  • 19
  • 32
Chris
  • 44,602
  • 16
  • 137
  • 156