Skip to content

Commit a95db48

Browse files
committed
Address review comments
1 parent 196cedd commit a95db48

File tree

12 files changed

+101
-100
lines changed

12 files changed

+101
-100
lines changed

libcxx/test/libcxx/module_std.gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"%{clang-tidy}",
3030
"%{test-tools}/clang_tidy_checks/libcxx-tidy.plugin",
3131
"%{cxx}",
32-
"%{flags} %{compile_flags} %{module_flags}",
32+
"%{flags} %{compile_flags}",
3333
"std",
3434
)
3535

libcxx/test/libcxx/module_std_compat.gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"%{clang-tidy}",
3030
"%{test-tools}/clang_tidy_checks/libcxx-tidy.plugin",
3131
"%{cxx}",
32-
"%{flags} %{compile_flags} %{module_flags}",
32+
"%{flags} %{compile_flags}",
3333
"std.compat",
3434
)
3535

libcxx/test/libcxx/selftest/modules/no-modules.sh.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// Make sure that the module flags are empty when no module is supplied.
9+
// Make sure that the compile flags contain no module information.
1010

11-
// MODULES:
12-
// RUN: echo "%{module_flags}" | grep "^$"
11+
// MODULE_DEPENDENCIES:
12+
13+
// RUN: echo "%{compile_flags}" | grep -v -- "-fprebuilt-module-path="
14+
// RUN: echo "%{compile_flags}" | grep -v "std.pcm"
15+
// RUN: echo "%{compile_flags}" | grep -v "std.compat.pcm"

libcxx/test/libcxx/selftest/modules/std-and-std.compat-module.sh.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
// UNSUPPORTED: clang-modules-build
1111
// UNSUPPORTED: gcc
1212

13-
// XFAIL: has-no-module-support
13+
// XFAIL: has-no-cxx-module-support
1414

15-
// Make sure that the module flags contain the expected elements.
15+
// Make sure that the compile flags contain the expected elements.
1616
// The tests only look for the expected components and not the exact flags.
1717
// Otherwise changing the location of the module breaks this test.
1818

19-
// MODULES: std std.compat
20-
//
21-
// RUN: echo "%{module_flags}" | grep -- "-fprebuilt-module-path="
22-
// RUN: echo "%{module_flags}" | grep "std.pcm"
23-
// RUN: echo "%{module_flags}" | grep "std.compat.pcm"
19+
// MODULE_DEPENDENCIES: std std.compat
20+
21+
// RUN: echo "%{compile_flags}" | grep -- "-fprebuilt-module-path="
22+
// RUN: echo "%{compile_flags}" | grep "std.pcm"
23+
// RUN: echo "%{compile_flags}" | grep "std.compat.pcm"

libcxx/test/libcxx/selftest/modules/std-module.sh.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
// UNSUPPORTED: clang-modules-build
1111
// UNSUPPORTED: gcc
1212

13-
// XFAIL: has-no-module-support
13+
// XFAIL: has-no-cxx-module-support
1414

15-
// Make sure that the module flags contain the expected elements.
15+
// Make sure that the compile flags contain the expected elements.
1616
// The tests only look for the expected components and not the exact flags.
1717
// Otherwise changing the location of the module breaks this test.
1818

19-
// MODULES: std
20-
//
21-
// RUN: echo "%{module_flags}" | grep -- "-fprebuilt-module-path="
22-
// RUN: echo "%{module_flags}" | grep "std.pcm"
19+
// MODULE_DEPENDENCIES: std
20+
21+
// RUN: echo "%{compile_flags}" | grep -- "-fprebuilt-module-path="
22+
// RUN: echo "%{compile_flags}" | grep "std.pcm"
2323

2424
// The std module should not provide the std.compat module
25-
// RUN: echo "%{module_flags}" | grep -v "std.compat.pcm"
25+
// RUN: echo "%{compile_flags}" | grep -v "std.compat.pcm"

libcxx/test/libcxx/selftest/modules/std.compat-module.sh.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
// UNSUPPORTED: clang-modules-build
1111
// UNSUPPORTED: gcc
1212

13-
// XFAIL: has-no-module-support
13+
// XFAIL: has-no-cxx-module-support
1414

15-
// Make sure that the module flags contain the expected elements.
15+
// Make sure that the compile flags contain the expected elements.
1616
// The tests only look for the expected components and not the exact flags.
1717
// Otherwise changing the location of the module breaks this test.
1818

19-
// MODULES: std.compat
20-
//
21-
// RUN: echo "%{module_flags}" | grep -- "-fprebuilt-module-path="
22-
// RUN: echo "%{module_flags}" | grep "std.compat.pcm"
19+
// MODULE_DEPENDENCIES: std.compat
20+
21+
// RUN: echo "%{compile_flags}" | grep -- "-fprebuilt-module-path="
22+
// RUN: echo "%{compile_flags}" | grep "std.compat.pcm"
2323

2424
// It's unspecified whether std.compat is built on the std module.
2525
// Therefore don't test its presence

libcxx/test/libcxx/selftest/modules/unknown-module.compile.pass.cpp

Lines changed: 0 additions & 13 deletions
This file was deleted.

libcxx/test/std/modules/std.compat.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
// UNSUPPORTED: clang-modules-build
1111
// UNSUPPORTED: gcc
1212

13-
// XFAIL: has-no-module-support
13+
// XFAIL: has-no-cxx-module-support
1414

1515
// A minimal test to validate import works.
1616

17-
// MODULES: std.compat
17+
// MODULE_DEPENDENCIES: std.compat
1818

1919
import std.compat;
2020

libcxx/test/std/modules/std.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
// UNSUPPORTED: clang-modules-build
1111
// UNSUPPORTED: gcc
1212

13-
// XFAIL: has-no-module-support
13+
// XFAIL: has-no-cxx-module-support
1414

1515
// A minimal test to validate import works.
1616

17-
// MODULES: std
17+
// MODULE_DEPENDENCIES: std
1818

1919
import std;
2020

libcxx/utils/libcxx/test/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ def _getAndroidDeviceApi(cfg):
319319
),
320320
# Whether module support for the platform is available.
321321
Feature(
322-
name="has-no-module-support",
323-
# The libc of these platforms have functions with internal linkages.
322+
name="has-no-cxx-module-support",
323+
# The libc of these platforms have functions with internal linkage.
324324
# This is not allowed per C11 7.1.2 Standard headers/6
325325
# Any declaration of a library function shall have external linkage.
326326
when=lambda cfg: "__ANDROID__" in compilerMacros(cfg)

0 commit comments

Comments
 (0)