Merge pull request #16795 from jketema/test-cleanup

C++: Remove unneeded options from tests
This commit is contained in:
Jeroen Ketema
2024-06-20 16:24:07 +02:00
committed by GitHub
16 changed files with 16 additions and 16 deletions

View File

@@ -3,4 +3,4 @@
#include "b.h"
static int has_angle_b = __has_include(<b.h>);
// semmle-extractor-options: -I${testdir}/dir2 -iquote ${testdir}/dir1 --edg --clang
// semmle-extractor-options: -I${testdir}/dir2 -iquote ${testdir}/dir1 --clang

View File

@@ -1 +1 @@
semmle-extractor-options: --edg --microsoft
semmle-extractor-options: --microsoft

View File

@@ -1 +1 @@
semmle-extractor-options: --edg --clang
semmle-extractor-options: --clang

View File

@@ -1,4 +1,4 @@
// semmle-extractor-options: --edg --clang
// semmle-extractor-options: --clang
int x = 0;

View File

@@ -1,4 +1,4 @@
// semmle-extractor-options: --edg --clang --edg --c++11 --edg --nullptr
// semmle-extractor-options: --clang --edg --c++11 --edg --nullptr
static int has_nullptr_f = __has_feature(cxx_nullptr);
static int has_nullptr_e = __has_extension(cxx_nullptr);

View File

@@ -1 +1 @@
semmle-extractor-options: --edg --clang
semmle-extractor-options: --clang

View File

@@ -1,7 +1,7 @@
// For the canonical behaviour, run: clang -E -w test.cpp
#define __builtin_TRAP __builtin_trap
#define BAR "bar.h"
// semmle-extractor-options: --edg --clang --expect_errors
// semmle-extractor-options: --clang --expect_errors
#if defined(__has_include)
static int has_include = 1;
#else

View File

@@ -1 +1 @@
semmle-extractor-options: --edg --clang --edg --ms_extensions
semmle-extractor-options: --clang --edg --ms_extensions

View File

@@ -1,4 +1,4 @@
// semmle-extractor-options: --edg --clang
// semmle-extractor-options: --clang
int source();
void sink(int); void sink(const int *); void sink(int **); void indirect_sink(...);

View File

@@ -1,4 +1,4 @@
// semmle-extractor-options: --edg --microsoft
// semmle-extractor-options: --microsoft
void f(__declspec(guard(overflow)) size_t length) {
}

View File

@@ -1,4 +1,4 @@
// semmle-extractor-options: --edg --clang --edg --c++20
// semmle-extractor-options: --clang --edg --c++20
namespace cpp20 {

View File

@@ -7,4 +7,4 @@ struct Kiwi {
struct Lemon {
unsigned int __attribute__ ((vector_size (16))) lemon_x;
};
// semmle-extractor-options: --edg --c99 --edg --clang --edg --clang_vector_types --gnu_version 40700
// semmle-extractor-options: --edg --c99 --clang --edg --clang_vector_types --gnu_version 40700

View File

@@ -7,4 +7,4 @@ struct Kiwi {
struct Lemon {
signed int __attribute__ ((vector_size (16))) lemon_x;
};
// semmle-extractor-options: --edg --c99 --edg --clang --edg --clang_vector_types --gnu_version 40700
// semmle-extractor-options: --edg --c99 --clang --edg --clang_vector_types --gnu_version 40700

View File

@@ -1,4 +1,4 @@
// semmle-extractor-options: --edg --clang --edg --ms_extensions
// semmle-extractor-options: --clang --edg --ms_extensions
template <int a> class b {
template <bool> struct c;

View File

@@ -1 +1 @@
semmle-extractor-options: --edg --clang --edg --clang_builtin_functions --edg --clang_vector_types --gnu_version 40600
semmle-extractor-options: --clang --edg --clang_builtin_functions --edg --clang_vector_types --gnu_version 40600

View File

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