[clang] 850e01a - [clang][deps] Check extra args in tests

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 22 05:10:38 PDT 2021


Author: Jan Svoboda
Date: 2021-04-22T14:10:08+02:00
New Revision: 850e01a34d47954ed5cebbd4aa98e8efd711cd19

URL: https://github.com/llvm/llvm-project/commit/850e01a34d47954ed5cebbd4aa98e8efd711cd19
DIFF: https://github.com/llvm/llvm-project/commit/850e01a34d47954ed5cebbd4aa98e8efd711cd19.diff

LOG: [clang][deps] Check extra args in tests

These flags are being generated by `clang-scan-deps` and it makes sense to ensure it keeps doing so.

Added: 
    

Modified: 
    clang/test/ClangScanDeps/modules-full.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/ClangScanDeps/modules-full.cpp b/clang/test/ClangScanDeps/modules-full.cpp
index 5c3e53610e5a8..b4252c5c4f609 100644
--- a/clang/test/ClangScanDeps/modules-full.cpp
+++ b/clang/test/ClangScanDeps/modules-full.cpp
@@ -39,8 +39,10 @@
 // CHECK-NEXT:       "command-line": [
 // CHECK-NEXT:         "-cc1",
 // CHECK:              "-fmodule-map-file=[[PREFIX]]/Inputs/module.modulemap",
+// CHECK:              "-emit-module",
 // CHECK:              "-fmodule-file=[[PREFIX]]/module-cache{{(_clangcl)?}}/[[CONTEXT_HASH_H1]]/header2-{{[A-Z0-9]+}}.pcm",
 // CHECK-NOT:          "-fimplicit-module-maps",
+// CHECK:              "-fmodule-name=header1",
 // CHECK:              "-fno-implicit-modules",
 // CHECK:            ],
 // CHECK-NEXT:       "context-hash": "[[CONTEXT_HASH_H1]]",
@@ -55,7 +57,9 @@
 // CHECK-NEXT:       "clang-modulemap-file": "[[PREFIX]]/Inputs/module.modulemap",
 // CHECK-NEXT:       "command-line": [
 // CHECK-NEXT:         "-cc1",
+// CHECK:              "-emit-module",
 // CHECK-NOT:          "-fimplicit-module-maps",
+// CHECK:              "-fmodule-name=header1",
 // CHECK:              "-fno-implicit-modules",
 // CHECK:            ],
 // CHECK-NEXT:       "context-hash": "[[CONTEXT_HASH_H2:[A-Z0-9]+]]",
@@ -70,7 +74,9 @@
 // CHECK-NEXT:       "clang-modulemap-file": "[[PREFIX]]/Inputs/module.modulemap",
 // CHECK-NEXT:       "command-line": [
 // CHECK-NEXT:         "-cc1",
+// CHECK:              "-emit-module",
 // CHECK-NOT:          "-fimplicit-module-maps",
+// CHECK:              "-fmodule-name=header2",
 // CHECK:              "-fno-implicit-modules",
 // CHECK:            ],
 // CHECK-NEXT:       "context-hash": "[[CONTEXT_HASH_H1]]",


        


More information about the cfe-commits mailing list