|
| 1 | +// -*- C++ -*- |
| 2 | +//===----------------------------------------------------------------------===// |
| 3 | +// |
| 4 | +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | +// See https://llvm.org/LICENSE.txt for license information. |
| 6 | +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 7 | +// |
| 8 | +//===----------------------------------------------------------------------===// |
| 9 | + |
| 10 | +// This header should not be directly included, it's exclusively to import all |
| 11 | +// of the libc++ public clang modules for the `std` clang module to export. In |
| 12 | +// other words, it's to facilitate `@import std;` in Objective-C++ and `import std` |
| 13 | +// in Swift to expose all of the libc++ interfaces. This is generally not |
| 14 | +// recommended, however there are some clients that need to import all of libc++ |
| 15 | +// without knowing what "all" is. |
| 16 | +#if !__building_module(std) |
| 17 | +# error "Do not include this header directly, include individual headers instead" |
| 18 | +#endif |
| 19 | + |
| 20 | +#include <__availability> |
| 21 | +#include <__config> |
| 22 | + |
| 23 | +#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 24 | +# pragma GCC system_header |
| 25 | +#endif |
| 26 | + |
| 27 | +#include <algorithm> |
| 28 | +#include <any> |
| 29 | +#include <array> |
| 30 | +#include <atomic> |
| 31 | +#include <bit> |
| 32 | +#include <bitset> |
| 33 | +#include <charconv> |
| 34 | +#include <chrono> |
| 35 | +#include <compare> |
| 36 | +#include <complex> |
| 37 | +#include <concepts> |
| 38 | +#include <condition_variable> |
| 39 | +#include <deque> |
| 40 | +#include <exception> |
| 41 | +#include <execution> |
| 42 | +#include <expected> |
| 43 | +#include <format> |
| 44 | +#include <forward_list> |
| 45 | +#include <functional> |
| 46 | +#include <initializer_list> |
| 47 | +#include <iosfwd> |
| 48 | +#include <iterator> |
| 49 | +#include <limits> |
| 50 | +#include <list> |
| 51 | +#include <map> |
| 52 | +#include <mdspan> |
| 53 | +#include <memory> |
| 54 | +#include <memory_resource> |
| 55 | +#include <new> |
| 56 | +#include <numbers> |
| 57 | +#include <numeric> |
| 58 | +#include <optional> |
| 59 | +#include <queue> |
| 60 | +#include <random> |
| 61 | +#include <ranges> |
| 62 | +#include <ratio> |
| 63 | +#include <scoped_allocator> |
| 64 | +#include <set> |
| 65 | +#include <source_location> |
| 66 | +#include <span> |
| 67 | +#include <stack> |
| 68 | +#include <stdexcept> |
| 69 | +#include <string> |
| 70 | +#include <string_view> |
| 71 | +#include <system_error> |
| 72 | +#include <tuple> |
| 73 | +#include <type_traits> |
| 74 | +#include <typeindex> |
| 75 | +#include <typeinfo> |
| 76 | +#include <unordered_map> |
| 77 | +#include <unordered_set> |
| 78 | +#include <utility> |
| 79 | +#include <valarray> |
| 80 | +#include <variant> |
| 81 | +#include <vector> |
| 82 | +#include <version> |
| 83 | + |
| 84 | +#include <cassert> |
| 85 | +#include <ccomplex> |
| 86 | +#include <cctype> |
| 87 | +#include <cerrno> |
| 88 | +#include <cfenv> |
| 89 | +#include <cfloat> |
| 90 | +#include <cinttypes> |
| 91 | +#include <ciso646> |
| 92 | +#include <climits> |
| 93 | +#include <cmath> |
| 94 | +#include <csetjmp> |
| 95 | +#include <csignal> |
| 96 | +#include <cstdarg> |
| 97 | +#include <cstdbool> |
| 98 | +#include <cstddef> |
| 99 | +#include <cstdint> |
| 100 | +#include <cstdio> |
| 101 | +#include <cstdlib> |
| 102 | +#include <cstring> |
| 103 | +#include <ctgmath> |
| 104 | +#include <ctime> |
| 105 | +#include <cuchar> |
| 106 | + |
| 107 | +#include <complex.h> |
| 108 | +#include <ctype.h> |
| 109 | +#include <errno.h> |
| 110 | +#include <fenv.h> |
| 111 | +#include <float.h> |
| 112 | +#include <inttypes.h> |
| 113 | +#include <limits.h> |
| 114 | +#include <math.h> |
| 115 | +#include <setjmp.h> |
| 116 | +#include <stdbool.h> |
| 117 | +#include <stddef.h> |
| 118 | +#include <stdint.h> |
| 119 | +#include <stdio.h> |
| 120 | +#include <stdlib.h> |
| 121 | +#include <string.h> |
| 122 | +#include <tgmath.h> |
| 123 | +#include <uchar.h> |
| 124 | + |
| 125 | +#ifndef _LIBCPP_HAS_NO_LOCALIZATION |
| 126 | +# include <codecvt> |
| 127 | +# ifndef _LIBCPP_HAS_NO_FILESYSTEM |
| 128 | +# include <fstream> |
| 129 | +# endif |
| 130 | +# include <iomanip> |
| 131 | +# include <ios> |
| 132 | +# include <iostream> |
| 133 | +# include <istream> |
| 134 | +# include <locale> |
| 135 | +# include <ostream> |
| 136 | +# include <regex> |
| 137 | +# include <sstream> |
| 138 | +# include <streambuf> |
| 139 | +# include <strstream> |
| 140 | + |
| 141 | +# include <clocale> |
| 142 | + |
| 143 | +# include <locale.h> |
| 144 | +#endif |
| 145 | + |
| 146 | +#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS |
| 147 | +# include <cwchar> |
| 148 | +# include <cwctype> |
| 149 | + |
| 150 | +# include <wchar.h> |
| 151 | +# include <wctype.h> |
| 152 | +#endif |
| 153 | + |
| 154 | +#ifdef _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT |
| 155 | +# include <print> |
| 156 | +#endif |
| 157 | + |
| 158 | +#ifndef _LIBCPP_CXX03_LANG |
| 159 | +# ifndef _LIBCPP_HAS_NO_THREADS |
| 160 | +# include <future> |
| 161 | +# include <mutex> |
| 162 | +# include <thread> |
| 163 | +# endif |
| 164 | + |
| 165 | +# include <experimental/deque> |
| 166 | +# include <experimental/forward_list> |
| 167 | +# include <experimental/iterator> |
| 168 | +# include <experimental/list> |
| 169 | +# include <experimental/map> |
| 170 | +# include <experimental/memory_resource> |
| 171 | +# include <experimental/propagate_const> |
| 172 | +# ifndef _LIBCPP_HAS_NO_LOCALIZATION |
| 173 | +# include <experimental/regex> |
| 174 | +# endif |
| 175 | +# include <experimental/set> |
| 176 | +# include <experimental/simd> |
| 177 | +# include <experimental/string> |
| 178 | +# include <experimental/type_traits> |
| 179 | +# include <experimental/unordered_map> |
| 180 | +# include <experimental/unordered_set> |
| 181 | +# include <experimental/utility> |
| 182 | +# include <experimental/vector> |
| 183 | +#endif |
| 184 | + |
| 185 | +#if _LIBCPP_STD_VER >= 14 |
| 186 | +# ifndef _LIBCPP_HAS_NO_THREADS |
| 187 | +# include <shared_mutex> |
| 188 | +# endif |
| 189 | +#endif |
| 190 | + |
| 191 | +#if _LIBCPP_STD_VER >= 17 |
| 192 | +# ifndef _LIBCPP_HAS_NO_FILESYSTEM |
| 193 | +# include <filesystem> |
| 194 | +# endif |
| 195 | +#endif |
| 196 | + |
| 197 | +#if _LIBCPP_STD_VER >= 20 |
| 198 | +# include <coroutine> |
| 199 | + |
| 200 | +# ifndef _LIBCPP_HAS_NO_THREADS |
| 201 | +# include <barrier> |
| 202 | +# include <latch> |
| 203 | +# include <semaphore> |
| 204 | +# include <stop_token> |
| 205 | +# endif |
| 206 | +#endif |
| 207 | + |
| 208 | +#if _LIBCPP_STD_VER >= 23 |
| 209 | +# ifndef _LIBCPP_HAS_NO_THREADS |
| 210 | +# include <stdatomic.h> |
| 211 | +# endif |
| 212 | +#endif |
0 commit comments