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 28c0dd9
Browse filesBrowse the repository at this point in the historyBrowse files
Add maybe_unused regression tests for unused-variable queries
Cover C++17 maybe_unused local and static variables in the unused-variable query tests. Record the current alerts as spurious so the regression cases pass until the queries account for the standard attribute.
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:13:29:13:39 | staticVar11 | Static variable staticVar11 is never read. |
Copy file name to clipboardExpand all lines: misc/bazel/registry/modules/rules_swift/4.0.0-rc5-codeql.2/patches/register_downloaded_macos_toolchain.patch
0 commit comments