Commit d19504f
committed
C++: Add
This is similar to the test case with the `if` initializer, and we should
not forget about it once we support `if` initialization.cpp/unused-local-variable test case with switch initializer1 parent ccd7bb5 commit d19504f
2 files changed
Lines changed: 14 additions & 1 deletion
File tree
- cpp/ql
- src/Best Practices/Unused Entities
- test/query-tests/Best Practices/Unused Entities/UnusedLocals
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
0 commit comments