[clang] Add tests for driver to propagate module map flags even without -fmod… (PR #75827)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 19 14:49:25 PST 2023


================
@@ -57,6 +57,14 @@
 // CHECK-MODULE-MAP-FILES: "-fmodule-map-file=foo.map"
 // CHECK-MODULE-MAP-FILES: "-fmodule-map-file=bar.map"
 
+// RUN: %clang -fno-modules -fmodule-name=foo -c -### %s 2>&1 | FileCheck -check-prefix=CHECK-PROPAGATE-MODULE-NAME %s
----------------
MaskRay wrote:

If the comment is about layering check, we should add
`-fmodules-decluse -fmodule-map-file=...` as well. We have some tests for C/C++ but not for ObjC.

https://github.com/llvm/llvm-project/pull/75827


More information about the cfe-commits mailing list