Reputation: 1002
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.
Upvotes: 1
Views: 1033
Reputation: 2416
You can document the whole enum instead of the individual values.
/// Description of Values
enum
{
VALUE_1 = 0,
VALUE_2 = 1,
VALUE_3 = 2
};
Upvotes: 1