Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a73cdf3 + 46821fe commit d05dbb2Copy full SHA for d05dbb2
2 files changed
cpp/ql/test/query-tests/Best Practices/Hiding/DeclarationHidesVariable/DeclarationHidesVariable.expected
@@ -1,2 +1,3 @@
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
| 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 |
cpp/ql/test/query-tests/Best Practices/Hiding/DeclarationHidesVariable/hiding.cpp
@@ -35,7 +35,7 @@ void structuredBinding() {
35
int xs[1] = {1};
36
auto [x] = xs;
37
{
38
- auto [x] = xs; // BAD [NOT DETECTED]
+ auto [x] = xs; // BAD
39
auto [y] = xs; // GOOD
40
}
41
0 commit comments