Merge pull request #18350 from jketema/test-cleanup-2

C++: Simplify more `semmle-extractor-options`
This commit is contained in:
Jeroen Ketema
2024-12-20 17:23:54 +01:00
committed by GitHub
13 changed files with 13 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
// semmle-extractor-options: -Werror
#ifndef __CODEQL_TEST__
#error __CODEQL_TEST__ missing
#endif

View File

@@ -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 |

View File

@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks

View File

@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks

View File

@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks

View File

@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks

View File

@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks

View File

@@ -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

View File

@@ -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

View File

@@ -1 +1 @@
semmle-extractor-options: -fblocks
semmle-extractor-options: --edg --blocks

View File

@@ -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

View File

@@ -1,4 +1,4 @@
// semmle-extractor-options: -fblocks
// semmle-extractor-options: --edg --blocks
#ifdef COMPILABLE_TEST
#include <stdio.h>
#else

View File

@@ -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