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

Bug 335202

Summary: [Extract Local Variable] Suggested name is wrong for nested function calls
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-refactoringAssignee: Marc-André Laperle <malaperle>
Status: RESOLVED FIXED QA Contact: Emanuel Graf <emanuel>
Severity: normal    
Priority: P3 CC: cdtdoug, yevshif
Version: 7.0.2   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Extract Local Variable, nested function calls patch
none
Extract Local Variable, nested function calls patch
malaperle: iplog-
mylyn/context/zip none

Description Marc-André Laperle CLA 2011-01-24 10:25:46 EST
Example:

getFoo(getBar())

If I select the whole thing, 'bar' is suggested. Similarly, 

getFoo(getBar(getFooBar()))

fooBar is suggested.
Comment 1 Marc-André Laperle CLA 2011-01-24 10:29:26 EST
Created attachment 187429 [details]
Extract Local Variable, nested function calls patch

Patch + tests.
Comment 2 Marc-André Laperle CLA 2011-02-19 01:04:39 EST
Created attachment 189338 [details]
Extract Local Variable, nested function calls patch

Updated copyrights
Comment 3 Marc-André Laperle CLA 2011-02-19 01:04:41 EST
Created attachment 189339 [details]
mylyn/context/zip
Comment 4 Marc-André Laperle CLA 2011-04-07 08:41:44 EDT
Fixed in HEAD.