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

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.


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

Back to the top