Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329667 - No code completion for c++ constructors
Summary: No code completion for c++ constructors
Status: CLOSED DUPLICATE of bug 223660
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 06:44 EST by German CLA
Modified: 2010-11-09 03:20 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***