CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
75 lines
4.2 KiB
Objective-C
75 lines
4.2 KiB
Objective-C
// This test is for cases where we lookup a file by its 'real' path before we
|
|
// use its VFS-mapped path. If we accidentally use the real path in header
|
|
// search, we will not find a module for the headers. To test that we
|
|
// intentionally rebuild modules, since the precompiled module file refers to
|
|
// the dependency files by real path.
|
|
|
|
// RUN: rm -rf %t %t-cache %t.pch
|
|
// RUN: mkdir -p %t/SomeFramework.framework/Modules
|
|
// RUN: cat %S/Inputs/some_frame_module.map > %t/SomeFramework.framework/Modules/module.modulemap
|
|
// RUN: sed -e "s@INPUT_DIR@%{/S:regex_replacement}/Inputs@g" -e "s@OUT_DIR@%{/t:regex_replacement}@g" %S/Inputs/vfsoverlay.yaml > %t.yaml
|
|
|
|
// Build
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \
|
|
// RUN: -ivfsoverlay %t.yaml -fsyntax-only %s -verify -Rmodule-include-translation \
|
|
// RUN: -Werror=non-modular-include-in-framework-module
|
|
|
|
// Rebuild
|
|
// RUN: echo ' ' >> %t/SomeFramework.framework/Modules/module.modulemap
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \
|
|
// RUN: -ivfsoverlay %t.yaml -fsyntax-only %s -verify -Rmodule-include-translation \
|
|
// RUN: -Werror=non-modular-include-in-framework-module
|
|
|
|
// Load from PCH
|
|
// 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 -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 -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \
|
|
// RUN: -ivfsoverlay %t.yaml -fsyntax-only -Rmodule-include-translation \
|
|
// 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 -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \
|
|
// RUN: -ivfsoverlay %t.yaml -fsyntax-only -Rmodule-include-translation \
|
|
// RUN: -Werror=non-modular-include-in-framework-module | FileCheck %s
|
|
// CHECK: warning: treating
|
|
// CHECK-NOT: error:
|
|
|
|
// With a VFS-mapped module map file
|
|
// RUN: mv %t/SomeFramework.framework/Modules/module.modulemap %t/hide_module.map
|
|
// RUN: echo "{ 'version': 0, 'roots': [ { " > %t2.yaml
|
|
// 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 -fimplicit-module-maps -fmodules-cache-path=%t-cache -F %t \
|
|
// RUN: -ivfsoverlay %t.yaml -ivfsoverlay %t2.yaml -fsyntax-only %s -verify \
|
|
// RUN: -Rmodule-include-translation -Werror=non-modular-include-in-framework-module
|
|
// RUN: echo ' ' >> %t/hide_module.map
|
|
// 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: -Rmodule-include-translation -Werror=non-modular-include-in-framework-module
|
|
|
|
// Within a module build
|
|
// RUN: echo '@import import_some_frame;' | \
|
|
// 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 -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
|
|
|
|
#ifndef WITH_PREFIX
|
|
#import <SomeFramework/public_header.h> // expected-remark{{treating}}
|
|
#import <SomeFramework/public_header2.h> // expected-remark{{treating}}
|
|
#import <SomeFramework/public_header3.h> // expected-remark{{treating}}
|
|
@import SomeFramework.public_header2;
|
|
#endif
|