Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] No autocomplete on constructors

It does not. I have tried that. I've even tried doing something like "Test t(5);" letting it see what is going on and changing it to "Test t(5,|);" where | is the cursor, and it will not recognise it.

There's a bug at play because for eample:

Test t suggests things like tan
Test ta doesn't suggest anything.

Alec

On 30/11/14 01:58, Nathan Ridge wrote:
If works if you type the opening parenthesis of the constructor invocation:

Test t( /* invoke completion here */

If you haven't typed the parenthesis yet, CDT thinks you're still typing the variable name, and offers you completions for that.

I believe this works as designed.

Regards,
Nate

----------------------------------------
Date: Sun, 30 Nov 2014 01:28:49 +0000
From: a.teal@xxxxxxxxxxxxx
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] No autocomplete on constructors

Hello all!

I found https://bugs.eclipse.org/bugs/show_bug.cgi?id=329667 this and
this was dated 2010 but is still a bug!

CDT offers no help for constructors, to reproduce try this:

class Test {
public:
Test(int,int,int);
};

Now in a code block (IE main function or whatever) type "Test t" and
press ctrl+tab you'll get function names (like tan and whatnot)
Use a second letter and you lose that, autocomplete offers nothing.

However "Test t = Test" will as will "Test t = Test(" I've tried many
variations of this and it's always driven me mad, I end up resorting to
using new and copying the syntax - which is a bad habit!

Alec
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev
  		 	   		
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top