[libcxx-commits] [libcxx] ea14fa2 - [libc++] Remove C++20 modules tests from the C++03 frozen test suite (#213730)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Aug 4 05:52:51 PDT 2026
Author: Louis Dionne
Date: 2026-08-04T08:52:46-04:00
New Revision: ea14fa213e49b4879e77cf50d5a8bf56ae7546c5
URL: https://github.com/llvm/llvm-project/commit/ea14fa213e49b4879e77cf50d5a8bf56ae7546c5
DIFF: https://github.com/llvm/llvm-project/commit/ea14fa213e49b4879e77cf50d5a8bf56ae7546c5.diff
LOG: [libc++] Remove C++20 modules tests from the C++03 frozen test suite (#213730)
These tests are never executed since they require C++20, and the C++03
frozen headers only run in C++03 mode.
Added:
Modified:
Removed:
libcxx/test/libcxx-03/module_std.gen.py
libcxx/test/libcxx-03/module_std_compat.gen.py
################################################################################
diff --git a/libcxx/test/libcxx-03/module_std.gen.py b/libcxx/test/libcxx-03/module_std.gen.py
deleted file mode 100644
index fc23985caf30d..0000000000000
--- a/libcxx/test/libcxx-03/module_std.gen.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# ===----------------------------------------------------------------------===##
-#
-# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-# See https://llvm.org/LICENSE.txt for license information.
-# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#
-# ===----------------------------------------------------------------------===##
-
-# Test that all named declarations with external linkage match the
-# exported declarations in their associated module partition.
-# Then it tests the sum of the exported declarations in the module
-# partitions matches the export of the std module.
-
-# Note the test of the std module requires all partitions to be tested
-# first. Since lit tests have no dependencies, this means the test needs
-# to be one monolitic test. Since the test doesn't take very long it's
-# not a huge issue.
-
-# RUN: %{python} %s %{libcxx-dir}/utils
-
-import sys
-
-sys.path.append(sys.argv[1])
-from libcxx.test.modules import module_test_generator
-
-generator = module_test_generator(
- "%t",
- "%{module-dir}",
- "%{clang-tidy}",
- "%{test-tools-dir}/clang_tidy_checks/libcxx-tidy.plugin",
- "%{cxx}",
- "%{flags} %{compile_flags}",
- "std",
-)
-
-
-print("//--- module_std.sh.cpp")
-generator.write_test("std")
diff --git a/libcxx/test/libcxx-03/module_std_compat.gen.py b/libcxx/test/libcxx-03/module_std_compat.gen.py
deleted file mode 100644
index 000aa29986122..0000000000000
--- a/libcxx/test/libcxx-03/module_std_compat.gen.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# ===----------------------------------------------------------------------===##
-#
-# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-# See https://llvm.org/LICENSE.txt for license information.
-# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#
-# ===----------------------------------------------------------------------===##
-
-# Test that all named declarations with external linkage match the
-# exported declarations in their associated module partition.
-# Then it tests the sum of the exported declarations in the module
-# partitions matches the export of the std.compat module.
-
-# Note the test of the std.compat module requires all partitions to be tested
-# first. Since lit tests have no dependencies, this means the test needs
-# to be one monolitic test. Since the test doesn't take very long it's
-# not a huge issue.
-
-# RUN: %{python} %s %{libcxx-dir}/utils
-
-import sys
-
-sys.path.append(sys.argv[1])
-from libcxx.header_information import module_c_headers
-from libcxx.test.modules import module_test_generator
-
-generator = module_test_generator(
- "%t",
- "%{module-dir}",
- "%{clang-tidy}",
- "%{test-tools-dir}/clang_tidy_checks/libcxx-tidy.plugin",
- "%{cxx}",
- "%{flags} %{compile_flags}",
- "std.compat",
-)
-
-
-print("//--- module_std_compat.sh.cpp")
-generator.write_test(
- "std.compat",
- module_c_headers,
-)
More information about the libcxx-commits
mailing list