Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329667

Summary: No code completion for c++ constructors
Product: [Tools] CDT Reporter: German <germandiago>
Component: cdt-parserAssignee: Project Inbox <cdt-parser-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description German CLA 2010-11-08 06:44:39 EST
Build Identifier: M20100909-0800

c++ constructors are not autocompleted. Since we have autocompletion in eclipse cdt, constructors should not be an exception. Besides that, code completion for constructors is very handy because many classes have several overloaded constructors and it's very difficult to remember them all.


Reproducible: Always

Steps to Reproduce:
1.Open eclipse cdt and create new hello world c++ project
2.Include, for instance, header <vector>
3. Write in the main function std::vector<int> vec and press ctr+tab.

No autocompletion for constructors is provided.
Comment 1 Doug Schaefer CLA 2010-11-08 20:25:03 EST
I've seen this. Not sure why we can't find constructors.
Comment 2 Markus Schorn CLA 2010-11-09 03:20:12 EST
Invoking content assist Right after 'vec' is as if you'd want to complete the name of the variable, which is not possible. Instead you want to see the parameter hints. These are computed when you type the leading parenthesis and invoke content assist after that. Even that did not work until recently, see bug 223660.

*** This bug has been marked as a duplicate of bug 223660 ***