Skip to content

Commit

Permalink
Merge pull request #18350 from jketema/test-cleanup-2
Browse files Browse the repository at this point in the history
C++: Simplify more `semmle-extractor-options`
  • Loading branch information
jketema authored Dec 20, 2024
2 parents 46e9d0a + 46b230a commit 659ec66
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/arguments/arguments.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// semmle-extractor-options: -Werror

#ifndef __CODEQL_TEST__
#error __CODEQL_TEST__ missing
#endif
3 changes: 1 addition & 2 deletions cpp/ql/test/library-tests/arguments/arguments.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@
| arguments.c | 17 | __CODEQL_TEST__ |
| arguments.c | 18 | --gcc |
| arguments.c | 19 | -w |
| arguments.c | 20 | -Werror |
| arguments.c | 21 | arguments.c |
| arguments.c | 20 | arguments.c |
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/blocks/c/options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/blocks/capture/options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/blocks/cpp/options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/blocks/deduplication/options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/functionpointerish/options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/rvalueCast/disabled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ void disabled(void) {
p = &(int)a;
}

// semmle-extractor-options: --microsoft /Zc:rvalueCast-
// semmle-extractor-options: --microsoft --edg --preserve_lvalues_with_same_type_casts
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/rvalueCast/enabled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ void enabled(void) {
p = &(int)a;
}

// semmle-extractor-options: --microsoft /Zc:rvalueCast --expect_errors
// semmle-extractor-options: --microsoft --edg --no_preserve_lvalues_with_same_type_casts --expect_errors
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/type_sizes/options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks
2 changes: 1 addition & 1 deletion cpp/ql/test/library-tests/udl/options
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: --gnu_version 40801 --clang -Xclang-only=-Wno-reserved-user-defined-literal
semmle-extractor-options: --gnu_version 40801 --clang --edg --no_reserved_user_defined_literal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// semmle-extractor-options: -fblocks
// semmle-extractor-options: --edg --blocks
#ifdef COMPILABLE_TEST
#include <stdio.h>
#else
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
semmle-extractor-options: --microsoft /Zc:wchar_t- --edg --target --edg win64
semmle-extractor-options: --microsoft --edg --no_wchar_t_keyword --edg --target --edg win64

0 comments on commit 659ec66

Please sign in to comment.