Skip to content

Possible to get enum values in the Enumeration Type documentation? #8256

@bitblitz

Description

@bitblitz

Not sure if this is a bug, or a feature request, or user error.

Describe the bug
Given something like the example shown below, the generated documentation for foo.h has two sections regarding this enumeration.

The first section "Enumerations" contains the values, such as:

enum | RequestFlags {  FIRST = 0x01, ...

The number of values per line are controlled by the ENUM_VALUES_PER_LINE setting.

The second section "Enumeration Type Documentation" contains a table such as this:

enum RequestFlags
Valid Request Flags

Enumerator
| FIRST | ONE
etc...

This second detailed table contains the actual description text from the code.

Is it possible to get the actual numeric value from the "Enumerations" description included in this table? Is there a setting that controls that, or is this a feature request?

Expected behavior
Expect the value to be included in the detailed description of enums, or a setting to optionally include it in the detailed table.

Screenshots
attached

To Reproduce

/// @file foo.h - some file

/// Valid Request Flags
typedef enum _REQUEST_FLAGS
{
    /// ONE
    FIRST   = 0x01,  
    /// TWO
    SECOND   = 0x02,  
    /// Some BIT
    SomeBit  = 0x10,
    /// Another BIT
    AnotherBit  = 0x40
} RequestFlags;

See attached zip

Version
1.8.20 Win10 64bit
(binary distribution)

Stack trace
not a crash

Additional context
n/a

Doxyfile.zip
doxyclip

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to enhance doxygen, not a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions