diff options
author | Ian Anderson <iana@apple.com> | 2023-07-27 23:36:50 -0700 |
---|---|---|
committer | Ian Anderson <iana@apple.com> | 2023-07-29 07:33:35 -0700 |
commit | 165841b681c146ae1e013a0aa4d69ef7c7c20fe2 (patch) | |
tree | aaaa90037aca9cbf13973a5003dbadf03b001698 /libcxx | |
parent | 7c1a6c07ccd93a801dad27780cd1301c56c13829 (diff) | |
download | llvm-165841b681c146ae1e013a0aa4d69ef7c7c20fe2.zip llvm-165841b681c146ae1e013a0aa4d69ef7c7c20fe2.tar.gz llvm-165841b681c146ae1e013a0aa4d69ef7c7c20fe2.tar.bz2 |
[libc++][Modules] Fix a few module related warnings
I'm getting a few -Wundefined-inline warnings, and a -Wnon-modular-include-in-module too. Fix all of those.
Reviewed By: Mordante, #libc
Differential Revision: https://reviews.llvm.org/D156508
Diffstat (limited to 'libcxx')
-rw-r--r-- | libcxx/include/__algorithm/pstl_sort.h | 1 | ||||
-rw-r--r-- | libcxx/include/module.modulemap.in | 21 |
2 files changed, 18 insertions, 4 deletions
diff --git a/libcxx/include/__algorithm/pstl_sort.h b/libcxx/include/__algorithm/pstl_sort.h index 8151495..75c77ed 100644 --- a/libcxx/include/__algorithm/pstl_sort.h +++ b/libcxx/include/__algorithm/pstl_sort.h @@ -17,6 +17,7 @@ #include <__type_traits/is_execution_policy.h> #include <__type_traits/remove_cvref.h> #include <__utility/forward.h> +#include <__utility/move.h> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header diff --git a/libcxx/include/module.modulemap.in b/libcxx/include/module.modulemap.in index d1a1a98..bbb7090 100644 --- a/libcxx/include/module.modulemap.in +++ b/libcxx/include/module.modulemap.in @@ -826,6 +826,7 @@ module std_private_algorithm_pstl_generate [system module std_private_algorithm_pstl_is_partitioned [system] { header "__algorithm/pstl_is_partitioned.h" } module std_private_algorithm_pstl_merge [system] { header "__algorithm/pstl_merge.h" } module std_private_algorithm_pstl_replace [system] { header "__algorithm/pstl_replace.h" } +module std_private_algorithm_pstl_sort [system] { header "__algorithm/pstl_sort.h" } module std_private_algorithm_pstl_stable_sort [system] { header "__algorithm/pstl_stable_sort.h" export std_private_functional_operations @@ -1537,7 +1538,10 @@ module std_private_memory_allocator_destructor [system] { header "__m module std_private_memory_allocator_traits [system] { header "__memory/allocator_traits.h" } module std_private_memory_assume_aligned [system] { header "__memory/assume_aligned.h" } module std_private_memory_auto_ptr [system] { header "__memory/auto_ptr.h" } -module std_private_memory_builtin_new_allocator [system] { header "__memory/builtin_new_allocator.h" } +module std_private_memory_builtin_new_allocator [system] { + header "__memory/builtin_new_allocator.h" + export * +} module std_private_memory_compressed_pair [system] { header "__memory/compressed_pair.h" } module std_private_memory_concepts [system] { header "__memory/concepts.h" @@ -1644,9 +1648,15 @@ module std_private_random_piecewise_linear_distribution [system] { export * } module std_private_random_poisson_distribution [system] { header "__random/poisson_distribution.h" } -module std_private_random_random_device [system] { header "__random/random_device.h" } +module std_private_random_random_device [system] { + header "__random/random_device.h" + export * +} module std_private_random_ranlux [system] { header "__random/ranlux.h" } -module std_private_random_seed_seq [system] { header "__random/seed_seq.h" } +module std_private_random_seed_seq [system] { + header "__random/seed_seq.h" + export * +} module std_private_random_shuffle_order_engine [system] { header "__random/shuffle_order_engine.h" } module std_private_random_student_t_distribution [system] { header "__random/student_t_distribution.h" } module std_private_random_subtract_with_carry_engine [system] { header "__random/subtract_with_carry_engine.h" } @@ -1756,7 +1766,10 @@ module std_private_stop_token_stop_token [system] { export * } -module std_private_string_char_traits [system] { header "__string/char_traits.h" } +module std_private_string_char_traits [system] { + header "__string/char_traits.h" + export * +} module std_private_string_constexpr_c_functions [system] { header "__string/constexpr_c_functions.h" export std_private_type_traits_is_equality_comparable |