After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561228 - Wrong documentation generated for enum
Wrong documentation generated for enum
Status: RESOLVED NOTABUG
Product: doxygen
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2008-11-17 15:57 UTC by Alex
Modified: 2015-01-01 10:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alex 2008-11-17 15:57:29 UTC
Please describe the problem:
    typedef enum AccountDescriptor
    {    
///NoDescriptor
         NoDescriptor///1
///PrimaryAccount  
        ,PrimaryAccount///2  
///SecondaryAccount
        ,SecondaryAccount///3

    }AccountDescriptor;


Steps to reproduce:
1. Please look at the comments created by Doxygen for the code provided


Actual results:
Enumerator:
    NoDescriptor 	NoDescriptor.

    1 PrimaryAccount
    PrimaryAccount 	SecondaryAccount.

    2
    SecondaryAccount 	3

Expected results:
Enumerator:
    NoDescriptor 	NoDescriptor.

    
    PrimaryAccount 	PrimaryAccount. 2 


    SecondaryAccount 	SecondaryAccount. 3


Does this happen every time?
Yes

Other information:
Comment 1 albert 2014-04-26 18:13:37 UTC
I think this is a misinterpretation of how the documentation works.
Documentation after a variable (that ended already) has to be done by means of //!< and the documentation before the element can be done by means of /// but e.g. the element 
NoDescriptor ends at the ,(comma) so the ///PrimaryAccount is still seen as belonging to NoDescriptor      

So I think the correct formulation would be:
    typedef enum AccountDescriptor
    {
///NoDescriptor
         NoDescriptor,//!< 1
///PrimaryAccount
         PrimaryAccount, //!< 2
///SecondaryAccount
         SecondaryAccount//!< 3

    }AccountDescriptor;

 
See also the documentation paragraph 4.1 Special comment blocks (and paragraph 4.1.1.2 Examples)