Skip to content

Commit 165841b

Browse files
[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
1 parent 7c1a6c0 commit 165841b

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

libcxx/include/__algorithm/pstl_sort.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <__type_traits/is_execution_policy.h>
1818
#include <__type_traits/remove_cvref.h>
1919
#include <__utility/forward.h>
20+
#include <__utility/move.h>
2021

2122
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
2223
# pragma GCC system_header

libcxx/include/module.modulemap.in

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,7 @@ module std_private_algorithm_pstl_generate [system
826826
module std_private_algorithm_pstl_is_partitioned [system] { header "__algorithm/pstl_is_partitioned.h" }
827827
module std_private_algorithm_pstl_merge [system] { header "__algorithm/pstl_merge.h" }
828828
module std_private_algorithm_pstl_replace [system] { header "__algorithm/pstl_replace.h" }
829+
module std_private_algorithm_pstl_sort [system] { header "__algorithm/pstl_sort.h" }
829830
module std_private_algorithm_pstl_stable_sort [system] {
830831
header "__algorithm/pstl_stable_sort.h"
831832
export std_private_functional_operations
@@ -1537,7 +1538,10 @@ module std_private_memory_allocator_destructor [system] { header "__m
15371538
module std_private_memory_allocator_traits [system] { header "__memory/allocator_traits.h" }
15381539
module std_private_memory_assume_aligned [system] { header "__memory/assume_aligned.h" }
15391540
module std_private_memory_auto_ptr [system] { header "__memory/auto_ptr.h" }
1540-
module std_private_memory_builtin_new_allocator [system] { header "__memory/builtin_new_allocator.h" }
1541+
module std_private_memory_builtin_new_allocator [system] {
1542+
header "__memory/builtin_new_allocator.h"
1543+
export *
1544+
}
15411545
module std_private_memory_compressed_pair [system] { header "__memory/compressed_pair.h" }
15421546
module std_private_memory_concepts [system] {
15431547
header "__memory/concepts.h"
@@ -1644,9 +1648,15 @@ module std_private_random_piecewise_linear_distribution [system] {
16441648
export *
16451649
}
16461650
module std_private_random_poisson_distribution [system] { header "__random/poisson_distribution.h" }
1647-
module std_private_random_random_device [system] { header "__random/random_device.h" }
1651+
module std_private_random_random_device [system] {
1652+
header "__random/random_device.h"
1653+
export *
1654+
}
16481655
module std_private_random_ranlux [system] { header "__random/ranlux.h" }
1649-
module std_private_random_seed_seq [system] { header "__random/seed_seq.h" }
1656+
module std_private_random_seed_seq [system] {
1657+
header "__random/seed_seq.h"
1658+
export *
1659+
}
16501660
module std_private_random_shuffle_order_engine [system] { header "__random/shuffle_order_engine.h" }
16511661
module std_private_random_student_t_distribution [system] { header "__random/student_t_distribution.h" }
16521662
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] {
17561766
export *
17571767
}
17581768

1759-
module std_private_string_char_traits [system] { header "__string/char_traits.h" }
1769+
module std_private_string_char_traits [system] {
1770+
header "__string/char_traits.h"
1771+
export *
1772+
}
17601773
module std_private_string_constexpr_c_functions [system] {
17611774
header "__string/constexpr_c_functions.h"
17621775
export std_private_type_traits_is_equality_comparable

0 commit comments

Comments
 (0)