views:

713

answers:

2

For all my code Eclipse's autocomplete function is working fine, except when I use a typedef.

Example code (someclass.hh):

typedef std::vector<int> IntVector;

class SomeClass {
 void sort_int_vector(IntVector &iv) {
   iv.//eclipse auto complete does not work. (ctrl-space)
  }
}

How can I configure Eclipse to do auto-complete in this case? Or is this not possible?

I use the Ganymede C/C++ (CDT) package for Linux 64-bit

+1  A: 
Andrew Niefer
A: 

I'm having the same problem with Galileo. The indexer seems configured properly since when I'm in a .C, I have the autocomplete working with everything defined in the .H, as long as there are no typedef.

I tried both the fast indexer and the full indexer with the same result.

I'm using Eclipse 3.5.1 R35 with CDT 6.0.0 and CDT/Mylyn 5.1.0.

Luc