Community
Participate
Working Groups
Eclipse IDE for C/C++ Developers Version: Kepler Service Release 1 Build id: 20130919-0819 Reproducing the bug: Consider the following code: ======== Original Version ======== float torename = 0; float GlobalVar_0 = 100; float f_0() { return GlobalVar_0; } float f_1() { return torename; } ================================== Now, let's rename the variable "torename" to "a v" Applying the refactoring: ========== Refactored ============ float a v = 0; float GlobalVar_0 = 100; float f_0() { return GlobalVar_0; } float f_1() { return a v; } ================================= The tool shouldn't allow to apply invalid transformations like this. Notice that now the program has a compilation error. It would be good if it was possible to prevent incorrect renames by checking if at least the proposed rename is a well-formed name. Thanks in advance.
Correcting: * Now, let's rename the variable "torename" to "a v"
Ignore this, sorry. (In reply to Gustavo Wagner from comment #1) > Correcting: > * Now, let's rename the variable "torename" to "a v"