Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: SamT on July 10, 2007, 05:11:57 pm

Title: Wrong symbol type display
Post by: SamT on July 10, 2007, 05:11:57 pm
Hi,

Could you please help to check the type of the symbol display as following condition?

Code
typedef unsigned char       UINT8;

typedef struct T_PortProperity
{
    UINT8   PortAdmin           : 1;
    UINT8   Reserved            : 1;
    UINT8   PortStatus          : 3;
    UINT8   PortClassification  : 3;
}T_PortProperity;

The symbol page will display:
PortAdmin : UINT8
PortClassification : UINT8UINT8UINT8UINT8
PortStatus : UINT8UINT8UINT8
Reserved : UINT8UINT8

Does anybody report this issue before? I think this is related with CodeCompletePlugin so I post here.

Title: Re: Wrong symbol type display
Post by: rickg22 on July 10, 2007, 09:29:33 pm
bitfields are very rarely used, so it might be possible that Code completion's c++ parser implementation might not be ready for that kind of structures. Please post a bug report at berlios.
Title: Re: Wrong symbol type display
Post by: Ceniza on July 10, 2007, 11:57:38 pm
I think that bug was already reported, perhaps as a feature request. Be sure not to duplicate it.