Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351009 - Code assistance fails when printing argument list for a call to a base class constructor in a derived classes constructor (C++)
Summary: Code assistance fails when printing argument list for a call to a base class ...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.0.1   Edit
Assignee: Markus Schorn CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-02 19:32 EDT by ivstalin CLA
Modified: 2011-07-05 07:47 EDT (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 ivstalin CLA 2011-07-02 19:32:31 EDT
Code assistance fails when printing argument list for a call to a base class constructor in a derived classes constructor (C++):

For example, if I press ctrl+space to complete the parameters for the QWidget() constructor in the following method, I get 'no proposals'.
LineGraphWidget::LineGraphWidget(QWidget* parent, const int width, const int height, const int gridInterval)
    : QWidget(parent) <<<< press ctrl+space in argument list here

...however, if I prefix the QWidget() call with the global scope operator, it works correctly:

LineGraphWidget::LineGraphWidget(QWidget* parent, const int width, const int height, const int gridInterval)
    : ::QWidget(parent)

-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.linuxtools.product)
Installed Features:
 org.eclipse.platform 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
Comment 1 Markus Schorn CLA 2011-07-05 05:56:02 EDT
Thanks, I can reproduce the problem. I am pretty sure that it is a parser issue.
Comment 2 Markus Schorn CLA 2011-07-05 07:47:43 EDT
Added testcase, fixed in CDT 8.0.1 > 20110705.