Eric Fiselier | 62b959c | 2016-12-08 06:37:41 +0000 | [diff] [blame] | 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 |
| 3 | // include cycle. |
| 4 | module std_config [system] [extern_c] { |
| 5 | header "__config" |
| 6 | } |
| 7 | |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 8 | module std [system] { |
Eric Fiselier | 62b959c | 2016-12-08 06:37:41 +0000 | [diff] [blame] | 9 | export std_config |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 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++. |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 14 | |
| 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 Fiselier | 5dddf72 | 2019-02-11 23:47:19 +0000 | [diff] [blame] | 27 | module fenv_h { |
| 28 | header "fenv.h" |
| 29 | export * |
| 30 | } |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 31 | // <float.h> provided by compiler or C library. |
| 32 | module inttypes_h { |
| 33 | header "inttypes.h" |
| 34 | export stdint_h |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 35 | export * |
| 36 | } |
| 37 | // <iso646.h> provided by compiler. |
| 38 | // <limits.h> provided by compiler or C library. |
Eric Fiselier | c621333 | 2016-11-19 01:14:15 +0000 | [diff] [blame] | 39 | module locale_h { |
| 40 | header "locale.h" |
Eric Fiselier | c621333 | 2016-11-19 01:14:15 +0000 | [diff] [blame] | 41 | export * |
| 42 | } |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 43 | module math_h { |
| 44 | header "math.h" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 45 | export * |
| 46 | } |
| 47 | module setjmp_h { |
| 48 | header "setjmp.h" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 49 | export * |
| 50 | } |
| 51 | // FIXME: <stdalign.h> is missing. |
| 52 | // <signal.h> provided by C library. |
| 53 | // <stdarg.h> provided by compiler. |
Eric Fiselier | 5163fa1 | 2016-12-06 09:48:32 +0000 | [diff] [blame] | 54 | // <stdbool.h> provided by compiler. |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 55 | module stddef_h { |
| 56 | // <stddef.h>'s __need_* macros require textual inclusion. |
| 57 | textual header "stddef.h" |
| 58 | } |
Eric Fiselier | cbda4fb | 2016-11-22 20:05:19 +0000 | [diff] [blame] | 59 | 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 Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 66 | module stdio_h { |
| 67 | // <stdio.h>'s __need_* macros require textual inclusion. |
| 68 | textual header "stdio.h" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 69 | export * |
Eric Fiselier | 3b73309 | 2016-12-06 07:40:46 +0000 | [diff] [blame] | 70 | export Darwin.C.stdio |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 71 | } |
| 72 | module stdlib_h { |
| 73 | // <stdlib.h>'s __need_* macros require textual inclusion. |
| 74 | textual header "stdlib.h" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 75 | export * |
| 76 | } |
| 77 | module string_h { |
| 78 | header "string.h" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 79 | 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 Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 86 | export * |
| 87 | } |
| 88 | module wctype_h { |
| 89 | header "wctype.h" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 90 | 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 Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 125 | export * |
| 126 | } |
| 127 | module cfenv { |
| 128 | header "cfenv" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 129 | export * |
| 130 | } |
| 131 | module cfloat { |
| 132 | header "cfloat" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 133 | export * |
| 134 | } |
| 135 | module cinttypes { |
| 136 | header "cinttypes" |
| 137 | export cstdint |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 138 | export * |
| 139 | } |
| 140 | module ciso646 { |
| 141 | header "ciso646" |
| 142 | export * |
| 143 | } |
| 144 | module climits { |
| 145 | header "climits" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 146 | export * |
| 147 | } |
| 148 | module clocale { |
| 149 | header "clocale" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 150 | export * |
| 151 | } |
| 152 | module cmath { |
| 153 | header "cmath" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 154 | export * |
| 155 | } |
| 156 | module csetjmp { |
| 157 | header "csetjmp" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 158 | export * |
| 159 | } |
| 160 | module csignal { |
| 161 | header "csignal" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 162 | export * |
| 163 | } |
| 164 | // FIXME: <cstdalign> is missing. |
| 165 | module cstdarg { |
| 166 | header "cstdarg" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 167 | export * |
| 168 | } |
| 169 | module cstdbool { |
| 170 | header "cstdbool" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 171 | export * |
| 172 | } |
| 173 | module cstddef { |
| 174 | header "cstddef" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 175 | export * |
| 176 | } |
| 177 | module cstdint { |
| 178 | header "cstdint" |
Eric Fiselier | cbda4fb | 2016-11-22 20:05:19 +0000 | [diff] [blame] | 179 | export depr.stdint_h |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 180 | export * |
| 181 | } |
| 182 | module cstdio { |
| 183 | header "cstdio" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 184 | export * |
| 185 | } |
| 186 | module cstdlib { |
| 187 | header "cstdlib" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 188 | export * |
| 189 | } |
| 190 | module cstring { |
| 191 | header "cstring" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 192 | 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 Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 202 | export * |
| 203 | } |
| 204 | // FIXME: <cuchar> is missing. |
| 205 | module cwchar { |
| 206 | header "cwchar" |
Eric Fiselier | 3b73309 | 2016-12-06 07:40:46 +0000 | [diff] [blame] | 207 | export depr.stdio_h |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 208 | export * |
| 209 | } |
| 210 | module cwctype { |
| 211 | header "cwctype" |
Bruno Cardoso Lopes | 7fd29e0 | 2016-10-21 03:14:27 +0000 | [diff] [blame] | 212 | export * |
| 213 | } |
| 214 | } |
| 215 | |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 216 | module algorithm { |
| 217 | header "algorithm" |
| 218 | export initializer_list |
| 219 | export * |
Louis Dionne | a60dd87 | 2021-06-17 11:30:11 -0400 | [diff] [blame] | 220 | |
| 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 Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 314 | } |
Eric Fiselier | 006458b | 2016-12-05 23:33:19 +0000 | [diff] [blame] | 315 | module any { |
| 316 | header "any" |
| 317 | export * |
| 318 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 319 | module array { |
| 320 | header "array" |
| 321 | export initializer_list |
| 322 | export * |
| 323 | } |
| 324 | module atomic { |
| 325 | header "atomic" |
| 326 | export * |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 327 | } |
Olivier Giroux | 161e6e8 | 2020-02-18 09:58:34 -0500 | [diff] [blame] | 328 | module barrier { |
Raphael Isemann | 95e3ba2 | 2020-02-24 20:20:54 +0100 | [diff] [blame] | 329 | requires cplusplus14 |
Olivier Giroux | 161e6e8 | 2020-02-18 09:58:34 -0500 | [diff] [blame] | 330 | header "barrier" |
| 331 | export * |
| 332 | } |
Marshall Clow | bf32ec9 | 2018-08-17 16:07:48 +0000 | [diff] [blame] | 333 | module bit { |
| 334 | header "bit" |
| 335 | export * |
| 336 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 337 | 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 Yuan | 7bf1905 | 2018-08-01 02:38:30 +0000 | [diff] [blame] | 344 | module charconv { |
| 345 | header "charconv" |
| 346 | export * |
| 347 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 348 | module chrono { |
| 349 | header "chrono" |
| 350 | export * |
| 351 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 352 | module codecvt { |
| 353 | header "codecvt" |
| 354 | export * |
| 355 | } |
Eric Fiselier | e0074fc | 2018-04-06 21:37:23 +0000 | [diff] [blame] | 356 | module compare { |
| 357 | header "compare" |
| 358 | export * |
| 359 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 360 | module complex { |
| 361 | header "complex" |
| 362 | export * |
| 363 | } |
Eric Fiselier | d59a032 | 2020-04-08 18:00:13 -0400 | [diff] [blame] | 364 | module concepts { |
| 365 | header "concepts" |
| 366 | export * |
| 367 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 368 | module condition_variable { |
| 369 | header "condition_variable" |
| 370 | export * |
| 371 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 372 | module deque { |
| 373 | header "deque" |
| 374 | export initializer_list |
| 375 | export * |
| 376 | } |
| 377 | module exception { |
| 378 | header "exception" |
| 379 | export * |
| 380 | } |
Louis Dionne | 59d0b3c | 2019-08-05 18:29:14 +0000 | [diff] [blame] | 381 | module execution { |
| 382 | header "execution" |
| 383 | export * |
| 384 | } |
Eric Fiselier | 02cea5e | 2018-07-27 03:07:09 +0000 | [diff] [blame] | 385 | module filesystem { |
| 386 | header "filesystem" |
| 387 | export * |
| 388 | } |
Mark de Wever | df5fd83 | 2020-11-26 19:12:18 +0100 | [diff] [blame] | 389 | module format { |
| 390 | header "format" |
| 391 | export * |
Christopher Di Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 392 | |
| 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 Wever | df5fd83 | 2020-11-26 19:12:18 +0100 | [diff] [blame] | 397 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 398 | 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 Dionne | a60dd87 | 2021-06-17 11:30:11 -0400 | [diff] [blame] | 410 | module __functional { |
| 411 | module search { header "__functional/search.h" } |
| 412 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 413 | } |
| 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 Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 451 | |
| 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" } |
zoecarver | 31f4f5d | 2021-05-18 16:18:18 -0700 | [diff] [blame^] | 458 | module iter_swap { header "__iterator/iter_swap.h" } |
Christopher Di Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 459 | 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 Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 465 | } |
Olivier Giroux | 161e6e8 | 2020-02-18 09:58:34 -0500 | [diff] [blame] | 466 | module latch { |
Raphael Isemann | 95e3ba2 | 2020-02-24 20:20:54 +0100 | [diff] [blame] | 467 | requires cplusplus14 |
Olivier Giroux | 161e6e8 | 2020-02-18 09:58:34 -0500 | [diff] [blame] | 468 | header "latch" |
| 469 | export * |
| 470 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 471 | 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 Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 492 | |
| 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 Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 509 | } |
| 510 | module mutex { |
| 511 | header "mutex" |
| 512 | export * |
| 513 | } |
| 514 | module new { |
| 515 | header "new" |
| 516 | export * |
| 517 | } |
Raul Tambre | afcedea | 2020-06-19 12:43:33 +0530 | [diff] [blame] | 518 | module numbers { |
| 519 | header "numbers" |
| 520 | export * |
| 521 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 522 | module numeric { |
| 523 | header "numeric" |
| 524 | export * |
| 525 | } |
Eric Fiselier | 006458b | 2016-12-05 23:33:19 +0000 | [diff] [blame] | 526 | module optional { |
| 527 | header "optional" |
| 528 | export * |
| 529 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 530 | 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 Dionne | a60dd87 | 2021-06-17 11:30:11 -0400 | [diff] [blame] | 544 | |
| 545 | module __random { |
| 546 | module uniform_int_distribution { header "__random/uniform_int_distribution.h" } |
| 547 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 548 | } |
Mark de Wever | af59b2d | 2020-11-24 18:08:02 +0100 | [diff] [blame] | 549 | module ranges { |
| 550 | header "ranges" |
Christopher Di Bella | 66ce129 | 2021-04-11 05:08:32 +0000 | [diff] [blame] | 551 | export compare |
| 552 | export initializer_list |
| 553 | export iterator |
Mark de Wever | af59b2d | 2020-11-24 18:08:02 +0100 | [diff] [blame] | 554 | export * |
Christopher Di Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 555 | |
| 556 | module __ranges { |
Christopher Di Bella | 8539fc6 | 2021-06-16 19:12:51 +0000 | [diff] [blame] | 557 | module access { header "__ranges/access.h" } |
| 558 | module concepts { header "__ranges/concepts.h" } |
| 559 | module data { header "__ranges/data.h" } |
| 560 | module empty { header "__ranges/empty.h" } |
| 561 | module empty_view { header "__ranges/empty_view.h" } |
| 562 | module enable_borrowed_range { header "__ranges/enable_borrowed_range.h" } |
| 563 | module enable_view { header "__ranges/enable_view.h" } |
| 564 | module ref_view { header "__ranges/ref_view.h" } |
| 565 | module size { header "__ranges/size.h" } |
| 566 | module subrange { header "__ranges/subrange.h" } |
| 567 | module view_interface { header "__ranges/view_interface.h" } |
Christopher Di Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 568 | } |
Mark de Wever | af59b2d | 2020-11-24 18:08:02 +0100 | [diff] [blame] | 569 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 570 | module ratio { |
| 571 | header "ratio" |
| 572 | export * |
| 573 | } |
| 574 | module regex { |
| 575 | header "regex" |
| 576 | export initializer_list |
| 577 | export * |
| 578 | } |
| 579 | module scoped_allocator { |
| 580 | header "scoped_allocator" |
| 581 | export * |
| 582 | } |
Olivier Giroux | 161e6e8 | 2020-02-18 09:58:34 -0500 | [diff] [blame] | 583 | module semaphore { |
Raphael Isemann | 95e3ba2 | 2020-02-24 20:20:54 +0100 | [diff] [blame] | 584 | requires cplusplus14 |
Olivier Giroux | 161e6e8 | 2020-02-18 09:58:34 -0500 | [diff] [blame] | 585 | header "semaphore" |
| 586 | export * |
| 587 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 588 | module set { |
| 589 | header "set" |
| 590 | export initializer_list |
| 591 | export * |
| 592 | } |
| 593 | module sstream { |
| 594 | header "sstream" |
| 595 | // FIXME: should re-export istream, ostream, ios, streambuf, string? |
| 596 | export * |
| 597 | } |
| 598 | module stack { |
| 599 | header "stack" |
| 600 | export initializer_list |
| 601 | export * |
| 602 | } |
| 603 | module stdexcept { |
| 604 | header "stdexcept" |
| 605 | export * |
| 606 | } |
| 607 | module streambuf { |
| 608 | header "streambuf" |
| 609 | export * |
| 610 | } |
| 611 | module string { |
| 612 | header "string" |
| 613 | export initializer_list |
Eric Fiselier | 2d357f7 | 2016-12-05 23:53:23 +0000 | [diff] [blame] | 614 | export string_view |
| 615 | export __string |
| 616 | export * |
| 617 | } |
| 618 | module string_view { |
| 619 | header "string_view" |
| 620 | export initializer_list |
| 621 | export __string |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 622 | export * |
| 623 | } |
| 624 | module strstream { |
| 625 | header "strstream" |
Eric Fiselier | bdc2086 | 2016-12-05 23:16:07 +0000 | [diff] [blame] | 626 | export * |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 627 | } |
| 628 | module system_error { |
| 629 | header "system_error" |
| 630 | export * |
| 631 | } |
| 632 | module thread { |
| 633 | header "thread" |
| 634 | export * |
| 635 | } |
| 636 | module tuple { |
| 637 | header "tuple" |
| 638 | export * |
| 639 | } |
| 640 | module type_traits { |
| 641 | header "type_traits" |
| 642 | export * |
| 643 | } |
| 644 | module typeindex { |
| 645 | header "typeindex" |
| 646 | export * |
| 647 | } |
| 648 | module typeinfo { |
| 649 | header "typeinfo" |
| 650 | export * |
| 651 | } |
| 652 | module unordered_map { |
| 653 | header "unordered_map" |
| 654 | export initializer_list |
| 655 | export * |
| 656 | } |
| 657 | module unordered_set { |
| 658 | header "unordered_set" |
| 659 | export initializer_list |
| 660 | export * |
| 661 | } |
| 662 | module utility { |
| 663 | header "utility" |
| 664 | export initializer_list |
| 665 | export * |
Christopher Di Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 666 | |
| 667 | module __utility { |
| 668 | module to_underlying { |
| 669 | header "__utility/to_underlying.h" |
| 670 | } |
| 671 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 672 | } |
| 673 | module valarray { |
| 674 | header "valarray" |
| 675 | export initializer_list |
| 676 | export * |
| 677 | } |
Eric Fiselier | 006458b | 2016-12-05 23:33:19 +0000 | [diff] [blame] | 678 | module variant { |
| 679 | header "variant" |
| 680 | export * |
| 681 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 682 | module vector { |
| 683 | header "vector" |
| 684 | export initializer_list |
| 685 | export * |
| 686 | } |
Eric Fiselier | a604a7d | 2018-04-04 04:21:54 +0000 | [diff] [blame] | 687 | module version { |
| 688 | header "version" |
| 689 | export * |
| 690 | } |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 691 | |
Christopher Di Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 692 | // __config not modularised due to a bug in Clang |
| 693 | // __functional(_03)?_base not modularised since it's designed for textual inclusion |
| 694 | // libcpp_version not modularised since it's just a version number |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 695 | // FIXME: These should be private. |
Christopher Di Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 696 | module __availability { header "__availability" export * } |
| 697 | module __bit_reference { header "__bit_reference" export * } |
| 698 | module __bits { header "__bits" export * } |
| 699 | module __debug { header "__debug" export * } |
| 700 | module __errc { header "__errc" export * } |
| 701 | module __function_like { header "__function_like.h" export * } |
| 702 | module __functional_base { header "__functional_base" export * } |
| 703 | module __hash_table { header "__hash_table" export * } |
| 704 | module __locale { header "__locale" export * } |
| 705 | module __mutex_base { header "__mutex_base" export * } |
| 706 | module __node_handle { header "__node_handle" export * } |
| 707 | module __nullptr { header "__nullptr" export * } |
| 708 | module __split_buffer { header "__split_buffer" export * } |
| 709 | module __std_stream { header "__std_stream" export * } |
| 710 | module __string { header "__string" export * } |
Petr Hosek | 5f4e91c | 2021-06-07 11:29:03 -0700 | [diff] [blame] | 711 | module __threading_support { header "__threading_support" export * } |
Christopher Di Bella | 02fbd4e | 2021-06-12 06:13:44 +0000 | [diff] [blame] | 712 | module __tree { header "__tree" export * } |
| 713 | module __tuple { header "__tuple" export * } |
| 714 | module __undef_macros { header "__undef_macros" export * } |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 715 | |
| 716 | module experimental { |
Eric Fiselier | 92ae1af | 2016-12-06 01:34:24 +0000 | [diff] [blame] | 717 | requires cplusplus11 |
| 718 | |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 719 | module algorithm { |
| 720 | header "experimental/algorithm" |
| 721 | export * |
| 722 | } |
Eric Fiselier | f042615 | 2017-05-25 23:39:29 +0000 | [diff] [blame] | 723 | module coroutine { |
Eric Fiselier | e4a3dab | 2017-05-29 23:17:28 +0000 | [diff] [blame] | 724 | requires coroutines |
Eric Fiselier | f042615 | 2017-05-25 23:39:29 +0000 | [diff] [blame] | 725 | header "experimental/coroutine" |
| 726 | export * |
| 727 | } |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 728 | module deque { |
| 729 | header "experimental/deque" |
| 730 | export * |
| 731 | } |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 732 | module filesystem { |
| 733 | header "experimental/filesystem" |
| 734 | export * |
| 735 | } |
| 736 | module forward_list { |
| 737 | header "experimental/forward_list" |
| 738 | export * |
| 739 | } |
| 740 | module functional { |
| 741 | header "experimental/functional" |
| 742 | export * |
| 743 | } |
| 744 | module iterator { |
| 745 | header "experimental/iterator" |
| 746 | export * |
| 747 | } |
| 748 | module list { |
| 749 | header "experimental/list" |
| 750 | export * |
| 751 | } |
| 752 | module map { |
| 753 | header "experimental/map" |
| 754 | export * |
| 755 | } |
| 756 | module memory_resource { |
| 757 | header "experimental/memory_resource" |
| 758 | export * |
| 759 | } |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 760 | module propagate_const { |
| 761 | header "experimental/propagate_const" |
| 762 | export * |
| 763 | } |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 764 | module regex { |
| 765 | header "experimental/regex" |
| 766 | export * |
| 767 | } |
Tim Shen | 158e51b | 2018-04-23 21:54:06 +0000 | [diff] [blame] | 768 | module simd { |
| 769 | header "experimental/simd" |
| 770 | export * |
| 771 | } |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 772 | module set { |
| 773 | header "experimental/set" |
| 774 | export * |
| 775 | } |
Marshall Clow | d2ad87e | 2018-07-24 03:01:02 +0000 | [diff] [blame] | 776 | module span { |
| 777 | header "span" |
| 778 | export * |
| 779 | } |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 780 | module string { |
| 781 | header "experimental/string" |
| 782 | export * |
| 783 | } |
Eric Fiselier | b5b9e82 | 2016-12-05 23:55:34 +0000 | [diff] [blame] | 784 | module type_traits { |
| 785 | header "experimental/type_traits" |
| 786 | export * |
| 787 | } |
| 788 | module unordered_map { |
| 789 | header "experimental/unordered_map" |
| 790 | export * |
| 791 | } |
| 792 | module unordered_set { |
| 793 | header "experimental/unordered_set" |
| 794 | export * |
| 795 | } |
| 796 | module utility { |
| 797 | header "experimental/utility" |
| 798 | export * |
| 799 | } |
| 800 | module vector { |
| 801 | header "experimental/vector" |
| 802 | export * |
| 803 | } |
| 804 | // FIXME these should be private |
| 805 | module __memory { |
| 806 | header "experimental/__memory" |
| 807 | export * |
| 808 | } |
| 809 | } // end experimental |
Richard Smith | 31cfef0 | 2014-05-21 00:33:49 +0000 | [diff] [blame] | 810 | } |