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

Bug 332895

Summary: Rename does not change using-declarations
Product: [Tools] CDT Reporter: Nathan Ridge <zeratul976>
Component: cdt-refactoringAssignee: Sergey Prigogin <eclipse.sprigogin>
Status: RESOLVED FIXED QA Contact: Sergey Prigogin <eclipse.sprigogin>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle, yevshif
Version: 8.0   
Target Milestone: 8.1.0   
Hardware: All   
OS: All   
Whiteboard:

Description Nathan Ridge CLA 2010-12-18 17:57:07 EST
Given this code:

namespace foo
{
    class bar {};  // THIS CHANGES
}
using foo::bar;    // THIS DOES NOT CHANGE
void f()
{
    bar b;         // THIS CHANGES
}

if I rename "bar" to "ack", "class bar {};" is changed to "class ack {};", and "bar b;" changes to "ack b;", but "using foo::bar;" remains unchanged (and as a result, the "bar b;" line in f is now an error).
Comment 2 CDT Genie CLA 2013-02-27 11:40:37 EST
*** cdt git genie on behalf of Sergey Prigogin ***

    Bug 332895 - Rename does not change using-declarations

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=c7be1163514fee663d90df4ff3b6a37a8c1968fa