News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

code completion is not working with C-like structure definition

Started by coder, July 07, 2008, 12:37:40 PM

Previous topic - Next topic

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.
--
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

Jenna

An answer of a normal user (not a C::B developer):

CodeCompletion gets currently redesigned.

You may find some interesting articles in http://forums.next.codeblocks.org/index.php/board,18.0.html.
There's also a wiki-article about CC-redesign: http://wiki.codeblocks.org/index.php?title=Code::Completion_Rewrite