Bug #14159 2008-07-07 19:51
svojvdosku
Code completion is not working with C-like structure definit
I found a problem with Codeblocks, which is very critical for all C developers.
When I declare structure like this:
typedef struct My_test_struct My_test_struct_t;
struct My_test_struct
{
int nElement1;
int nElement2;
};
, code completion is not able to show elements:
My_test_struct_t a;
a.
But, if structure is declared like this:
typedef struct
{
int nElement1;
int nElement2;
}My_test_struct_t;
, then it works perfect:
My_test_struct_t a;
a.
nElement1
nElement2
I think for all C-developers is very important to extend "code completion" to make completion feature working also in case of C-like structure definition.
- Category
- Plugin::CodeCompletion
- Group
- Status
- Closed
- Close date
- 2010-10-15 13:12
- Assigned to
- loaden
History
I can confirm it. Maybe, the function
void ParserThread::HandleTypedef()
should be improved to deal with this C-like structure definition.
This bug is now fixed in HEAD.
Thank you for reporting it.