1 // 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
4 module std_config [system] [extern_c] {
10 // 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++.
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.
27 // <fenv.h> provided by C library.
28 // <float.h> provided by compiler or C library.
34 // <iso646.h> provided by compiler.
35 // <limits.h> provided by compiler or C library.
48 // FIXME: <stdalign.h> is missing.
49 // <signal.h> provided by C library.
50 // <stdarg.h> provided by compiler.
51 // <stdbool.h> provided by compiler.
53 // <stddef.h>'s __need_* macros require textual inclusion.
54 textual header "stddef.h"
59 // FIXME: This module only exists on OS X and for some reason the
60 // wildcard above doesn't export it.
61 export Darwin.C.stdint
64 // <stdio.h>'s __need_* macros require textual inclusion.
65 textual header "stdio.h"
70 // <stdlib.h>'s __need_* macros require textual inclusion.
71 textual header "stdlib.h"
78 // FIXME: <uchar.h> is missing.
79 // <time.h> provided by C library.
81 // <wchar.h>'s __need_* macros require textual inclusion.
82 textual header "wchar.h"
91 // <complex.h> and <tgmath.h> are not C headers in any real sense, do not
92 // allow their use in extern "C" contexts.
105 // C compatibility headers.
108 // <cassert>'s use of NDEBUG requires textual inclusion.
109 textual header "cassert"
161 // FIXME: <cstdalign> is missing.
201 // FIXME: <cuchar> is missing.
215 export initializer_list
224 export initializer_list
241 // No submodule for cassert. It fundamentally needs repeated, textual inclusion.
262 module condition_variable {
263 header "condition_variable"
268 export initializer_list
279 module forward_list {
280 header "forward_list"
281 export initializer_list
296 module initializer_list {
297 header "initializer_list"
323 // FIXME: should re-export ios, streambuf?
336 export initializer_list
345 export initializer_list
370 // FIXME: should re-export ios, streambuf?
375 export initializer_list
380 export initializer_list
389 export initializer_list
392 module scoped_allocator {
393 header "scoped_allocator"
398 export initializer_list
403 // FIXME: should re-export istream, ostream, ios, streambuf, string?
408 export initializer_list
421 export initializer_list
428 export initializer_list
436 module system_error {
437 header "system_error"
460 module unordered_map {
461 header "unordered_map"
462 export initializer_list
465 module unordered_set {
466 header "unordered_set"
467 export initializer_list
472 export initializer_list
477 export initializer_list
486 export initializer_list
494 // FIXME: These should be private.
495 module __bit_reference { header "__bit_reference" export * }
496 module __debug { header "__debug" export * }
497 module __errc { header "__errc" export * }
498 module __functional_base { header "__functional_base" export * }
499 module __hash_table { header "__hash_table" export * }
500 module __locale { header "__locale" export * }
501 module __mutex_base { header "__mutex_base" export * }
502 module __split_buffer { header "__split_buffer" export * }
503 module __sso_allocator { header "__sso_allocator" export * }
504 module __std_stream { header "__std_stream" export * }
505 module __string { header "__string" export * }
506 module __tree { header "__tree" export * }
507 module __tuple { header "__tuple" export * }
508 module __undef_macros { header "__undef_macros" export * }
509 module __node_handle { header "__node_handle" export * }
511 module experimental {
515 header "experimental/algorithm"
520 header "experimental/coroutine"
524 header "experimental/deque"
528 header "experimental/filesystem"
531 module forward_list {
532 header "experimental/forward_list"
536 header "experimental/functional"
540 header "experimental/iterator"
544 header "experimental/list"
548 header "experimental/map"
551 module memory_resource {
552 header "experimental/memory_resource"
555 module propagate_const {
556 header "experimental/propagate_const"
560 header "experimental/regex"
564 header "experimental/simd"
568 header "experimental/set"
576 header "experimental/string"
580 header "experimental/type_traits"
583 module unordered_map {
584 header "experimental/unordered_map"
587 module unordered_set {
588 header "experimental/unordered_set"
592 header "experimental/utility"
596 header "experimental/vector"
599 // FIXME these should be private
601 header "experimental/__memory"
604 } // end experimental