Skip to content

Commit fe667c9

Browse files
committed
[libc++] Add an initial modulemap for the test support headers
1 parent 0dff52b commit fe667c9

File tree

53 files changed

+102
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+102
-31
lines changed

libcxx/include/module.modulemap.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2359,7 +2359,10 @@ module std [system] {
23592359
module hash_table { header "__hash_table" }
23602360
module node_handle { header "__node_handle" }
23612361
module split_buffer { header "__split_buffer" }
2362-
module tree { header "__tree" }
2362+
module tree {
2363+
header "__tree"
2364+
export std.memory.unique_ptr
2365+
}
23632366
module std_mbstate_t {
23642367
header "__std_mbstate_t.h"
23652368
export *

libcxx/test/libcxx/algorithms/alg.modifying.operations/copy_move_unwrap_reverse.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <cstdint>
2020
#include <iterator>
2121
#include <type_traits>
22+
#include <utility>
2223

2324
#include "test_iterators.h"
2425

libcxx/test/libcxx/memory/allocation_guard.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
#include <__memory/allocation_guard.h>
1919
#include <cassert>
20+
#include <climits>
21+
#include <memory>
2022
#include <type_traits>
2123
#include <utility>
2224

libcxx/test/libcxx/memory/uninitialized_allocator_copy.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// ensure that __uninitialized_allocator_copy calls the proper construct and destruct functions
1212

1313
#include <algorithm>
14+
#include <cassert>
1415
#include <iterator>
1516
#include <memory>
1617

libcxx/test/std/algorithms/alg.nonmodifying/alg.contains/ranges.contains_subrange.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
#include "almost_satisfies_types.h"
3434
#include "test_iterators.h"
35+
#include "type_algorithms.h"
3536

3637
struct NotEqualityComparable {};
3738

libcxx/test/std/algorithms/alg.nonmodifying/alg.count/count.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <algorithm>
2121
#include <cassert>
2222
#include <cstddef>
23+
#include <cstdint>
2324
#include <vector>
2425

2526
#include "sized_allocator.h"

libcxx/test/std/algorithms/alg.nonmodifying/alg.count/ranges.count.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <array>
2727
#include <cassert>
2828
#include <cstddef>
29+
#include <cstdint>
2930
#include <ranges>
3031
#include <vector>
3132

libcxx/test/std/algorithms/alg.nonmodifying/alg.ends_with/ranges.ends_with.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
#include <array>
2626
#include <chrono>
2727
#include <ranges>
28+
2829
#include "almost_satisfies_types.h"
2930
#include "test_iterators.h"
31+
#include "type_algorithms.h"
3032

3133
using namespace std::chrono;
3234

libcxx/test/std/algorithms/alg.nonmodifying/alg.starts_with/ranges.starts_with.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#include "almost_satisfies_types.h"
2929
#include "test_iterators.h"
30+
#include "type_algorithms.h"
3031

3132
template <class Iter1, class Sent1 = Iter1, class Iter2 = int*, class Sent2 = Iter2>
3233
concept HasStartsWithIt = requires(Iter1 first1, Sent1 last1, Iter2 first2, Sent2 last2) {

libcxx/test/std/algorithms/alg.sorting/alg.partitions/pstl.is_partitioned.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include "test_iterators.h"
2222
#include "test_execution_policies.h"
23+
#include "type_algorithms.h"
2324

2425
template <class Iter>
2526
struct Test {

0 commit comments

Comments
 (0)