diff --git a/libcxx/include/module.modulemap.in b/libcxx/include/module.modulemap.in --- a/libcxx/include/module.modulemap.in +++ b/libcxx/include/module.modulemap.in @@ -31,7 +31,6 @@ // provided by compiler or C library. module inttypes_h { header "inttypes.h" - export stdint_h export * } // provided by compiler. @@ -71,10 +70,6 @@ module stdint_h { header "stdint.h" export * - // FIXME: This module only exists on OS X and for some reason the - // wildcard above doesn't export it. Removing this breaks the tests - // for C compatibility headers in C++17 mode with modules enabled. - export Darwin.C.stdint } module stdio_h { // 's __need_* macros require textual inclusion. @@ -112,13 +107,10 @@ // allow their use in extern "C" contexts. module complex_h { header "complex.h" - export ccomplex export * } module tgmath_h { header "tgmath.h" - export ccomplex - export cmath export * } @@ -130,7 +122,6 @@ } module ccomplex { header "ccomplex" - export complex export * } module cctype { @@ -151,7 +142,6 @@ } module cinttypes { header "cinttypes" - export cstdint export * } module ciso646 { @@ -194,7 +184,6 @@ } module cstdint { header "cstdint" - export depr.stdint_h export * } module cstdio { @@ -211,8 +200,6 @@ } module ctgmath { header "ctgmath" - export ccomplex - export cmath export * } module ctime { @@ -226,7 +213,6 @@ module cwchar { @requires_LIBCXX_ENABLE_WIDE_CHARACTERS@ header "cwchar" - export depr.stdio_h export * } module cwctype { @@ -238,7 +224,6 @@ module algorithm { header "algorithm" - export initializer_list export * module __algorithm { @@ -671,7 +656,6 @@ } module array { header "array" - export initializer_list export * module array_fwd { private header "__fwd/array.h" } @@ -731,8 +715,6 @@ } module bitset { header "bitset" - export string - export iosfwd export * } // No submodule for cassert. It fundamentally needs repeated, textual inclusion. @@ -883,7 +865,6 @@ } module deque { header "deque" - export initializer_list export * } module exception { @@ -992,7 +973,6 @@ } module forward_list { header "forward_list" - export initializer_list export * } module fstream { @@ -1003,8 +983,6 @@ } module functional { header "functional" - // the contents of __type_traits/unwrap_ref.h should be available from functional too. - export type_traits.unwrap_ref export * module __functional { @@ -1069,7 +1047,6 @@ module ios { @requires_LIBCXX_ENABLE_LOCALIZATION@ header "ios" - export iosfwd export * module __ios { @@ -1091,10 +1068,6 @@ module iostream { @requires_LIBCXX_ENABLE_LOCALIZATION@ header "iostream" - export ios - export streambuf - export istream - export ostream export * } module istream { @@ -1191,7 +1164,6 @@ } module list { header "list" - export initializer_list export * } module locale { @@ -1201,13 +1173,10 @@ } module map { header "map" - export initializer_list export * } module mdspan { header "mdspan" - export array - export span export * module __mdspan { @@ -1334,12 +1303,10 @@ } module queue { header "queue" - export initializer_list export * } module random { header "random" - export initializer_list export * module __random { @@ -1393,9 +1360,6 @@ } module ranges { header "ranges" - export compare - export initializer_list - export iterator export * module __ranges { @@ -1475,7 +1439,6 @@ module regex { @requires_LIBCXX_ENABLE_LOCALIZATION@ header "regex" - export initializer_list export * } module scoped_allocator { @@ -1489,7 +1452,6 @@ } module set { header "set" - export initializer_list export * } module shared_mutex { @@ -1515,7 +1477,6 @@ } module stack { header "stack" - export initializer_list export * } module stdexcept { @@ -1543,8 +1504,6 @@ } module string { header "string" - export initializer_list - export string_view module __string { module char_traits { private header "__string/char_traits.h" } module constexpr_c_functions { private header "__string/constexpr_c_functions.h" } @@ -1555,7 +1514,6 @@ } module string_view { header "string_view" - export initializer_list export * module string_view_fwd { private header "__fwd/string_view.h" } } @@ -1829,17 +1787,14 @@ } module unordered_map { header "unordered_map" - export initializer_list export * } module unordered_set { header "unordered_set" - export initializer_list export * } module utility { header "utility" - export initializer_list export * module __utility { @@ -1894,7 +1849,6 @@ } module valarray { header "valarray" - export initializer_list export * } module variant { @@ -1907,7 +1861,6 @@ } module vector { header "vector" - export initializer_list export * } module version { @@ -1937,7 +1890,6 @@ // This one needs to appear after __tree to work around issues with modules in Objective-C++ mode. module coroutine { header "coroutine" - export compare export * module __coroutine {