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

Bug 311941

Summary: Parameter rename does not affect function declaration
Product: [Tools] CDT Reporter: Nathan Baker <nathanb>
Component: cdt-refactoringAssignee: Project Inbox <cdt-refactoring-inbox>
Status: CLOSED DUPLICATE QA Contact: Emanuel Graf <emanuel>
Severity: minor    
Priority: P3 CC: nathanb
Version: 5.0.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Nathan Baker CLA 2010-05-06 13:48:10 EDT
Build Identifier: 20100218-1602

When I highlight the name of a parameter variable and select the "rename" refactoring action (Shift + Alt + R), the variable is not renamed in the declaration.

Reproducible: Always

Steps to Reproduce:
1. Declare function void foo(int bar, int baz) in foo.h
2. In foo.c which #includes foo.h, implement function foo
3. Select parameter bar and press Shift + Alt + R to rename it
4. Rename bar to new_bar
5. Function declaration in foo.h still has the name 'bar'
Comment 1 Markus Schorn CLA 2010-05-10 03:16:28 EDT

*** This bug has been marked as a duplicate of bug 158938 ***