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
237 // No submodule for cassert. It fundamentally needs repeated, textual inclusion.
258 module condition_variable {
259 header "condition_variable"
264 export initializer_list
275 module forward_list {
276 header "forward_list"
277 export initializer_list
292 module initializer_list {
293 header "initializer_list"
319 // FIXME: should re-export ios, streambuf?
332 export initializer_list
341 export initializer_list
366 // FIXME: should re-export ios, streambuf?
371 export initializer_list
376 export initializer_list
385 export initializer_list
388 module scoped_allocator {
389 header "scoped_allocator"
394 export initializer_list
399 // FIXME: should re-export istream, ostream, ios, streambuf, string?
404 export initializer_list
417 export initializer_list
424 export initializer_list
432 module system_error {
433 header "system_error"
456 module unordered_map {
457 header "unordered_map"
458 export initializer_list
461 module unordered_set {
462 header "unordered_set"
463 export initializer_list
468 export initializer_list
473 export initializer_list
482 export initializer_list
490 // FIXME: These should be private.
491 module __bit_reference { header "__bit_reference" export * }
492 module __debug { header "__debug" export * }
493 module __errc { header "__errc" export * }
494 module __functional_base { header "__functional_base" export * }
495 module __hash_table { header "__hash_table" export * }
496 module __locale { header "__locale" export * }
497 module __mutex_base { header "__mutex_base" export * }
498 module __split_buffer { header "__split_buffer" export * }
499 module __sso_allocator { header "__sso_allocator" export * }
500 module __std_stream { header "__std_stream" export * }
501 module __string { header "__string" export * }
502 module __tree { header "__tree" export * }
503 module __tuple { header "__tuple" export * }
504 module __undef_macros { header "__undef_macros" export * }
505 module __node_handle { header "__node_handle" export * }
507 module experimental {
511 header "experimental/algorithm"
516 header "experimental/coroutine"
520 header "experimental/deque"
524 header "experimental/dynarray"
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