Community
Participate
Working Groups
In the following program... ========== int main(){ int a=0; if (a == 0) a = 1; //select a else a = 0; return 0; } ========== If you select 'a' on line 4, and invoke the Extract Local Variable refactoring, CDT produces the following incorrect code: ========== int main(){ int a=0; if (a == 0) int extracted_variable = a; extracted_variable = 1; //select a else a = 0; return 0; } ========== Incorrect use of else statement...