User forums > General (but related to Code::Blocks)
code completion is not working with C-like structure definition
coder:
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.
McZim:
Hi,
try several time rebuild project. And try get access to the your functions.
coder:
access to the functions in my project is OK, in the "symbols browser" I can see all functions, and also when i type the name of function, autocompletion is working.
jfouche:
I agree, I have the same problem :
--- Quote from: coder on July 07, 2008, 12:37:40 pm ---typedef struct My_test_struct My_test_struct_t;
struct My_test_struct
{
int nElement1;
int nElement2;
};
My_test_struct_t a;
a.
--- End quote ---
--
Jérémie
coder:
question to developers of codeblocks and code completion plugin: any plans to fix this in the near feature?
Bug is posted here: http://developer.berlios.de/bugs/?func=detailbug&bug_id=14159&group_id=5358
Navigation
[0] Message Index
[#] Next page
Go to full version