Skip to content

Commit 46b230a

Browse files
committed
C++: Simplify more semmle-extractor-options
This will allow us to drop a number of special cases from the extractor.
1 parent 5f81234 commit 46b230a

File tree

13 files changed

+13
-14
lines changed

13 files changed

+13
-14
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// semmle-extractor-options: -Werror
1+
22
#ifndef __CODEQL_TEST__
33
#error __CODEQL_TEST__ missing
44
#endif

cpp/ql/test/library-tests/arguments/arguments.expected

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@
1717
| arguments.c | 17 | __CODEQL_TEST__ |
1818
| arguments.c | 18 | --gcc |
1919
| arguments.c | 19 | -w |
20-
| arguments.c | 20 | -Werror |
21-
| arguments.c | 21 | arguments.c |
20+
| arguments.c | 20 | arguments.c |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: -fblocks
1+
semmle-extractor-options: --edg --blocks
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: -fblocks
1+
semmle-extractor-options: --edg --blocks
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: -fblocks
1+
semmle-extractor-options: --edg --blocks
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: -fblocks
1+
semmle-extractor-options: --edg --blocks
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: -fblocks
1+
semmle-extractor-options: --edg --blocks

cpp/ql/test/library-tests/rvalueCast/disabled.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ void disabled(void) {
44
p = &(int)a;
55
}
66

7-
// semmle-extractor-options: --microsoft /Zc:rvalueCast-
7+
// semmle-extractor-options: --microsoft --edg --preserve_lvalues_with_same_type_casts

cpp/ql/test/library-tests/rvalueCast/enabled.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ void enabled(void) {
44
p = &(int)a;
55
}
66

7-
// semmle-extractor-options: --microsoft /Zc:rvalueCast --expect_errors
7+
// semmle-extractor-options: --microsoft --edg --no_preserve_lvalues_with_same_type_casts --expect_errors
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
semmle-extractor-options: -fblocks
1+
semmle-extractor-options: --edg --blocks

0 commit comments

Comments
 (0)