diff options
Diffstat (limited to 'test/VFS')
-rw-r--r-- | test/VFS/incomplete-umbrella.m | 2 | ||||
-rw-r--r-- | test/VFS/module-import.m | 8 | ||||
-rw-r--r-- | test/VFS/real-path-found-first.m | 20 | ||||
-rw-r--r-- | test/VFS/umbrella-mismatch.m | 4 |
4 files changed, 17 insertions, 17 deletions
diff --git a/test/VFS/incomplete-umbrella.m b/test/VFS/incomplete-umbrella.m index 4e138cc..ee66337 100644 --- a/test/VFS/incomplete-umbrella.m +++ b/test/VFS/incomplete-umbrella.m @@ -2,7 +2,7 @@ // RUN: mkdir -p %t/Incomplete.framework/Headers // RUN: echo '// IncompleteReal.h' > %t/Incomplete.framework/Headers/IncompleteReal.h // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml -// RUN: not %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t \ +// RUN: not %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \ // RUN: -ivfsoverlay %t.yaml -F %t -fsyntax-only %s 2>&1 | FileCheck %s // REQUIRES: shell diff --git a/test/VFS/module-import.m b/test/VFS/module-import.m index d2adcfe..a0bfa4c 100644 --- a/test/VFS/module-import.m +++ b/test/VFS/module-import.m @@ -1,6 +1,6 @@ // RUN: rm -rf %t // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml -// RUN: %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -I %t -fsyntax-only %s +// RUN: %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ivfsoverlay %t.yaml -I %t -fsyntax-only %s // REQUIRES: shell @import not_real; @@ -18,10 +18,10 @@ void foo() { // Override the module map (vfsoverlay2 on top) // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay2.yaml > %t2.yaml -// RUN: %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -ivfsoverlay %t2.yaml -I %t -fsyntax-only %s +// RUN: %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ivfsoverlay %t.yaml -ivfsoverlay %t2.yaml -I %t -fsyntax-only %s // vfsoverlay2 not present -// RUN: not %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -I %t -fsyntax-only %s -DIMPORT2 2>&1 | FileCheck -check-prefix=CHECK-VFS2 %s +// RUN: not %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ivfsoverlay %t.yaml -I %t -fsyntax-only %s -DIMPORT2 2>&1 | FileCheck -check-prefix=CHECK-VFS2 %s // vfsoverlay2 on the bottom -// RUN: not %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t2.yaml -ivfsoverlay %t.yaml -I %t -fsyntax-only %s -DIMPORT2 2>&1 | FileCheck -check-prefix=CHECK-VFS2 %s +// RUN: not %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ivfsoverlay %t2.yaml -ivfsoverlay %t.yaml -I %t -fsyntax-only %s -DIMPORT2 2>&1 | FileCheck -check-prefix=CHECK-VFS2 %s diff --git a/test/VFS/real-path-found-first.m b/test/VFS/real-path-found-first.m index f494c6e..3b37a64 100644 --- a/test/VFS/real-path-found-first.m +++ b/test/VFS/real-path-found-first.m @@ -11,32 +11,32 @@ // RUN: sed -e "s:INPUT_DIR:%S/Inputs:g" -e "s:OUT_DIR:%t:g" %S/Inputs/vfsoverlay.yaml > %t.yaml // Build -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -fsyntax-only %s -verify -Wauto-import \ // RUN: -Werror=non-modular-include-in-framework-module // Rebuild // RUN: echo ' ' >> %t/SomeFramework.framework/Modules/module.modulemap -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -fsyntax-only %s -verify -Wauto-import \ // RUN: -Werror=non-modular-include-in-framework-module // Load from PCH -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -emit-pch %s -o %t.pch \ // RUN: -Werror=non-modular-include-in-framework-module \ // RUN: -fmodules-ignore-macro=WITH_PREFIX -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -include-pch %t.pch -fsyntax-only %s \ // RUN: -Werror=non-modular-include-in-framework-module -DWITH_PREFIX \ // RUN: -fmodules-ignore-macro=WITH_PREFIX // While indexing -// RUN: c-index-test -index-file %s -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: c-index-test -index-file %s -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -fsyntax-only -Wauto-import \ // RUN: -Werror=non-modular-include-in-framework-module | FileCheck %s // RUN: echo ' ' >> %t/SomeFramework.framework/Modules/module.modulemap -// RUN: c-index-test -index-file %s -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: c-index-test -index-file %s -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -fsyntax-only -Wauto-import \ // RUN: -Werror=non-modular-include-in-framework-module | FileCheck %s // CHECK: warning: treating @@ -48,22 +48,22 @@ // RUN: echo "'name': '%t/SomeFramework.framework/Modules/module.modulemap'," >> %t2.yaml // RUN: echo "'type': 'file', 'external-contents': '%t/hide_module.map' } ] }" >> %t2.yaml -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -ivfsoverlay %t2.yaml -fsyntax-only %s -verify \ // RUN: -Wauto-import -Werror=non-modular-include-in-framework-module // RUN: echo ' ' >> %t/hide_module.map -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -ivfsoverlay %t2.yaml -fsyntax-only %s -verify \ // RUN: -Wauto-import -Werror=non-modular-include-in-framework-module // Within a module build // RUN: echo '@import import_some_frame;' | \ -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -ivfsoverlay %t2.yaml -fsyntax-only - \ // RUN: -Werror=non-modular-include-in-framework-module -x objective-c -I %t // RUN: echo ' ' >> %t/hide_module.map // RUN: echo '@import import_some_frame;' | \ -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t-cache -F %t \ +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \ // RUN: -ivfsoverlay %t.yaml -ivfsoverlay %t2.yaml -fsyntax-only - \ // RUN: -Werror=non-modular-include-in-framework-module -x objective-c -I %t diff --git a/test/VFS/umbrella-mismatch.m b/test/VFS/umbrella-mismatch.m index 741b0e6..fc51802 100644 --- a/test/VFS/umbrella-mismatch.m +++ b/test/VFS/umbrella-mismatch.m @@ -1,7 +1,7 @@ // RUN: rm -rf %t // RUN: sed -e "s;INPUT_DIR;%/S/Inputs;g" -e "s;OUT_DIR;%/S/Inputs;g" %S/Inputs/vfsoverlay.yaml > %t.yaml -// RUN: %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -ivfsoverlay %t.yaml -F %S/Inputs -fsyntax-only %s -verify -// RUN: %clang_cc1 -Werror -fmodules -fmodules-cache-path=%t -F %S/Inputs -fsyntax-only %s -verify +// RUN: %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -ivfsoverlay %t.yaml -F %S/Inputs -fsyntax-only %s -verify +// RUN: %clang_cc1 -Werror -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs -fsyntax-only %s -verify // expected-no-diagnostics @import UsesFoo; |