annotate clang/test/Modules/require-modular-includes.m @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // Including a header from the imported module
anatofuz
parents:
diff changeset
4 // RUN: echo '@import FromImportedModuleOK;' | \
anatofuz
parents:
diff changeset
5 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
6 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
7 // RUN: -Werror -fsyntax-only -x objective-c -
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // Including a non-modular header
anatofuz
parents:
diff changeset
10 // RUN: echo '@import FromImportedModuleFail;' | \
anatofuz
parents:
diff changeset
11 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
12 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
13 // RUN: -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
14 // RUN: -fsyntax-only -x objective-c - 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 // Including a header from a subframework
anatofuz
parents:
diff changeset
17 // RUN: echo '@import FromSubframework;' | \
anatofuz
parents:
diff changeset
18 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
19 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
20 // RUN: -Werror -fsyntax-only -x objective-c -
anatofuz
parents:
diff changeset
21
anatofuz
parents:
diff changeset
22 // Including a header from a subframework (fail)
anatofuz
parents:
diff changeset
23 // RUN: echo '@import FromNonModularSubframework;' | \
anatofuz
parents:
diff changeset
24 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
25 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
26 // RUN: -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
27 // RUN: -fsyntax-only -x objective-c - 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 // Including a non-modular header from a submodule
anatofuz
parents:
diff changeset
30 // RUN: echo '@import FromImportedSubModule;' | \
anatofuz
parents:
diff changeset
31 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
32 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
33 // RUN: -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
34 // RUN: -fsyntax-only -x objective-c - 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
35
anatofuz
parents:
diff changeset
36 // Including a non-modular header (directly) with -fmodule-name set
anatofuz
parents:
diff changeset
37 // RUN: echo '#include "NotInModule.h"' | \
anatofuz
parents:
diff changeset
38 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
39 // RUN: -fmodules-cache-path=%t -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
40 // RUN: -Werror -fmodule-name=A -fsyntax-only -x objective-c -
anatofuz
parents:
diff changeset
41
anatofuz
parents:
diff changeset
42 // Including an excluded header
anatofuz
parents:
diff changeset
43 // RUN: echo '@import IncludeExcluded;' | \
anatofuz
parents:
diff changeset
44 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
45 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
46 // RUN: -Werror -fsyntax-only -x objective-c -
anatofuz
parents:
diff changeset
47
anatofuz
parents:
diff changeset
48 // Including a header from another module
anatofuz
parents:
diff changeset
49 // RUN: echo '@import FromAnotherModule;' | \
anatofuz
parents:
diff changeset
50 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
51 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
52 // RUN: -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
53 // RUN: -Werror -fsyntax-only -x objective-c -
anatofuz
parents:
diff changeset
54
anatofuz
parents:
diff changeset
55 // Including an excluded header from another module
anatofuz
parents:
diff changeset
56 // RUN: echo '@import ExcludedFromAnotherModule;' | \
anatofuz
parents:
diff changeset
57 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
58 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
59 // RUN: -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
60 // RUN: -Werror -fsyntax-only -x objective-c -
anatofuz
parents:
diff changeset
61
anatofuz
parents:
diff changeset
62 // Including a header from an umbrella directory
anatofuz
parents:
diff changeset
63 // RUN: echo '@import FromUmbrella;' | \
anatofuz
parents:
diff changeset
64 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
65 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
66 // RUN: -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
67 // RUN: -Werror -fsyntax-only -x objective-c -
anatofuz
parents:
diff changeset
68
anatofuz
parents:
diff changeset
69 // A includes B includes non-modular C
anatofuz
parents:
diff changeset
70 // RUN: echo '@import A;' | \
anatofuz
parents:
diff changeset
71 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
72 // RUN: -fmodules-cache-path=%t -F %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
73 // RUN: -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
74 // RUN: -fsyntax-only -x objective-c - 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
75
anatofuz
parents:
diff changeset
76 // Non-framework module (pass)
anatofuz
parents:
diff changeset
77 // RUN: echo '@import NotFramework;' | \
anatofuz
parents:
diff changeset
78 // RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules -fimplicit-module-maps \
anatofuz
parents:
diff changeset
79 // RUN: -fmodules-cache-path=%t -I %S/Inputs/require-modular-includes \
anatofuz
parents:
diff changeset
80 // RUN: -Werror -fsyntax-only -x objective-c -
anatofuz
parents:
diff changeset
81
anatofuz
parents:
diff changeset
82 // CHECK: include of non-modular header