blob: c5f9f43b870689e136fffedcb6a7bcbd48df37e3 [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 {
411 module search { header "__functional/search.h" }
412 }
Richard Smith31cfef02014-05-21 00:33:49 +0000413 }
414 module future {
415 header "future"
416 export *
417 }
418 module initializer_list {
419 header "initializer_list"
420 export *
421 }
422 module iomanip {
423 header "iomanip"
424 export *
425 }
426 module ios {
427 header "ios"
428 export iosfwd
429 export *
430 }
431 module iosfwd {
432 header "iosfwd"
433 export *
434 }
435 module iostream {
436 header "iostream"
437 export ios
438 export streambuf
439 export istream
440 export ostream
441 export *
442 }
443 module istream {
444 header "istream"
445 // FIXME: should re-export ios, streambuf?
446 export *
447 }
448 module iterator {
449 header "iterator"
450 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000451
452 module __iterator {
453 module advance { header "__iterator/advance.h" }
454 module concepts { header "__iterator/concepts.h" }
455 module default_sentinel { header "__iterator/default_sentinel.h" }
456 module incrementable_traits { header "__iterator/incrementable_traits.h" }
457 module iter_move { header "__iterator/iter_move.h" }
zoecarver31f4f5d2021-05-18 16:18:18 -0700458 module iter_swap { header "__iterator/iter_swap.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000459 module iterator_traits { header "__iterator/iterator_traits.h" }
460 module next { header "__iterator/next.h" }
461 module prev { header "__iterator/prev.h" }
462 module projected { header "__iterator/projected.h" }
463 module readable_traits { header "__iterator/readable_traits.h" }
464 }
Richard Smith31cfef02014-05-21 00:33:49 +0000465 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500466 module latch {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100467 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500468 header "latch"
469 export *
470 }
Richard Smith31cfef02014-05-21 00:33:49 +0000471 module limits {
472 header "limits"
473 export *
474 }
475 module list {
476 header "list"
477 export initializer_list
478 export *
479 }
480 module locale {
481 header "locale"
482 export *
483 }
484 module map {
485 header "map"
486 export initializer_list
487 export *
488 }
489 module memory {
490 header "memory"
491 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000492
493 module __memory {
494 module addressof { header "__memory/addressof.h" }
495 module allocation_guard { header "__memory/allocation_guard.h" }
496 module allocator_traits { header "__memory/allocator_traits.h" }
497 module allocator { header "__memory/allocator.h" }
498 module auto_ptr { header "__memory/auto_ptr.h" }
499 module compressed_pair { header "__memory/compressed_pair.h" }
500 module construct_at { header "__memory/construct_at.h" }
501 module pointer_safety { header "__memory/pointer_safety.h" }
502 module pointer_traits { header "__memory/pointer_traits.h" }
503 module raw_storage_iterator { header "__memory/raw_storage_iterator.h" }
504 module shared_ptr { header "__memory/shared_ptr.h" }
505 module temporary_buffer { header "__memory/temporary_buffer.h" }
506 module uninitialized_algorithms { header "__memory/uninitialized_algorithms.h" }
507 module unique_ptr { header "__memory/unique_ptr.h" }
508 }
Richard Smith31cfef02014-05-21 00:33:49 +0000509 }
510 module mutex {
511 header "mutex"
512 export *
513 }
514 module new {
515 header "new"
516 export *
517 }
Raul Tambreafcedea2020-06-19 12:43:33 +0530518 module numbers {
519 header "numbers"
520 export *
521 }
Richard Smith31cfef02014-05-21 00:33:49 +0000522 module numeric {
523 header "numeric"
524 export *
525 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000526 module optional {
527 header "optional"
528 export *
529 }
Richard Smith31cfef02014-05-21 00:33:49 +0000530 module ostream {
531 header "ostream"
532 // FIXME: should re-export ios, streambuf?
533 export *
534 }
535 module queue {
536 header "queue"
537 export initializer_list
538 export *
539 }
540 module random {
541 header "random"
542 export initializer_list
543 export *
Louis Dionnea60dd872021-06-17 11:30:11 -0400544
545 module __random {
546 module uniform_int_distribution { header "__random/uniform_int_distribution.h" }
547 }
Richard Smith31cfef02014-05-21 00:33:49 +0000548 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100549 module ranges {
550 header "ranges"
Christopher Di Bella66ce1292021-04-11 05:08:32 +0000551 export compare
552 export initializer_list
553 export iterator
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100554 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000555
556 module __ranges {
Christopher Di Bella8539fc62021-06-16 19:12:51 +0000557 module access { header "__ranges/access.h" }
Louis Dionnec46ba712021-06-22 13:47:32 -0400558 module all { header "__ranges/all.h" }
Christopher Di Bella8539fc62021-06-16 19:12:51 +0000559 module concepts { header "__ranges/concepts.h" }
560 module data { header "__ranges/data.h" }
561 module empty { header "__ranges/empty.h" }
562 module empty_view { header "__ranges/empty_view.h" }
563 module enable_borrowed_range { header "__ranges/enable_borrowed_range.h" }
564 module enable_view { header "__ranges/enable_view.h" }
565 module ref_view { header "__ranges/ref_view.h" }
566 module size { header "__ranges/size.h" }
567 module subrange { header "__ranges/subrange.h" }
568 module view_interface { header "__ranges/view_interface.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000569 }
Mark de Weveraf59b2d2020-11-24 18:08:02 +0100570 }
Richard Smith31cfef02014-05-21 00:33:49 +0000571 module ratio {
572 header "ratio"
573 export *
574 }
575 module regex {
576 header "regex"
577 export initializer_list
578 export *
579 }
580 module scoped_allocator {
581 header "scoped_allocator"
582 export *
583 }
Olivier Giroux161e6e82020-02-18 09:58:34 -0500584 module semaphore {
Raphael Isemann95e3ba22020-02-24 20:20:54 +0100585 requires cplusplus14
Olivier Giroux161e6e82020-02-18 09:58:34 -0500586 header "semaphore"
587 export *
588 }
Richard Smith31cfef02014-05-21 00:33:49 +0000589 module set {
590 header "set"
591 export initializer_list
592 export *
593 }
594 module sstream {
595 header "sstream"
596 // FIXME: should re-export istream, ostream, ios, streambuf, string?
597 export *
598 }
599 module stack {
600 header "stack"
601 export initializer_list
602 export *
603 }
604 module stdexcept {
605 header "stdexcept"
606 export *
607 }
608 module streambuf {
609 header "streambuf"
610 export *
611 }
612 module string {
613 header "string"
614 export initializer_list
Eric Fiselier2d357f72016-12-05 23:53:23 +0000615 export string_view
616 export __string
617 export *
618 }
619 module string_view {
620 header "string_view"
621 export initializer_list
622 export __string
Richard Smith31cfef02014-05-21 00:33:49 +0000623 export *
624 }
625 module strstream {
626 header "strstream"
Eric Fiselierbdc20862016-12-05 23:16:07 +0000627 export *
Richard Smith31cfef02014-05-21 00:33:49 +0000628 }
629 module system_error {
630 header "system_error"
631 export *
632 }
633 module thread {
634 header "thread"
635 export *
636 }
637 module tuple {
638 header "tuple"
639 export *
640 }
641 module type_traits {
642 header "type_traits"
643 export *
644 }
645 module typeindex {
646 header "typeindex"
647 export *
648 }
649 module typeinfo {
650 header "typeinfo"
651 export *
652 }
653 module unordered_map {
654 header "unordered_map"
655 export initializer_list
656 export *
657 }
658 module unordered_set {
659 header "unordered_set"
660 export initializer_list
661 export *
662 }
663 module utility {
664 header "utility"
665 export initializer_list
666 export *
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000667
668 module __utility {
Christopher Di Bella41f26e82021-06-05 02:47:47 +0000669 module __decay_copy { header "__utility/__decay_copy.h" }
670 module declval { header "__utility/declval.h" }
671 module forward { header "__utility/forward.h" }
672 module move { header "__utility/move.h" }
673 module swap { header "__utility/swap.h" }
674 module to_underlying { header "__utility/to_underlying.h" }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000675 }
Richard Smith31cfef02014-05-21 00:33:49 +0000676 }
677 module valarray {
678 header "valarray"
679 export initializer_list
680 export *
681 }
Eric Fiselier006458b2016-12-05 23:33:19 +0000682 module variant {
683 header "variant"
684 export *
685 }
Richard Smith31cfef02014-05-21 00:33:49 +0000686 module vector {
687 header "vector"
688 export initializer_list
689 export *
690 }
Eric Fiseliera604a7d2018-04-04 04:21:54 +0000691 module version {
692 header "version"
693 export *
694 }
Richard Smith31cfef02014-05-21 00:33:49 +0000695
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000696 // __config not modularised due to a bug in Clang
697 // __functional(_03)?_base not modularised since it's designed for textual inclusion
698 // libcpp_version not modularised since it's just a version number
Richard Smith31cfef02014-05-21 00:33:49 +0000699 // FIXME: These should be private.
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000700 module __availability { header "__availability" export * }
701 module __bit_reference { header "__bit_reference" export * }
702 module __bits { header "__bits" export * }
703 module __debug { header "__debug" export * }
704 module __errc { header "__errc" export * }
705 module __function_like { header "__function_like.h" export * }
706 module __functional_base { header "__functional_base" export * }
707 module __hash_table { header "__hash_table" export * }
708 module __locale { header "__locale" export * }
709 module __mutex_base { header "__mutex_base" export * }
710 module __node_handle { header "__node_handle" export * }
711 module __nullptr { header "__nullptr" export * }
712 module __split_buffer { header "__split_buffer" export * }
713 module __std_stream { header "__std_stream" export * }
714 module __string { header "__string" export * }
Petr Hosek5f4e91c2021-06-07 11:29:03 -0700715 module __threading_support { header "__threading_support" export * }
Christopher Di Bella02fbd4e2021-06-12 06:13:44 +0000716 module __tree { header "__tree" export * }
717 module __tuple { header "__tuple" export * }
718 module __undef_macros { header "__undef_macros" export * }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000719
720 module experimental {
Eric Fiselier92ae1af2016-12-06 01:34:24 +0000721 requires cplusplus11
722
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000723 module algorithm {
724 header "experimental/algorithm"
725 export *
726 }
Eric Fiselierf0426152017-05-25 23:39:29 +0000727 module coroutine {
Eric Fiseliere4a3dab2017-05-29 23:17:28 +0000728 requires coroutines
Eric Fiselierf0426152017-05-25 23:39:29 +0000729 header "experimental/coroutine"
730 export *
731 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000732 module deque {
733 header "experimental/deque"
734 export *
735 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000736 module filesystem {
737 header "experimental/filesystem"
738 export *
739 }
740 module forward_list {
741 header "experimental/forward_list"
742 export *
743 }
744 module functional {
745 header "experimental/functional"
746 export *
747 }
748 module iterator {
749 header "experimental/iterator"
750 export *
751 }
752 module list {
753 header "experimental/list"
754 export *
755 }
756 module map {
757 header "experimental/map"
758 export *
759 }
760 module memory_resource {
761 header "experimental/memory_resource"
762 export *
763 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000764 module propagate_const {
765 header "experimental/propagate_const"
766 export *
767 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000768 module regex {
769 header "experimental/regex"
770 export *
771 }
Tim Shen158e51b2018-04-23 21:54:06 +0000772 module simd {
773 header "experimental/simd"
774 export *
775 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000776 module set {
777 header "experimental/set"
778 export *
779 }
Marshall Clowd2ad87e2018-07-24 03:01:02 +0000780 module span {
781 header "span"
782 export *
783 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000784 module string {
785 header "experimental/string"
786 export *
787 }
Eric Fiselierb5b9e822016-12-05 23:55:34 +0000788 module type_traits {
789 header "experimental/type_traits"
790 export *
791 }
792 module unordered_map {
793 header "experimental/unordered_map"
794 export *
795 }
796 module unordered_set {
797 header "experimental/unordered_set"
798 export *
799 }
800 module utility {
801 header "experimental/utility"
802 export *
803 }
804 module vector {
805 header "experimental/vector"
806 export *
807 }
808 // FIXME these should be private
809 module __memory {
810 header "experimental/__memory"
811 export *
812 }
813 } // end experimental
Richard Smith31cfef02014-05-21 00:33:49 +0000814}