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
{{ message }}
Repository navigation
Commit f985aee
Browse filesBrowse the repository at this point in the historyBrowse files
Cover side-effecting initializers for local and static variables, recording the current alerts as spurious. Also cover constructor and destructor side effects for static global objects.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: cpp/ql/test/query-tests/Best Practices/Unused Entities/UnusedStaticVariables/UnusedStaticVariables.expected
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,3 +2,4 @@
2
2
| test.cpp:8:12:8:21 | staticVar6 | Static variable staticVar6 is never read. |
3
3
| test.cpp:10:11:10:19 | constVar8 | Static variable constVar8 is never read. |
4
4
| test.cpp:12:12:12:22 | staticVar10 | Static variable staticVar10 is never read. |
5
+
| test.cpp:38:12:38:22 | initialized | Static variable initialized is never read. |
0 commit comments