Skip to content

Commit 90d8fb1

Browse files
authoredDec 20, 2024··
Merge pull request #18335 from jketema/test-cleanup
C++: Simplify some semmle-extractor-options in tests
2 parents 2b2a373 + 6200a1d commit 90d8fb1

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed
 

‎cpp/ql/test/library-tests/builtins/type_traits/clang.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --clang --edg --clang_version --edg 190000
1+
// semmle-extractor-options: --clang --clang_version 190000
22

33
struct S {
44
void f() {}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --clang --edg --c++11 --edg --nullptr
1+
// semmle-extractor-options: --clang -std=c++11 --edg --nullptr
22

33
static int has_nullptr_f = __has_feature(cxx_nullptr);
44
static int has_nullptr_e = __has_extension(cxx_nullptr);

‎cpp/ql/test/library-tests/complex_numbers/conjugation.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --edg --c99
1+
// semmle-extractor-options: -std=c99
22
void f(_Complex double x) {
33
x = ~x;
44
}

‎cpp/ql/test/library-tests/complex_numbers/test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --microsoft --edg --c99
1+
// semmle-extractor-options: --microsoft -std=c99
22
void f(_Imaginary double x, _Imaginary double y) {
33
double z;
44
_Complex double w;

‎cpp/ql/test/library-tests/constants/addresses/addresses.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --c++14
1+
// semmle-extractor-options: -std=c++14
22

33
const int int_const = 1;
44
extern const int extern_int_const = 1;

‎cpp/ql/test/library-tests/constexpr_if/test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --edg --c++20
1+
// semmle-extractor-options: -std=c++20
22

33
void test(void) {
44
int x;

‎cpp/ql/test/library-tests/conversions/complex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ void ComplexNumbers() {
66
c = i;
77
c = r;
88
}
9-
// semmle-extractor-options: --microsoft --edg --c99
9+
// semmle-extractor-options: --microsoft -std=c99

‎cpp/ql/test/library-tests/fold/fold.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --edg --c++17
1+
// semmle-extractor-options: -std=c++17
22

33
template<typename ...Args>
44
int sum(Args&&... args) {

‎cpp/ql/test/library-tests/ir/ir/complex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ void complex_conversions(void) {
144144
ld = jld;
145145
}
146146

147-
// semmle-extractor-options: --microsoft --edg --c99
147+
// semmle-extractor-options: --microsoft -std=c99

‎cpp/ql/test/library-tests/ir/ir/coroutines.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ co_returnable_value co_yield_and_return_value(int i) {
112112

113113

114114

115-
// semmle-extractor-options: --edg --c++20
115+
// semmle-extractor-options: -std=c++20

‎cpp/ql/test/library-tests/ir/types/complex.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ void Imaginary(void) {
1212
// _Imaginary __float128 jf128;
1313
}
1414

15-
// semmle-extractor-options: --microsoft --edg --c99
15+
// semmle-extractor-options: --microsoft -std=c99

‎cpp/ql/test/library-tests/specifiers2/cpp20.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --clang --edg --c++20
1+
// semmle-extractor-options: --clang -std=c++20
22

33
namespace cpp20 {
44

‎cpp/ql/test/library-tests/structs/compatible_c/b1.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --microsoft --edg --c99
1+
// semmle-extractor-options: --microsoft -std=c99
22
struct AppleCompatible { // Definitions of Apple are exactly the same in b1.c and b2.c
33
int apple_x;
44
};

‎cpp/ql/test/library-tests/structs/compatible_c/b2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --microsoft --edg --c99
1+
// semmle-extractor-options: --microsoft -std=c99
22
struct AppleCompatible { // Definitions of Apple are exactly the same in b1.c and b2.c
33
int apple_x;
44
};

‎cpp/ql/test/library-tests/structs/compatible_c/c1_gnu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ struct Kiwi {
77
struct Lemon {
88
unsigned int __attribute__ ((vector_size (16))) lemon_x;
99
};
10-
// semmle-extractor-options: --edg --c99 --clang --edg --clang_vector_types --gnu_version 40700
10+
// semmle-extractor-options: -std=c99 --clang --edg --clang_vector_types --gnu_version 40700

‎cpp/ql/test/library-tests/structs/compatible_c/c2_gnu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ struct Kiwi {
77
struct Lemon {
88
signed int __attribute__ ((vector_size (16))) lemon_x;
99
};
10-
// semmle-extractor-options: --edg --c99 --clang --edg --clang_vector_types --gnu_version 40700
10+
// semmle-extractor-options: -std=c99 --clang --edg --clang_vector_types --gnu_version 40700

‎cpp/ql/test/library-tests/syntax-zoo/builtin.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --clang --edg --clang_version --edg 30500
1+
// semmle-extractor-options: --clang --clang_version 30500
22

33
#define vector(elcount, type) __attribute__((vector_size((elcount)*sizeof(type)))) type
44

‎cpp/ql/test/library-tests/syntax-zoo/cpp11.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --c++11
1+
// semmle-extractor-options: -std=c++11
22

33
namespace range_based_for_11 {
44
void array() {

‎cpp/ql/test/library-tests/syntax-zoo/cpp17.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --c++17
1+
// semmle-extractor-options: -std=c++17
22

33
namespace std { typedef unsigned long size_t; }
44

‎cpp/ql/test/library-tests/types/datasizeof/datasizeof.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --clang --edg --clang_version --edg 190000
1+
// semmle-extractor-options: --clang --clang_version 190000
22

33
typedef unsigned int size_t;
44

‎cpp/ql/test/library-tests/vector_types/vector_types.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: --clang --edg --clang_version --edg 30801
1+
// semmle-extractor-options: --clang --clang_version 30801
22
// Compilable with: clang --std=c++0x -msse4.1 vector_types.cpp
33
// (some bits also compilable with gcc)
44
int printf(...);

0 commit comments

Comments
 (0)
Please sign in to comment.