[libcxx-commits] [libcxx] 5e67348 - [libc++] Remove variables that are not necessary anymore inside header_information.py
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Aug 8 05:47:24 PDT 2023
Author: Louis Dionne
Date: 2023-08-08T08:47:14-04:00
New Revision: 5e673481584c3eacff0104bac352066e34402d91
URL: https://github.com/llvm/llvm-project/commit/5e673481584c3eacff0104bac352066e34402d91
DIFF: https://github.com/llvm/llvm-project/commit/5e673481584c3eacff0104bac352066e34402d91.diff
LOG: [libc++] Remove variables that are not necessary anymore inside header_information.py
Those are not relevant anymore since we don't have tests for private
headers anymore.
Differential Revision: https://reviews.llvm.org/D155880
Added:
Modified:
libcxx/utils/libcxx/test/header_information.py
Removed:
################################################################################
diff --git a/libcxx/utils/libcxx/test/header_information.py b/libcxx/utils/libcxx/test/header_information.py
index 9ca0e9548c7249..62e851b1ac51dc 100644
--- a/libcxx/utils/libcxx/test/header_information.py
+++ b/libcxx/utils/libcxx/test/header_information.py
@@ -59,30 +59,6 @@
"wctype.h": "// UNSUPPORTED: no-wide-characters",
}
-private_headers_still_public_in_modules = [
- "__assert",
- "__config",
- "__config_site.in",
- "__hash_table",
- "__threading_support",
- "__tree",
- "__undef_macros",
- "__verbose_abort",
-]
-
-# Headers that can't be included on their own. Most of these are conceptually
-# part of another header that were split out just for organization, but aren't
-# meant to be included by anything else.
-non_standalone_headers = frozenset((
- # Alternate implementations for __algorithm/pstl_backends/cpu_backends/backend.h
- "__algorithm/pstl_backends/cpu_backends/serial.h",
- "__algorithm/pstl_backends/cpu_backends/thread.h",
-
- # Alternate implementations for locale.
- "__locale_dir/locale_base_api/bsd_locale_defaults.h",
- "__locale_dir/locale_base_api/bsd_locale_fallbacks.h",
-))
-
# This table was produced manually, by grepping the TeX source of the Standard's
# library clauses for the string "#include". Each header's synopsis contains
# explicit "#include" directives for its mandatory inclusions.
@@ -148,9 +124,3 @@ def is_header(file):
p.relative_to(include).as_posix() for p in include.glob("experimental/[a-z]*") if is_header(p)
)
public_headers = toplevel_headers + experimental_headers
-private_headers = sorted(
- p.relative_to(include).as_posix() for p in include.rglob("*") if is_header(p)
- and str(p.relative_to(include)).startswith("__")
- and not p.name.startswith("pstl")
- and str(p.relative_to(include)) not in non_standalone_headers
-)
More information about the libcxx-commits
mailing list