New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strongly typed c++11 enums do not generate correct output (Origin: bugzilla #663645) #4464

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version 1.7.5.1 on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2011-11-08 18:28:16 +0000, Gregor Brandt wrote:

If two strongly typed enums use the same constant, the generated documenet for an enum contains both explanation texts if identical even thought the enum is typed.

enum class eTest1
{
OK, //!< This is OK
NOT_OK //!< this is not OK
};

enum class eTest2
{
OK, //!< this is also OK
FAIL, //!< this is a fail
}

produces:

enum eTest1

OK
This is OK
This is also OK <====== this should not be here

NOT_OK
This is not OK

enum eTest2

OK
This is OK <====== this should not be here
This is also OK

FAIL
This is a fail

On 2012-06-24 14:55:28 +0000, Dimitri van Heesch wrote:

Confirmed. I'll add support for these enums in the next subversion update.

On 2012-07-12 15:41:58 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1.2. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.

On 2012-07-29 11:49:06 +0000, Kriz wrote:

Created attachment 219833
Regular enums will display description of members.

On 2012-07-29 11:49:54 +0000, Kriz wrote:

Uh oh... I don't know why but the description text "Enumerator:" of strongly typed enums' single members will not be displayed in my HTML output. Changing the declaration back to regular enums will let them appear immediately (see attached images).

enum Test
{
/// This is bla.
bla,
/// This is foo.
foo
};

HTML output:

bla
This is bla.
foo
This is foo.

And now the new variant:

enum class Test
{
/// This is bla.
bla,
/// This is foo.
foo
};

No HTML output of the decription text! I'm using version 1.8.1.2

On 2012-07-29 11:51:28 +0000, Kriz wrote:

Created attachment 219834
Strongly typed enums will drop description of members...

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment