Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: jomeggs on April 13, 2008, 09:28:11 pm

Title: typedef enum confuses Symbols browser
Post by: jomeggs 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;

Title: Re: typedef enum confuses Symbols browser
Post by: mandrav on April 14, 2008, 10:15:06 am
Thanks for pointing this out and also supplying a simple test case.
Fixed in r5002.
Title: Re: typedef enum confuses Symbols browser
Post by: jomeggs on April 14, 2008, 01:36:11 pm
Fixed in r5002.

Thank you, that's quite fast!