blob: da0a988c00c8752e3c1c0cd798f4face0755a785 [file] [log] [blame]
Eric Fiselier62b959c2016-12-08 06:37:41 +00001// define the module for __config outside of the top level 'std' module
2// since __config may be included from C headers which may create an
3// include cycle.
4module std_config [system] [extern_c] {
5 header "__config"
6}
7
Richard Smith31cfef02014-05-21 00:33:49 +00008module std [system] {
Eric Fiselier62b959c2016-12-08 06:37:41 +00009 export std_config
Richard Smith31cfef02014-05-21 00:33:49 +000010 // FIXME: The standard does not require that each of these submodules
11 // re-exports its imported modules. We should provide an alternative form of
12 // export that issues a warning if a name from the submodule is used, and
13 // use that to provide a 'strict mode' for libc++.
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000014
15 // Deprecated C-compatibility headers. These can all be included from within
16 // an 'extern "C"' context.
17 module depr [extern_c] {
18 // <assert.h> provided by C library.
19 module ctype_h {
20 header "ctype.h"
21 export *
22 }
23 module errno_h {
24 header "errno.h"
25 export *
26 }
Eric Fiselier5dddf722019-02-11 23:47:19 +000027 module fenv_h {
28 header "fenv.h"
29 export *
30 }
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000031 // <float.h> provided by compiler or C library.
32 module inttypes_h {
33 header "inttypes.h"
34 export stdint_h
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000035 export *
36 }
37 // <iso646.h> provided by compiler.
38 // <limits.h> provided by compiler or C library.
Eric Fiselierc6213332016-11-19 01:14:15 +000039 module locale_h {
40 header "locale.h"
Eric Fiselierc6213332016-11-19 01:14:15 +000041 export *
42 }
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000043 module math_h {
44 header "math.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000045 export *
46 }
47 module setjmp_h {
48 header "setjmp.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000049 export *
50 }
51 // FIXME: <stdalign.h> is missing.
52 // <signal.h> provided by C library.
53 // <stdarg.h> provided by compiler.
Eric Fiselier5163fa12016-12-06 09:48:32 +000054 // <stdbool.h> provided by compiler.
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000055 module stddef_h {
56 // <stddef.h>'s __need_* macros require textual inclusion.
57 textual header "stddef.h"
58 }
Eric Fiseliercbda4fb2016-11-22 20:05:19 +000059 module stdint_h {
60 header "stdint.h"
61 export *
62 // FIXME: This module only exists on OS X and for some reason the
63 // wildcard above doesn't export it.
64 export Darwin.C.stdint
65 }
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000066 module stdio_h {
67 // <stdio.h>'s __need_* macros require textual inclusion.
68 textual header "stdio.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000069 export *
Eric Fiselier3b733092016-12-06 07:40:46 +000070 export Darwin.C.stdio
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000071 }
72 module stdlib_h {
73 // <stdlib.h>'s __need_* macros require textual inclusion.
74 textual header "stdlib.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000075 export *
76 }
77 module string_h {
78 header "string.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000079 export *
80 }
81 // FIXME: <uchar.h> is missing.
82 // <time.h> provided by C library.
83 module wchar_h {
84 // <wchar.h>'s __need_* macros require textual inclusion.
85 textual header "wchar.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000086 export *
87 }
88 module wctype_h {
89 header "wctype.h"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +000090 export *
91 }
92 }
93
94 // <complex.h> and <tgmath.h> are not C headers in any real sense, do not
95 // allow their use in extern "C" contexts.
96 module complex_h {
97 header "complex.h"
98 export ccomplex
99 export *
100 }
101 module tgmath_h {
102 header "tgmath.h"
103 export ccomplex
104 export cmath
105 export *
106 }
107
108 // C compatibility headers.
109 module compat {
110 module cassert {
111 // <cassert>'s use of NDEBUG requires textual inclusion.
112 textual header "cassert"
113 }
114 module ccomplex {
115 header "ccomplex"
116 export complex
117 export *
118 }
119 module cctype {
120 header "cctype"
121 export *
122 }
123 module cerrno {
124 header "cerrno"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000125 export *
126 }
127 module cfenv {
128 header "cfenv"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000129 export *
130 }
131 module cfloat {
132 header "cfloat"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000133 export *
134 }
135 module cinttypes {
136 header "cinttypes"
137 export cstdint
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000138 export *
139 }
140 module ciso646 {
141 header "ciso646"
142 export *
143 }
144 module climits {
145 header "climits"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000146 export *
147 }
148 module clocale {
149 header "clocale"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000150 export *
151 }
152 module cmath {
153 header "cmath"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000154 export *
155 }
156 module csetjmp {
157 header "csetjmp"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000158 export *
159 }
160 module csignal {
161 header "csignal"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000162 export *
163 }
164 // FIXME: <cstdalign> is missing.
165 module cstdarg {
166 header "cstdarg"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000167 export *
168 }
169 module cstdbool {
170 header "cstdbool"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000171 export *
172 }
173 module cstddef {
174 header "cstddef"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000175 export *
176 }
177 module cstdint {
178 header "cstdint"
Eric Fiseliercbda4fb2016-11-22 20:05:19 +0000179 export depr.stdint_h
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000180 export *
181 }
182 module cstdio {
183 header "cstdio"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000184 export *
185 }
186 module cstdlib {
187 header "cstdlib"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000188 export *
189 }
190 module cstring {
191 header "cstring"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000192 export *
193 }
194 module ctgmath {
195 header "ctgmath"
196 export ccomplex
197 export cmath
198 export *
199 }
200 module ctime {
201 header "ctime"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000202 export *
203 }
204 // FIXME: <cuchar> is missing.
205 module cwchar {
206 header "cwchar"
Eric Fiselier3b733092016-12-06 07:40:46 +0000207 export depr.stdio_h
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000208 export *
209 }
210 module cwctype {
211 header "cwctype"
Bruno Cardoso Lopes7fd29e02016-10-21 03:14:27 +0000212 export *
213 }
214 }
215
Richard Smith31cfef02014-05-21 00:33:49 +0000216 module algorithm {
217 header "algorithm"
218 export initializer_list
219 export *
Louis Dionnea60dd872021-06-17 11:30:11 -0400220
221 module __algorithm {
222 module adjacent_find { header "__algorithm/adjacent_find.h" }
223 module all_of { header "__algorithm/all_of.h" }
224 module any_of { header "__algorithm/any_of.h" }
225 module binary_search { header "__algorithm/binary_search.h" }
226 module clamp { header "__algorithm/clamp.h" }
227 module comp { header "__algorithm/comp.h" }
228 module comp_ref_type { header "__algorithm/comp_ref_type.h" }
229 module copy { header "__algorithm/copy.h" }
230 module copy_backward { header "__algorithm/copy_backward.h" }
231 module copy_if { header "__algorithm/copy_if.h" }
232 module copy_n { header "__algorithm/copy_n.h" }
233 module count { header "__algorithm/count.h" }
234 module count_if { header "__algorithm/count_if.h" }
235 module equal { header "__algorithm/equal.h" }
236 module equal_range { header "__algorithm/equal_range.h" }
237 module fill_n { header "__algorithm/fill_n.h" }
238 module fill { header "__algorithm/fill.h" }
239 module find { header "__algorithm/find.h" }
240 module find_end { header "__algorithm/find_end.h" }
241 module find_first_of { header "__algorithm/find_first_of.h" }
242 module find_if { header "__algorithm/find_if.h" }
243 module find_if_not { header "__algorithm/find_if_not.h" }
244 module for_each { header "__algorithm/for_each.h" }
245 module for_each_n { header "__algorithm/for_each_n.h" }
246 module generate_n { header "__algorithm/generate_n.h" }
247 module generate { header "__algorithm/generate.h" }
248 module half_positive { header "__algorithm/half_positive.h" }
249 module includes { header "__algorithm/includes.h" }
250 module inplace_merge { header "__algorithm/inplace_merge.h" }
251 module is_heap { header "__algorithm/is_heap.h" }
252 module is_heap_until { header "__algorithm/is_heap_until.h" }
253 module is_partitioned { header "__algorithm/is_partitioned.h" }
254 module is_permutation { header "__algorithm/is_permutation.h" }
255 module is_sorted { header "__algorithm/is_sorted.h" }
256 module is_sorted_until { header "__algorithm/is_sorted_until.h" }
257 module lexicographical_compare { header "__algorithm/lexicographical_compare.h" }
258 module lower_bound { header "__algorithm/lower_bound.h" }
259 module make_heap { header "__algorithm/make_heap.h" }
260 module max { header "__algorithm/max.h" }
261 module max_element { header "__algorithm/max_element.h" }
262 module merge { header "__algorithm/merge.h" }
263 module min { header "__algorithm/min.h" }
264 module min_element { header "__algorithm/min_element.h" }
265 module minmax { header "__algorithm/minmax.h" }
266 module minmax_element { header "__algorithm/minmax_element.h" }
267 module mismatch { header "__algorithm/mismatch.h" }
268 module move { header "__algorithm/move.h" }
269 module move_backward { header "__algorithm/move_backward.h" }
270 module next_permutation { header "__algorithm/next_permutation.h" }
271 module none_of { header "__algorithm/none_of.h" }
272 module nth_element { header "__algorithm/nth_element.h" }
273 module partial_sort { header "__algorithm/partial_sort.h" }
274 module partial_sort_copy { header "__algorithm/partial_sort_copy.h" }
275 module partition { header "__algorithm/partition.h" }
276 module partition_copy { header "__algorithm/partition_copy.h" }
277 module partition_point { header "__algorithm/partition_point.h" }
278 module pop_heap { header "__algorithm/pop_heap.h" }
279 module prev_permutation { header "__algorithm/prev_permutation.h" }
280 module push_heap { header "__algorithm/push_heap.h" }
281 module remove { header "__algorithm/remove.h" }
282 module remove_copy { header "__algorithm/remove_copy.h" }
283 module remove_copy_if { header "__algorithm/remove_copy_if.h" }
284 module remove_if { header "__algorithm/remove_if.h" }
285 module replace { header "__algorithm/replace.h" }
286 module replace_copy { header "__algorithm/replace_copy.h" }
287 module replace_copy_if { header "__algorithm/replace_copy_if.h" }
288 module replace_if { header "__algorithm/replace_if.h" }
289 module reverse_copy { header "__algorithm/reverse_copy.h" }
290 module reverse { header "__algorithm/reverse.h" }
291 module rotate_copy { header "__algorithm/rotate_copy.h" }
292 module rotate { header "__algorithm/rotate.h" }
293 module sample { header "__algorithm/sample.h" }
294 module search { header "__algorithm/search.h" }
295 module search_n { header "__algorithm/search_n.h" }
296 module set_difference { header "__algorithm/set_difference.h" }
297 module set_intersection { header "__algorithm/set_intersection.h" }
298 module set_symmetric_difference { header "__algorithm/set_symmetric_difference.h" }
299 module set_union { header "__algorithm/set_union.h" }
300 module shift_left { header "__algorithm/shift_left.h" }
301 module shift_right { header "__algorithm/shift_right.h" }
302 module shuffle { header "__algorithm/shuffle.h" }
303 module sift_down { header "__algorithm/sift_down.h" }
304 module sort { header "__algorithm/sort.h" }
305 module sort_heap { header "__algorithm/sort_heap.h" }
306 module stable_partition { header "__algorithm/stable_partition.h" }
307 module stable_sort { header "__algorithm/stable_sort.h" }
308 module transform { header "__algorithm/transform.h" }
309 module unique_copy { header "__algorithm/unique_copy.h" }
310 module unique { header "__algorithm/unique.h" }
311 module unwrap_iter { header "__algorithm/unwrap_iter.h" }
312 module upper_bound { header "__algorithm/upper_bound.h" }
313 }
Richard Smith31cfef02014-05-21 00:33:49 +0000314 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000315 module any {
316 header "any"
317 export *
318 }
Richard Smith31cfef02014-05-21 00:33:49 +0000319 module array {
320 header "array"
321 export initializer_list
322 export *
323 }
324 module atomic {
325 header "atomic"
326 export *
Richard Smith31cfef02014-05-21 00:33:49 +0000327 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500328 module barrier {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100329 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500330 header "barrier"
331 export *
332 }
Marshall Clowbf32ec92018-08-17 16:07:48 +0000333 module bit {
334 header "bit"
335 export *
336 }
Richard Smith31cfef02014-05-21 00:33:49 +0000337 module bitset {
338 header "bitset"
339 export string
340 export iosfwd
341 export *
342 }
343 // No submodule for cassert. It fundamentally needs repeated, textual inclusion.
Zhihao Yuan7bf19052018-08-01 02:38:30 +0000344 module charconv {
345 header "charconv"
346 export *
347 }
Richard Smith31cfef02014-05-21 00:33:49 +0000348 module chrono {
349 header "chrono"
350 export *
351 }
Richard Smith31cfef02014-05-21 00:33:49 +0000352 module codecvt {
353 header "codecvt"
354 export *
355 }
Eric Fiseliere0074fc2018-04-06 21:37:23 +0000356 module compare {
357 header "compare"
358 export *
359 }
Richard Smith31cfef02014-05-21 00:33:49 +0000360 module complex {
361 header "complex"
362 export *
363 }
Eric Fiselierd59a0322020-04-08 18:00:13 -0400364 module concepts {
365 header "concepts"
366 export *
367 }
Richard Smith31cfef02014-05-21 00:33:49 +0000368 module condition_variable {
369 header "condition_variable"
370 export *
371 }
Richard Smith31cfef02014-05-21 00:33:49 +0000372 module deque {
373 header "deque"
374 export initializer_list
375 export *
376 }
377 module exception {
378 header "exception"
379 export *
380 }
Louis Dionne59d0b3c2019-08-05 18:29:14 +0000381 module execution {
382 header "execution"
383 export *
384 }
Eric Fiselier02cea5e2018-07-27 03:07:09 +0000385 module filesystem {
386 header "filesystem"
387 export *
388 }
Mark de Weverdf5fd832020-11-26 19:12:18 +0100389 module format {
390 header "format"
391 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000392
393 module __format {
394 module format_error { header "__format/format_error.h" }
395 module format_parse_context { header "__format/format_parse_context.h" }
396 }
Mark de Weverdf5fd832020-11-26 19:12:18 +0100397 }
Richard Smith31cfef02014-05-21 00:33:49 +0000398 module forward_list {
399 header "forward_list"
400 export initializer_list
401 export *
402 }
403 module fstream {
404 header "fstream"
405 export *
406 }
407 module functional {
408 header "functional"
409 export *
Louis Dionnea60dd872021-06-17 11:30:11 -0400410 module __functional {
Christopher Di Bella599a6c62021-06-09 23:10:17 +0000411 module hash { header "__functional/hash.h" }
412 module search { header "__functional/search.h" }
413 module unary_function { header "__functional/unary_function.h" }
414 module unwrap_ref { header "__functional/unwrap_ref.h" }
Louis Dionnea60dd872021-06-17 11:30:11 -0400415 }
Richard Smith31cfef02014-05-21 00:33:49 +0000416 }
417 module future {
418 header "future"
419 export *
420 }
421 module initializer_list {
422 header "initializer_list"
423 export *
424 }
425 module iomanip {
426 header "iomanip"
427 export *
428 }
429 module ios {
430 header "ios"
431 export iosfwd
432 export *
433 }
434 module iosfwd {
435 header "iosfwd"
436 export *
437 }
438 module iostream {
439 header "iostream"
440 export ios
441 export streambuf
442 export istream
443 export ostream
444 export *
445 }
446 module istream {
447 header "istream"
448 // FIXME: should re-export ios, streambuf?
449 export *
450 }
451 module iterator {
452 header "iterator"
453 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000454
455 module __iterator {
Louis Dionne77249522021-06-11 09:55:11 -0400456 module advance { header "__iterator/advance.h" }
457 module back_insert_iterator { header "__iterator/back_insert_iterator.h" }
458 module concepts { header "__iterator/concepts.h" }
459 module default_sentinel { header "__iterator/default_sentinel.h" }
460 module front_insert_iterator { header "__iterator/front_insert_iterator.h" }
461 module incrementable_traits { header "__iterator/incrementable_traits.h" }
462 module insert_iterator { header "__iterator/insert_iterator.h" }
463 module istream_iterator { header "__iterator/istream_iterator.h" }
464 module istreambuf_iterator { header "__iterator/istreambuf_iterator.h" }
465 module iter_move { header "__iterator/iter_move.h" }
466 module iter_swap { header "__iterator/iter_swap.h" }
467 module iterator { header "__iterator/iterator.h" }
468 module iterator_traits { header "__iterator/iterator_traits.h" }
469 module move_iterator { header "__iterator/move_iterator.h" }
470 module next { header "__iterator/next.h" }
471 module ostream_iterator { header "__iterator/ostream_iterator.h" }
472 module ostreambuf_iterator { header "__iterator/ostreambuf_iterator.h" }
473 module prev { header "__iterator/prev.h" }
474 module projected { header "__iterator/projected.h" }
475 module readable_traits { header "__iterator/readable_traits.h" }
476 module reverse_iterator { header "__iterator/reverse_iterator.h" }
477 module wrap_iter { header "__iterator/wrap_iter.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000478 }
Richard Smith31cfef02014-05-21 00:33:49 +0000479 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500480 module latch {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100481 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500482 header "latch"
483 export *
484 }
Richard Smith31cfef02014-05-21 00:33:49 +0000485 module limits {
486 header "limits"
487 export *
488 }
489 module list {
490 header "list"
491 export initializer_list
492 export *
493 }
494 module locale {
495 header "locale"
496 export *
497 }
498 module map {
499 header "map"
500 export initializer_list
501 export *
502 }
503 module memory {
504 header "memory"
505 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000506
507 module __memory {
508 module addressof { header "__memory/addressof.h" }
509 module allocation_guard { header "__memory/allocation_guard.h" }
510 module allocator_traits { header "__memory/allocator_traits.h" }
511 module allocator { header "__memory/allocator.h" }
512 module auto_ptr { header "__memory/auto_ptr.h" }
513 module compressed_pair { header "__memory/compressed_pair.h" }
514 module construct_at { header "__memory/construct_at.h" }
515 module pointer_safety { header "__memory/pointer_safety.h" }
516 module pointer_traits { header "__memory/pointer_traits.h" }
517 module raw_storage_iterator { header "__memory/raw_storage_iterator.h" }
518 module shared_ptr { header "__memory/shared_ptr.h" }
519 module temporary_buffer { header "__memory/temporary_buffer.h" }
520 module uninitialized_algorithms { header "__memory/uninitialized_algorithms.h" }
521 module unique_ptr { header "__memory/unique_ptr.h" }
522 }
Richard Smith31cfef02014-05-21 00:33:49 +0000523 }
524 module mutex {
525 header "mutex"
526 export *
527 }
528 module new {
529 header "new"
530 export *
531 }
Raul Tambreafcedea2020-06-19 12:43:33 +0530532 module numbers {
533 header "numbers"
534 export *
535 }
Richard Smith31cfef02014-05-21 00:33:49 +0000536 module numeric {
537 header "numeric"
538 export *
539 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000540 module optional {
541 header "optional"
542 export *
543 }
Richard Smith31cfef02014-05-21 00:33:49 +0000544 module ostream {
545 header "ostream"
546 // FIXME: should re-export ios, streambuf?
547 export *
548 }
549 module queue {
550 header "queue"
551 export initializer_list
552 export *
553 }
554 module random {
555 header "random"
556 export initializer_list
557 export *
Louis Dionnea60dd872021-06-17 11:30:11 -0400558
559 module __random {
560 module uniform_int_distribution { header "__random/uniform_int_distribution.h" }
561 }
Richard Smith31cfef02014-05-21 00:33:49 +0000562 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100563 module ranges {
564 header "ranges"
Christopher Di Bella66ce1292021-04-11 05:08:32 +0000565 export compare
566 export initializer_list
567 export iterator
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100568 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000569
570 module __ranges {
Christopher Di Bella8539fc62021-06-16 19:12:51 +0000571 module access { header "__ranges/access.h" }
Louis Dionnec46ba712021-06-22 13:47:32 -0400572 module all { header "__ranges/all.h" }
Christopher Di Bella8539fc62021-06-16 19:12:51 +0000573 module concepts { header "__ranges/concepts.h" }
574 module data { header "__ranges/data.h" }
575 module empty { header "__ranges/empty.h" }
576 module empty_view { header "__ranges/empty_view.h" }
577 module enable_borrowed_range { header "__ranges/enable_borrowed_range.h" }
578 module enable_view { header "__ranges/enable_view.h" }
579 module ref_view { header "__ranges/ref_view.h" }
580 module size { header "__ranges/size.h" }
581 module subrange { header "__ranges/subrange.h" }
582 module view_interface { header "__ranges/view_interface.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000583 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100584 }
Richard Smith31cfef02014-05-21 00:33:49 +0000585 module ratio {
586 header "ratio"
587 export *
588 }
589 module regex {
590 header "regex"
591 export initializer_list
592 export *
593 }
594 module scoped_allocator {
595 header "scoped_allocator"
596 export *
597 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500598 module semaphore {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100599 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500600 header "semaphore"
601 export *
602 }
Richard Smith31cfef02014-05-21 00:33:49 +0000603 module set {
604 header "set"
605 export initializer_list
606 export *
607 }
608 module sstream {
609 header "sstream"
610 // FIXME: should re-export istream, ostream, ios, streambuf, string?
611 export *
612 }
613 module stack {
614 header "stack"
615 export initializer_list
616 export *
617 }
618 module stdexcept {
619 header "stdexcept"
620 export *
621 }
622 module streambuf {
623 header "streambuf"
624 export *
625 }
626 module string {
627 header "string"
628 export initializer_list
Eric Fiselier2d357f72016-12-05 23:53:23 +0000629 export string_view
630 export __string
631 export *
632 }
633 module string_view {
634 header "string_view"
635 export initializer_list
636 export __string
Richard Smith31cfef02014-05-21 00:33:49 +0000637 export *
638 }
639 module strstream {
640 header "strstream"
Eric Fiselierbdc20862016-12-05 23:16:07 +0000641 export *
Richard Smith31cfef02014-05-21 00:33:49 +0000642 }
643 module system_error {
644 header "system_error"
645 export *
646 }
647 module thread {
648 header "thread"
649 export *
650 }
651 module tuple {
652 header "tuple"
653 export *
654 }
655 module type_traits {
656 header "type_traits"
Christopher Di Bella599a6c62021-06-09 23:10:17 +0000657 export functional.__functional.unwrap_ref
Richard Smith31cfef02014-05-21 00:33:49 +0000658 export *
659 }
660 module typeindex {
661 header "typeindex"
662 export *
663 }
664 module typeinfo {
665 header "typeinfo"
666 export *
667 }
668 module unordered_map {
669 header "unordered_map"
670 export initializer_list
671 export *
672 }
673 module unordered_set {
674 header "unordered_set"
675 export initializer_list
676 export *
677 }
678 module utility {
679 header "utility"
680 export initializer_list
681 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000682
683 module __utility {
Christopher Di Bella599a6c62021-06-09 23:10:17 +0000684 module __decay_copy { header "__utility/__decay_copy.h" }
685 module as_const { header "__utility/as_const.h" }
686 module cmp { header "__utility/cmp.h" }
687 module declval { header "__utility/declval.h" }
688 module exchange { header "__utility/exchange.h" }
689 module forward { header "__utility/forward.h" }
690 module in_place { header "__utility/in_place.h" }
691 module integer_sequence { header "__utility/integer_sequence.h" }
692 module move { header "__utility/move.h" }
693 module pair { header "__utility/pair.h" }
694 module piecewise_construct { header "__utility/piecewise_construct.h" }
695 module rel_ops { header "__utility/rel_ops.h" }
696 module swap { header "__utility/swap.h" }
697 module to_underlying { header "__utility/to_underlying.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000698 }
Richard Smith31cfef02014-05-21 00:33:49 +0000699 }
700 module valarray {
701 header "valarray"
702 export initializer_list
703 export *
704 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000705 module variant {
706 header "variant"
707 export *
708 }
Richard Smith31cfef02014-05-21 00:33:49 +0000709 module vector {
710 header "vector"
711 export initializer_list
712 export *
713 }
Eric Fiseliera604a7d2018-04-04 04:21:54 +0000714 module version {
715 header "version"
716 export *
717 }
Richard Smith31cfef02014-05-21 00:33:49 +0000718
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000719 // __config not modularised due to a bug in Clang
720 // __functional(_03)?_base not modularised since it's designed for textual inclusion
721 // libcpp_version not modularised since it's just a version number
Richard Smith31cfef02014-05-21 00:33:49 +0000722 // FIXME: These should be private.
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000723 module __availability { header "__availability" export * }
724 module __bit_reference { header "__bit_reference" export * }
725 module __bits { header "__bits" export * }
726 module __debug { header "__debug" export * }
727 module __errc { header "__errc" export * }
728 module __function_like { header "__function_like.h" export * }
729 module __functional_base { header "__functional_base" export * }
730 module __hash_table { header "__hash_table" export * }
731 module __locale { header "__locale" export * }
732 module __mutex_base { header "__mutex_base" export * }
733 module __node_handle { header "__node_handle" export * }
734 module __nullptr { header "__nullptr" export * }
735 module __split_buffer { header "__split_buffer" export * }
736 module __std_stream { header "__std_stream" export * }
737 module __string { header "__string" export * }
Petr Hosek5f4e91c2021-06-07 11:29:03 -0700738 module __threading_support { header "__threading_support" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000739 module __tree { header "__tree" export * }
740 module __tuple { header "__tuple" export * }
741 module __undef_macros { header "__undef_macros" export * }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000742
743 module experimental {
Eric Fiselier92ae1af2016-12-06 01:34:24 +0000744 requires cplusplus11
745
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000746 module algorithm {
747 header "experimental/algorithm"
748 export *
749 }
Eric Fiselierf0426152017-05-25 23:39:29 +0000750 module coroutine {
Eric Fiseliere4a3dab2017-05-29 23:17:28 +0000751 requires coroutines
Eric Fiselierf0426152017-05-25 23:39:29 +0000752 header "experimental/coroutine"
753 export *
754 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000755 module deque {
756 header "experimental/deque"
757 export *
758 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000759 module filesystem {
760 header "experimental/filesystem"
761 export *
762 }
763 module forward_list {
764 header "experimental/forward_list"
765 export *
766 }
767 module functional {
768 header "experimental/functional"
769 export *
770 }
771 module iterator {
772 header "experimental/iterator"
773 export *
774 }
775 module list {
776 header "experimental/list"
777 export *
778 }
779 module map {
780 header "experimental/map"
781 export *
782 }
783 module memory_resource {
784 header "experimental/memory_resource"
785 export *
786 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000787 module propagate_const {
788 header "experimental/propagate_const"
789 export *
790 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000791 module regex {
792 header "experimental/regex"
793 export *
794 }
Tim Shen158e51b2018-04-23 21:54:06 +0000795 module simd {
796 header "experimental/simd"
797 export *
798 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000799 module set {
800 header "experimental/set"
801 export *
802 }
Marshall Clowd2ad87e2018-07-24 03:01:02 +0000803 module span {
804 header "span"
805 export *
806 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000807 module string {
808 header "experimental/string"
809 export *
810 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000811 module type_traits {
812 header "experimental/type_traits"
813 export *
814 }
815 module unordered_map {
816 header "experimental/unordered_map"
817 export *
818 }
819 module unordered_set {
820 header "experimental/unordered_set"
821 export *
822 }
823 module utility {
824 header "experimental/utility"
825 export *
826 }
827 module vector {
828 header "experimental/vector"
829 export *
830 }
831 // FIXME these should be private
832 module __memory {
833 header "experimental/__memory"
834 export *
835 }
836 } // end experimental
Richard Smith31cfef02014-05-21 00:33:49 +0000837}