|
3 | 3 | // RUN: mkdir -p %t-saved
|
4 | 4 |
|
5 | 5 | // Initial module build (-Werror=header-guard)
|
6 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 6 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
7 | 7 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
8 | 8 | // RUN: -Werror=header-guard
|
9 | 9 | // RUN: cp %t/Module.pcm %t-saved/Module.pcm
|
10 | 10 |
|
11 | 11 | // Building with looser -Werror options does not rebuild
|
12 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 12 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
13 | 13 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella
|
14 | 14 | // RUN: diff %t/Module.pcm %t-saved/Module.pcm
|
15 | 15 |
|
16 | 16 | // Make the build more restricted (-Werror)
|
17 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 17 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
18 | 18 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
19 | 19 | // RUN: -Werror -Wno-incomplete-umbrella
|
20 | 20 | // RUN: not diff %t/Module.pcm %t-saved/Module.pcm
|
21 | 21 | // RUN: cp %t/Module.pcm %t-saved/Module.pcm
|
22 | 22 |
|
23 | 23 | // Ensure -Werror=header-guard is less strict than -Werror
|
24 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 24 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
25 | 25 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
26 | 26 | // RUN: -Werror=header-guard -Wno-incomplete-umbrella
|
27 | 27 | // RUN: diff %t/Module.pcm %t-saved/Module.pcm
|
28 | 28 |
|
29 | 29 | // But -Werror=unused is not, because some of its diags are DefaultIgnore
|
30 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 30 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
31 | 31 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
32 | 32 | // RUN: -Werror=unused
|
33 | 33 | // RUN: not diff %t/Module.pcm %t-saved/Module.pcm
|
34 | 34 | // RUN: cp %t/Module.pcm %t-saved/Module.pcm
|
35 | 35 |
|
36 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 36 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
37 | 37 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
38 | 38 | // RUN: -Werror -Wno-incomplete-umbrella
|
39 | 39 |
|
|
42 | 42 | // RUN-DISABLED: diff %t/Module.pcm %t-saved/Module.pcm
|
43 | 43 |
|
44 | 44 | // -Wno-everything, -Werror
|
45 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 45 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
46 | 46 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
47 | 47 | // RUN: -Wno-everything -Wall -Werror
|
48 | 48 | // RUN: cp %t/Module.pcm %t-saved/Module.pcm
|
49 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 49 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
50 | 50 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
51 | 51 | // RUN: -Wall -Werror
|
52 | 52 | // RUN: not diff %t/Module.pcm %t-saved/Module.pcm
|
53 | 53 |
|
54 | 54 | // -pedantic, -Werror is not compatible with -Wall -Werror
|
55 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 55 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
56 | 56 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
57 | 57 | // RUN: -Werror -pedantic
|
58 | 58 | // RUN: not diff %t/Module.pcm %t-saved/Module.pcm
|
59 | 59 | // RUN: cp %t/Module.pcm %t-saved/Module.pcm
|
60 | 60 |
|
61 | 61 | // -pedantic-errors is less strict that -pedantic, -Werror
|
62 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 62 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
63 | 63 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
64 | 64 | // RUN: -pedantic-errors
|
65 | 65 | // RUN: diff %t/Module.pcm %t-saved/Module.pcm
|
66 | 66 |
|
67 | 67 | // -Wsystem-headers does not affect non-system modules
|
68 |
| -// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fdisable-module-hash \ |
| 68 | +// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash \ |
69 | 69 | // RUN: -F %S/Inputs -fsyntax-only %s -verify -Wno-incomplete-umbrella \
|
70 | 70 | // RUN: -pedantic-errors -Wsystem-headers
|
71 | 71 | // RUN: diff %t/Module.pcm %t-saved/Module.pcm
|
|
0 commit comments