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 ======== #define identifier_0 float gvar_0 = -1; void f_0() { int var_0 = -1; var_0 = 100; } int f_1(int var_0) { return var_0; } ================================== Now, let's rename the macro "identifier_0" to "0" Applying the refactoring: ========== Refactored ============ #define 0 float gvar_0 = -1; void f_0() { int var_0 = -1; var_0 = 100; } int f_1(int var_0) { return var_0; } ================================= 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 the use of literals when renaming. Thanks in advance.
Correcting: * Now, let's rename the macro "identifier_0" to "0"
Ignore this, sorry. (In reply to Gustavo Wagner from comment #1) > Correcting: > * Now, let's rename the macro "identifier_0" to "0"