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

Bug 323596

Summary: Eclipse omit const ref for typedef function parameter.
Product: [Tools] CDT Reporter: Vasiliy Dybala <dibalavs>
Component: cdt-editorAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: 7.0.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
testcase + fix mschorn.eclipse: iplog-

Description Vasiliy Dybala CLA 2010-08-25 07:53:58 EDT
typedef int MyType;

void func(const MyType& val);
void func1(MyType& val);

void test(<press ctrl+cpace>)
{
 func();
}


inside func() press ctrl+space 
content assist shows suggestion "MyType val" instead "const MyType& val".

the same for func1().

-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY
Comment 1 Markus Schorn CLA 2010-08-25 08:36:18 EDT
Created attachment 177410 [details]
testcase + fix
Comment 2 Markus Schorn CLA 2010-08-25 08:37:22 EDT
Fixed in 7.0.1 and 8.0 > 20100825.