diff --git a/libcxx/include/module.modulemap.in b/libcxx/include/module.modulemap.in --- a/libcxx/include/module.modulemap.in +++ b/libcxx/include/module.modulemap.in @@ -28,14 +28,20 @@ header "fenv.h" export * } - // provided by compiler or C library. + module float_t { + header "float.h" + export * + } module inttypes_h { header "inttypes.h" export stdint_h export * } // provided by compiler. - // provided by compiler or C library. + module limits_h { + header "limits.h" + export * + } module locale_h { @requires_LIBCXX_ENABLE_LOCALIZATION@ header "locale.h" @@ -266,7 +272,10 @@ module equal_range { private header "__algorithm/equal_range.h" } module fill { private header "__algorithm/fill.h" } module fill_n { private header "__algorithm/fill_n.h" } - module find { private header "__algorithm/find.h" } + module find { + private header "__algorithm/find.h" + export algorithm.__algorithm.unwrap_iter + } module find_end { private header "__algorithm/find_end.h" } module find_first_of { private header "__algorithm/find_first_of.h" } module find_if { private header "__algorithm/find_if.h" } @@ -327,6 +336,11 @@ module partition_point { private header "__algorithm/partition_point.h" } module pop_heap { private header "__algorithm/pop_heap.h" } module prev_permutation { private header "__algorithm/prev_permutation.h" } + module pstl_any_all_none_of { private header "__algorithm/pstl_any_all_none_of.h" } + module pstl_backend { + private header "__algorithm/pstl_backend.h" + export * + } module pstl_backends_cpu_backend { private header "__algorithm/pstl_backends/cpu_backend.h" export * @@ -349,13 +363,13 @@ private header "__algorithm/pstl_backends/cpu_backends/merge.h" } module pstl_backends_cpu_backends_serial { - private header "__algorithm/pstl_backends/cpu_backends/serial.h" + private textual header "__algorithm/pstl_backends/cpu_backends/serial.h" } module pstl_backends_cpu_backends_stable_sort { private header "__algorithm/pstl_backends/cpu_backends/stable_sort.h" } module pstl_backends_cpu_backends_thread { - private header "__algorithm/pstl_backends/cpu_backends/thread.h" + private textual header "__algorithm/pstl_backends/cpu_backends/thread.h" } module pstl_backends_cpu_backends_transform { private header "__algorithm/pstl_backends/cpu_backends/transform.h" @@ -363,6 +377,27 @@ module pstl_backends_cpu_backends_transform_reduce { private header "__algorithm/pstl_backends/cpu_backends/transform_reduce.h" } + module pstl_copy { private header "__algorithm/pstl_copy.h" } + module pstl_count { private header "__algorithm/pstl_count.h" } + module pstl_fill { private header "__algorithm/pstl_fill.h" } + module pstl_find { + private header "__algorithm/pstl_find.h" + export * + } + module pstl_for_each { + private header "__algorithm/pstl_for_each.h" + export algorithm.__algorithm.pstl_backend + } + module pstl_frontend_dispatch { + private header "__algorithm/pstl_frontend_dispatch.h" + export utility.__utility.forward + } + module pstl_generate { private header "__algorithm/pstl_generate.h" } + module pstl_is_partitioned { private header "__algorithm/pstl_is_partitioned.h" } + module pstl_merge { private header "__algorithm/pstl_merge.h" } + module pstl_replace { private header "__algorithm/pstl_replace.h" } + module pstl_stable_sort { private header "__algorithm/pstl_stable_sort.h" } + module pstl_transform { private header "__algorithm/pstl_transform.h" } module push_heap { private header "__algorithm/push_heap.h" } module ranges_adjacent_find { private header "__algorithm/ranges_adjacent_find.h" } module ranges_all_of { private header "__algorithm/ranges_all_of.h" } @@ -1316,6 +1351,11 @@ module iota { private header "__numeric/iota.h" } module midpoint { private header "__numeric/midpoint.h" } module partial_sum { private header "__numeric/partial_sum.h" } + module pstl_reduce { private header "__numeric/pstl_reduce.h" } + module pstl_transform_reduce { + private header "__numeric/pstl_transform_reduce.h" + export * + } module reduce { private header "__numeric/reduce.h" } module transform_exclusive_scan { private header "__numeric/transform_exclusive_scan.h" } module transform_inclusive_scan { private header "__numeric/transform_inclusive_scan.h" } @@ -1711,7 +1751,10 @@ private header "__type_traits/is_equality_comparable.h" export integral_constant } - module is_execution_policy { private header "__type_traits/is_execution_policy.h" } + module is_execution_policy { + private header "__type_traits/is_execution_policy.h" + export type_traits.remove_cvref + } module is_final { private header "__type_traits/is_final.h" } module is_floating_point { private header "__type_traits/is_floating_point.h" } module is_function { private header "__type_traits/is_function.h" } @@ -1935,13 +1978,20 @@ @requires_LIBCXX_ENABLE_LOCALIZATION@ private header "__locale" export * } + module __locale_dir { + @requires_LIBCXX_ENABLE_LOCALIZATION@ + + module locale_base_api_bsd_locale_defaults { private textual header "__locale_dir/locale_base_api/bsd_locale_defaults.h" } + module locale_base_api_bsd_locale_fallbacks { private textual header "__locale_dir/locale_base_api/bsd_locale_fallbacks.h" } + module locale_base_api_locale_guard { private header "__locale_dir/locale_base_api/locale_guard.h" } + } module __mbstate_t { private header "__mbstate_t.h" export * } module __node_handle { private header "__node_handle" export * } module __split_buffer { private header "__split_buffer" export * } module __std_mbstate_t { private header "__std_mbstate_t.h" export * } module __threading_support { header "__threading_support" export * } module __tree { header "__tree" export * } - module __undef_macros { header "__undef_macros" export * } + module __undef_macros { textual header "__undef_macros" export * } module __verbose_abort { header "__verbose_abort" export * } // This one needs to appear after __tree to work around issues with modules in Objective-C++ mode. @@ -2026,6 +2076,10 @@ header "experimental/vector" export * } + module __config { + private textual header "experimental/__config" + export * + } // FIXME these should be private module __memory { header "experimental/__memory" diff --git a/libcxx/utils/libcxx/test/header_information.py b/libcxx/utils/libcxx/test/header_information.py --- a/libcxx/utils/libcxx/test/header_information.py +++ b/libcxx/utils/libcxx/test/header_information.py @@ -72,9 +72,21 @@ ] private_textual_headers = frozenset(( + # Not standalone headers, alternate implementations for __algorithm/pstl_backends/cpu_backends/backend.h + "__algorithm/pstl_backends/cpu_backends/serial.h", + "__algorithm/pstl_backends/cpu_backends/thread.h", + "__config", + "experimental/__config", + # Not a standalone header, part of __iterator/iterator_traits.h "__iterator/readable_traits.h", + + # Not standalone headers, alternate implementations for locale. + "__locale_dir/locale_base_api/bsd_locale_defaults.h", + "__locale_dir/locale_base_api/bsd_locale_fallbacks.h", + + "__undef_macros", )) # This table was produced manually, by grepping the TeX source of the Standard's