Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Content Assist problems with STL
Content Assist problems with STL [message #140242] Sun, 06 March 2005 16:11 Go to next message
Eclipse UserFriend
Originally posted by: sandor.hojtsy.gmail.com

Hi,

I am using CDT 2.1 on Eclipse 3.0.1 on Windows 2000.
The compiler and STL is coming from is the Mingw 3.4.2 installed with
DevCpp 4.9.9.2.

The environment is configured properly so that Indexer works OK and C++
source files successfully compile. But Content Assist seem to have
problems. For example with this code:

#include <vector>
struct D { int g1, g2; };
int main()
{
D a;
std::vector<D> v(3);
a. <---- CA works (line 7)
v. <---- CA partially works (line 8)
v[0]. <---- CA gets really wrong (line 9)
}

In line 7 Content Assist properly offers g1 and g2.
In line 8 Content Assist only lists half of the methods in vector. For
example the size() method is not listed.
In line 9 Content Assist offers the methods of vector, but it should
offer g1 and g2.

Is Content Assist beta quality, or am I doing something wrong?
Increasing the processing time limit for Content Assist does not help.

-hojtsy-
Re: Content Assist problems with STL [message #140425 is a reply to message #140242] Wed, 09 March 2005 11:59 Go to previous message
Eclipse UserFriend
There are still a number of bugs in parsing of templates in 2.1. Those
methods in vector that aren't appearing in line 8 will be the ones that we
were not able to parse correctly for whatever reason.

We do not currently handle user defined operators, so line 9 the parser does
not match [] with the vector's implimentation. The parser currently only
understands [] wrt arrays.

So in short you did nothing wrong, results won't get better until a future
release (hopefully)
-Andrew

"Sandor Hojtsy" <sandor.hojtsy@gmail.com> wrote in message
news:d0frlo$i27$1@www.eclipse.org...
> Hi,
>
> I am using CDT 2.1 on Eclipse 3.0.1 on Windows 2000.
> The compiler and STL is coming from is the Mingw 3.4.2 installed with
> DevCpp 4.9.9.2.
>
> The environment is configured properly so that Indexer works OK and C++
> source files successfully compile. But Content Assist seem to have
> problems. For example with this code:
>
> #include <vector>
> struct D { int g1, g2; };
> int main()
> {
> D a;
> std::vector<D> v(3);
> a. <---- CA works (line 7)
> v. <---- CA partially works (line 8)
> v[0]. <---- CA gets really wrong (line 9)
> }
>
> In line 7 Content Assist properly offers g1 and g2.
> In line 8 Content Assist only lists half of the methods in vector. For
> example the size() method is not listed.
> In line 9 Content Assist offers the methods of vector, but it should
> offer g1 and g2.
>
> Is Content Assist beta quality, or am I doing something wrong?
> Increasing the processing time limit for Content Assist does not help.
>
> -hojtsy-
Previous Topic:Writing Plugins with C++
Next Topic:Debugging DLL on Windows
Goto Forum:
  


Current Time: Fri Jul 18 02:16:02 EDT 2025

Powered by FUDForum. Page generated in 0.06653 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top