Community
Participate
Working Groups
Version: 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 A int main(int argc, char** argv) { int a; // Variable to be renamed #ifdef A a = 1; #else a = 2 #endif return a; } =============================================== Now, let's try to rename the selected variable to "b". Since there aren't any other declaration named "b", it should produce the following result: ============= Suggested Version ============== #define A int main(int argc, char** argv) { int b; #ifdef A b = 1; #else b = 2 #endif return b; } =============================================== However, the refactoring tool doesn't allow to apply the transformation (overly strong constraints). Thanks in advance
overly strong constraints = overly strong condition. Sorry me.