Community
Participate
Working Groups
Eclipse IDE for C/C++ Developers Reproducing the bug: Consider the following code: ======== Original Version ======== #define Id_0 float func_0 ( ){ float LocalVar_0 = 2; return LocalVar_0; } float Function_0 ( int LocalVar_1){ float LocalVar_0 = 2; return LocalVar_0; } After applying the refactoring, we have the resulting code: #define Id_0 float func_0 ( ){ int a v = 10; float LocalVar_0 = a v; return LocalVar_0; } float Function_0 ( int LocalVar_1){ float LocalVar_0 = 2; return LocalVar_0; }
Please, Consider these codes instead of the other one: Consider the following code: ======== Original Version ======== #define Id_0 float func_0 ( ){ float LocalVar_0 = 10; return LocalVar_0; } float Function_0 ( int LocalVar_1){ float LocalVar_0 = 2; return LocalVar_0; } After applying the refactoring, we have the resulting code: #define Id_0 float func_0 ( ){ int a v = 10; float LocalVar_0 = a v; return LocalVar_0; } float Function_0 ( int LocalVar_1){ float LocalVar_0 = 2; return LocalVar_0; }