Author Topic: typedef enum confuses Symbols browser  (Read 4766 times)

Offline jomeggs

  • Multiple posting newcomer
  • *
  • Posts: 92
typedef enum confuses Symbols browser
« on: April 13, 2008, 09:28:11 pm »
Hi,

i found a little problem with the Symbols browser. If I write the following typedef in one of my header files, afterwards the Symbols browser seems to be confused. Some constructors and destructors of classes in the same file are suddenly listed under "Global functions".

Code
typedef enum ETerminalStates
{
 eStateUnknown=-1,   /**< noch nicht bekannt */
 eStateInactive=0,   /**< aktiviert/deaktiviert */
 eStateOffline=1,    /**< offline, nicht ansprechbar */
 eStateOnline=2,     /**< online */
 eStateModemOk=3     /**< letzte Modemkommunikation OK */
} TTerminalStates;

But, if i write it like this (have a look to the last comment...) it works well.
(yes, I'm a docu freak... :D )

Code
typedef enum ETerminalStates
{
 eStateUnknown=-1,   /**< noch nicht bekannt */
 eStateInactive=0,   /**< aktiviert/deaktiviert */
 eStateOffline=1,    /**< offline, nicht ansprechbar */
 eStateOnline=2,     /**< online */
 /** letzte Modemkommunikation OK */
 eStateModemOk=3
} TTerminalStates;

« Last Edit: April 13, 2008, 09:29:56 pm by jomeggs »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: typedef enum confuses Symbols browser
« Reply #1 on: April 14, 2008, 10:15:06 am »
Thanks for pointing this out and also supplying a simple test case.
Fixed in r5002.
Be patient!
This bug will be fixed soon...

Offline jomeggs

  • Multiple posting newcomer
  • *
  • Posts: 92
Re: typedef enum confuses Symbols browser
« Reply #2 on: April 14, 2008, 01:36:11 pm »
Fixed in r5002.

Thank you, that's quite fast!