You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following code, when I put the cursor on the first occurrence of i (the declaration) and ask for a rename, only the declaration is renamed - not the other occurrences of i (in i < 3, i++, cout << i, etc.).
for (int i = 0; i < 3; i++) {
cout << i;
}
If I declare 'i' externally, then there are still scoping issues.
for (int i = 0; i < 3; i++) { // incorrectly renamed
cout << i; // incorrectly renamed
}
int i; // <- run rename on this 'i'
for (i = 0; i < 3; i++) { // these are renamed, correctly
}
then all instances of i are renamed, even those from the first for loop.
The text was updated successfully, but these errors were encountered:
In the following code, when I put the cursor on the first occurrence of
i
(the declaration) and ask for a rename, only the declaration is renamed - not the other occurrences of i (ini < 3
,i++
,cout << i
, etc.).If I declare 'i' externally, then there are still scoping issues.
then all instances of
i
are renamed, even those from the first for loop.The text was updated successfully, but these errors were encountered: