File tree 21 files changed +21
-21
lines changed
cpp/ql/test/library-tests
21 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --clang --edg -- clang_version --edg 190000
1
+ // semmle-extractor-options: --clang --clang_version 190000
2
2
3
3
struct S {
4
4
void f () {}
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --clang --edg -- c++11 --edg --nullptr
1
+ // semmle-extractor-options: --clang -std= c++11 --edg --nullptr
2
2
3
3
static int has_nullptr_f = __has_feature(cxx_nullptr);
4
4
static int has_nullptr_e = __has_extension(cxx_nullptr);
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --edg -- c99
1
+ // semmle-extractor-options: -std= c99
2
2
void f (_Complex double x ) {
3
3
x = ~x ;
4
4
}
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --microsoft --edg -- c99
1
+ // semmle-extractor-options: --microsoft -std= c99
2
2
void f (_Imaginary double x , _Imaginary double y ) {
3
3
double z ;
4
4
_Complex double w ;
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: -- c++14
1
+ // semmle-extractor-options: -std= c++14
2
2
3
3
const int int_const = 1 ;
4
4
extern const int extern_int_const = 1 ;
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --edg -- c++20
1
+ // semmle-extractor-options: -std= c++20
2
2
3
3
void test (void ) {
4
4
int x;
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ void ComplexNumbers() {
6
6
c = i ;
7
7
c = r ;
8
8
}
9
- // semmle-extractor-options: --microsoft --edg -- c99
9
+ // semmle-extractor-options: --microsoft -std= c99
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --edg -- c++17
1
+ // semmle-extractor-options: -std= c++17
2
2
3
3
template <typename ...Args>
4
4
int sum (Args&&... args) {
Original file line number Diff line number Diff line change @@ -144,4 +144,4 @@ void complex_conversions(void) {
144
144
ld = jld ;
145
145
}
146
146
147
- // semmle-extractor-options: --microsoft --edg -- c99
147
+ // semmle-extractor-options: --microsoft -std= c99
Original file line number Diff line number Diff line change @@ -112,4 +112,4 @@ co_returnable_value co_yield_and_return_value(int i) {
112
112
113
113
114
114
115
- // semmle-extractor-options: --edg -- c++20
115
+ // semmle-extractor-options: -std= c++20
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ void Imaginary(void) {
12
12
// _Imaginary __float128 jf128;
13
13
}
14
14
15
- // semmle-extractor-options: --microsoft --edg -- c99
15
+ // semmle-extractor-options: --microsoft -std= c99
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --clang --edg -- c++20
1
+ // semmle-extractor-options: --clang -std= c++20
2
2
3
3
namespace cpp20 {
4
4
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --microsoft --edg -- c99
1
+ // semmle-extractor-options: --microsoft -std= c99
2
2
struct AppleCompatible { // Definitions of Apple are exactly the same in b1.c and b2.c
3
3
int apple_x ;
4
4
};
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --microsoft --edg -- c99
1
+ // semmle-extractor-options: --microsoft -std= c99
2
2
struct AppleCompatible { // Definitions of Apple are exactly the same in b1.c and b2.c
3
3
int apple_x ;
4
4
};
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ struct Kiwi {
7
7
struct Lemon {
8
8
unsigned int __attribute__ ((vector_size (16 ))) lemon_x ;
9
9
};
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
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ struct Kiwi {
7
7
struct Lemon {
8
8
signed int __attribute__ ((vector_size (16 ))) lemon_x ;
9
9
};
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
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --clang --edg -- clang_version --edg 30500
1
+ // semmle-extractor-options: --clang --clang_version 30500
2
2
3
3
#define vector (elcount , type ) __attribute__((vector_size((elcount)*sizeof(type)))) type
4
4
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: -- c++11
1
+ // semmle-extractor-options: -std= c++11
2
2
3
3
namespace range_based_for_11 {
4
4
void array () {
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: -- c++17
1
+ // semmle-extractor-options: -std= c++17
2
2
3
3
namespace std { typedef unsigned long size_t ; }
4
4
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --clang --edg -- clang_version --edg 190000
1
+ // semmle-extractor-options: --clang --clang_version 190000
2
2
3
3
typedef unsigned int size_t ;
4
4
Original file line number Diff line number Diff line change 1
- // semmle-extractor-options: --clang --edg -- clang_version --edg 30801
1
+ // semmle-extractor-options: --clang --clang_version 30801
2
2
// Compilable with: clang --std=c++0x -msse4.1 vector_types.cpp
3
3
// (some bits also compilable with gcc)
4
4
int printf (...);
You can’t perform that action at this time.
0 commit comments