1

Is it possible to document multiple enumeration/variables with the same documentation?

For example:

enum
{
   /// Description of Values
   VALUE_1 = 0,
   VALUE_2 = 1,
   VALUE_3 = 2
};

This results only VALUE_1 getting described by the doxygen description, when in reality, I want all three values to have the same description. The only way to get around this is copy and paste the description for every value.

2 Answers 2

1

You can document the whole enum instead of the individual values.

/// Description of Values
enum
{
   VALUE_1 = 0,
   VALUE_2 = 1,
   VALUE_3 = 2
};
Sign up to request clarification or add additional context in comments.

Comments

0

Member groups may be what you are looking for.

1 Comment

Thanks, but it sorta of works. However, it gives me a good place to start.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.