Merge pull request #16818 from jketema/predef

C++: Update expected test results
This commit is contained in:
Jeroen Ketema
2024-06-25 11:06:53 +02:00
committed by GitHub
2 changed files with 4 additions and 9 deletions

View File

@@ -15,8 +15,6 @@
| arguments.c | 15 | --edg |
| arguments.c | 16 | __CODEQL_TEST__ |
| arguments.c | 17 | --gcc |
| arguments.c | 18 | --predefined_macros |
| arguments.c | 19 | <tools>/qltest/predefined_macros |
| arguments.c | 20 | -w |
| arguments.c | 21 | -Werror |
| arguments.c | 22 | arguments.c |
| arguments.c | 18 | -w |
| arguments.c | 19 | -Werror |
| arguments.c | 20 | arguments.c |

View File

@@ -4,8 +4,5 @@ from Compilation c, int i, string s
// Skip the extractor name; it'll vary depending on platform
where
i > 0 and
s =
c.getArgument(i)
.replaceAll("\\", "/")
.regexpReplaceAll(".*(/qltest/predefined_macros)", "<tools>$1")
s = c.getArgument(i).replaceAll("\\", "/")
select c.getAFileCompiled().toString(), i, s