This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
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 // Macro to be renamed int main(int argc, char** argv) { int a; #ifdef A a = 1; #endif #ifdef B a = 2; #endif return a; } ================================== Now, let's rename the macro A to "B". Applying the refactoring: ========== Refactored ============ #define B int main(int argc, char** argv) { int a; #ifdef B a = 1; #endif #ifdef B a = 2; #endif return a; } ================================= The refactoring tool didn't check for existing references. In this case, B should not be permitted for a renaming because of the existing #ifdef B. Thanks in advance.
*** This bug has been marked as a duplicate of bug 240303 ***