File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
cpp/ql/test/query-tests/Best Practices/Hiding/DeclarationHidesVariable Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
| hiding.cpp:6:17:6:17 | i | Variable i hides another variable of the same name (on $@). | hiding.cpp:4:13:4:13 | i | line 4 |
2
2
| hiding.cpp:18:15:18:15 | k | Variable k hides another variable of the same name (on $@). | hiding.cpp:15:11:15:11 | k | line 15 |
3
+ | hiding.cpp:38:11:38:11 | x | Variable x hides another variable of the same name (on $@). | hiding.cpp:36:9:36:9 | x | line 36 |
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void structuredBinding() {
35
35
int xs[1 ] = {1 };
36
36
auto [x] = xs;
37
37
{
38
- auto [x] = xs; // BAD [NOT DETECTED]
38
+ auto [x] = xs; // BAD
39
39
auto [y] = xs; // GOOD
40
40
}
41
41
}
You can’t perform that action at this time.
0 commit comments