Code completion doesn't work
Posted: Fri Dec 24, 2004 7:42 pm
Hi,
In my large C++ projects, I find that code completion doesn't work at all ( no popup) about 1/2 the time. About 1/4 of the time, I get the operations and attributes for the wrong class. The remaining 1/4 of the time, it works but includes mistakes like typedefs showing as variable names. A small example of some of these problems is below.
Jack
typedef class my_class
{
public:
void init( void );
private:
typedef struct my_struct
{
int var1;
int var2;
} MY_STRUCT;
MY_STRUCT struct_data,
*struct_ptr;
} MY_CLASS;
MY_CLASS my_class1, *ptr1;
class my_class my_class2, *ptr2, class_array[4];
int main( void )
{
// code completion doesn't work for these lines (no popup)
my_class1.
ptr1->
class_array[0].
// code completion incorrectly includes MY_STRUCT as a attribute in popup
my_class2.
ptr2->
// code completion provided struct_data field but will not expand it further
my_class2.struct_data.
}
In my large C++ projects, I find that code completion doesn't work at all ( no popup) about 1/2 the time. About 1/4 of the time, I get the operations and attributes for the wrong class. The remaining 1/4 of the time, it works but includes mistakes like typedefs showing as variable names. A small example of some of these problems is below.
Jack
typedef class my_class
{
public:
void init( void );
private:
typedef struct my_struct
{
int var1;
int var2;
} MY_STRUCT;
MY_STRUCT struct_data,
*struct_ptr;
} MY_CLASS;
MY_CLASS my_class1, *ptr1;
class my_class my_class2, *ptr2, class_array[4];
int main( void )
{
// code completion doesn't work for these lines (no popup)
my_class1.
ptr1->
class_array[0].
// code completion incorrectly includes MY_STRUCT as a attribute in popup
my_class2.
ptr2->
// code completion provided struct_data field but will not expand it further
my_class2.struct_data.
}