Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323596 - Eclipse omit const ref for typedef function parameter.
Summary: Eclipse omit const ref for typedef function parameter.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 7.0.1   Edit
Assignee: Markus Schorn CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-25 07:53 EDT by Vasiliy Dybala CLA
Modified: 2010-08-25 10:23 EDT (History)
0 users

See Also:


Attachments
testcase + fix (2.45 KB, patch)
2010-08-25 08:36 EDT, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

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