diff --git a/libcxx/include/__debug b/libcxx/include/__debug --- a/libcxx/include/__debug +++ b/libcxx/include/__debug @@ -83,13 +83,13 @@ struct _C_node : public __c_node { - explicit _C_node(void* __c, __c_node* __n) + _LIBCPP_HIDE_FROM_ABI explicit _C_node(void* __c, __c_node* __n) : __c_node(__c, __n) {} - bool __dereferenceable(const void*) const override; - bool __decrementable(const void*) const override; - bool __addable(const void*, ptrdiff_t) const override; - bool __subscriptable(const void*, ptrdiff_t) const override; + _LIBCPP_HIDE_FROM_ABI bool __dereferenceable(const void*) const override; + _LIBCPP_HIDE_FROM_ABI bool __decrementable(const void*) const override; + _LIBCPP_HIDE_FROM_ABI bool __addable(const void*, ptrdiff_t) const override; + _LIBCPP_HIDE_FROM_ABI bool __subscriptable(const void*, ptrdiff_t) const override; }; template diff --git a/libcxx/test/libcxx/clang_tidy.gen.py b/libcxx/test/libcxx/clang_tidy.gen.py new file mode 100644 --- /dev/null +++ b/libcxx/test/libcxx/clang_tidy.gen.py @@ -0,0 +1,38 @@ +#===----------------------------------------------------------------------===## +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===----------------------------------------------------------------------===## + +# Run our custom libc++ clang-tidy checks on all public headers. + +# RUN: %{python} %s %{libcxx}/utils + +import sys +sys.path.append(sys.argv[1]) +from libcxx.test.header_information import header_restrictions, public_headers + +for header in public_headers: + BLOCKLIT = '' # block Lit from interpreting a RUN/XFAIL/etc inside the generation script + test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else '' + test_condition_end = '#endif' if header in header_restrictions else '' + + print(f"""\ +//--- {header}.sh.cpp + +// REQUIRES{BLOCKLIT}: has-clang-tidy + +// The GCC compiler flags are not always compatible with clang-tidy. +// UNSUPPORTED{BLOCKLIT}: gcc + +// TODO: run clang-tidy with modules enabled once they are supported +// RUN{BLOCKLIT}: %{{clang-tidy}} %s --warnings-as-errors=* -header-filter=.* --checks='-*,libcpp-*' --load=%{{test-tools}}/clang_tidy_checks/libcxx-tidy.plugin -- %{{compile_flags}} -fno-modules +// RUN{BLOCKLIT}: %{{clang-tidy}} %s --warnings-as-errors=* -header-filter=.* --config-file=%{{libcxx}}/.clang-tidy -- -Wweak-vtables %{{compile_flags}} -fno-modules + +#include <__config> +{test_condition_begin} +#include <{header}> +{test_condition_end} +""") diff --git a/libcxx/test/libcxx/clang_tidy.sh.cpp b/libcxx/test/libcxx/clang_tidy.sh.cpp deleted file mode 100644 --- a/libcxx/test/libcxx/clang_tidy.sh.cpp +++ /dev/null @@ -1,261 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// REQUIRES: has-clang-tidy - -// The GCC compiler flags are not always compatible with clang-tidy. -// UNSUPPORTED: gcc - -// TODO: run clang-tidy with modules enabled once they are supported -// RUN: %{clang-tidy} %s --warnings-as-errors=* -header-filter=.* --checks='-*,libcpp-*' --load=%{test-tools}/clang_tidy_checks/libcxx-tidy.plugin -- %{compile_flags} -fno-modules -// RUN: %{clang-tidy} %s --warnings-as-errors=* -header-filter=.* --config-file=%S/../../.clang-tidy -- -Wweak-vtables %{compile_flags} -fno-modules - -/* -BEGIN-SCRIPT - -for header in public_headers: - print("{}#{}include <{}>{}".format( - '#if ' + header_restrictions[header] + '\n' if header in header_restrictions else '', - 3 * ' ' if header in header_restrictions else '', - header, - '\n#endif' if header in header_restrictions else '' - )) - -END-SCRIPT -*/ - -// DO NOT MANUALLY EDIT ANYTHING BETWEEN THE MARKERS BELOW -// GENERATED-MARKER -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#include -#if (defined(__cpp_impl_coroutine) && __cpp_impl_coroutine >= 201902L) || (defined(__cpp_coroutines) && __cpp_coroutines >= 201703L) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && !defined(_LIBCPP_HAS_NO_FSTREAM) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if __cplusplus > 202002L && !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -// GENERATED-MARKER diff --git a/libcxx/test/libcxx/double_include.gen.py b/libcxx/test/libcxx/double_include.gen.py new file mode 100644 --- /dev/null +++ b/libcxx/test/libcxx/double_include.gen.py @@ -0,0 +1,40 @@ +#===----------------------------------------------------------------------===## +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===----------------------------------------------------------------------===## + +# Test that we can include each header in two TU's and link them together. + +# RUN: %{python} %s %{libcxx}/utils + +import sys +sys.path.append(sys.argv[1]) +from libcxx.test.header_information import header_restrictions, public_headers + +BLOCKLIT = '' # block Lit from interpreting a RUN/XFAIL/etc inside the generation script +print(f"""\ +//--- double_include.sh.cpp +// RUN{BLOCKLIT}: %{{cxx}} -c %s -o %t.first.o %{{flags}} %{{compile_flags}} +// RUN{BLOCKLIT}: %{{cxx}} -c %s -o %t.second.o -DWITH_MAIN %{{flags}} %{{compile_flags}} +// RUN{BLOCKLIT}: %{{cxx}} -o %t.exe %t.first.o %t.second.o %{{flags}} %{{link_flags}} +// RUN{BLOCKLIT}: %{{run}} +""") + +for header in public_headers: + test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else '' + test_condition_end = '#endif' if header in header_restrictions else '' + print(f"""\ +#include <__config> +{test_condition_begin} +#include <{header}> +{test_condition_end} +""") + +print(""" +#if defined(WITH_MAIN) +int main(int, char**) { return 0; } +#endif +""") diff --git a/libcxx/test/libcxx/double_include.sh.cpp b/libcxx/test/libcxx/double_include.sh.cpp deleted file mode 100644 --- a/libcxx/test/libcxx/double_include.sh.cpp +++ /dev/null @@ -1,263 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// Test that we can include each header in two TU's and link them together. - -// RUN: %{cxx} -c %s -o %t.first.o %{flags} %{compile_flags} -// RUN: %{cxx} -c %s -o %t.second.o -DWITH_MAIN %{flags} %{compile_flags} -// RUN: %{cxx} -o %t.exe %t.first.o %t.second.o %{flags} %{link_flags} -// RUN: %{run} - -/* -BEGIN-SCRIPT - -for header in public_headers: - print("{}#{}include <{}>{}".format( - '#if ' + header_restrictions[header] + '\n' if header in header_restrictions else '', - 3 * ' ' if header in header_restrictions else '', - header, - '\n#endif' if header in header_restrictions else '' - )) - -END-SCRIPT -*/ - -// DO NOT MANUALLY EDIT ANYTHING BETWEEN THE MARKERS BELOW -// GENERATED-MARKER -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#include -#if (defined(__cpp_impl_coroutine) && __cpp_impl_coroutine >= 201902L) || (defined(__cpp_coroutines) && __cpp_coroutines >= 201703L) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && !defined(_LIBCPP_HAS_NO_FSTREAM) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if __cplusplus > 202002L && !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -// GENERATED-MARKER - -#if defined(WITH_MAIN) -int main(int, char**) { return 0; } -#endif diff --git a/libcxx/test/libcxx/min_max_macros.compile.pass.cpp b/libcxx/test/libcxx/min_max_macros.compile.pass.cpp deleted file mode 100644 --- a/libcxx/test/libcxx/min_max_macros.compile.pass.cpp +++ /dev/null @@ -1,398 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// Test that headers are not tripped up by the surrounding code defining the -// min() and max() macros. - -#define TEST_MACROS() static_assert(min() == true && max() == true, "") -#define min() true -#define max() true - -/* -BEGIN-SCRIPT - -for header in public_headers: - print("{}#{}include <{}>\nTEST_MACROS();{}".format( - '#if ' + header_restrictions[header] + '\n' if header in header_restrictions else '', - 3 * ' ' if header in header_restrictions else '', - header, - '\n#endif' if header in header_restrictions else '' - )) - -END-SCRIPT -*/ - -// DO NOT MANUALLY EDIT ANYTHING BETWEEN THE MARKERS BELOW -// GENERATED-MARKER -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if (defined(__cpp_impl_coroutine) && __cpp_impl_coroutine >= 201902L) || (defined(__cpp_coroutines) && __cpp_coroutines >= 201703L) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -TEST_MACROS(); -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && !defined(_LIBCPP_HAS_NO_FSTREAM) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#if __cplusplus > 202002L && !defined(_LIBCPP_HAS_NO_THREADS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -TEST_MACROS(); -#endif -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#include -TEST_MACROS(); -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -TEST_MACROS(); -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -#if __cplusplus >= 201103L -# include -TEST_MACROS(); -#endif -// GENERATED-MARKER diff --git a/libcxx/test/libcxx/min_max_macros.gen.py b/libcxx/test/libcxx/min_max_macros.gen.py new file mode 100644 --- /dev/null +++ b/libcxx/test/libcxx/min_max_macros.gen.py @@ -0,0 +1,33 @@ +#===----------------------------------------------------------------------===## +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===----------------------------------------------------------------------===## + +# Test that headers are not tripped up by the surrounding code defining the +# min() and max() macros. + +# RUN: %{python} %s %{libcxx}/utils + +import sys +sys.path.append(sys.argv[1]) +from libcxx.test.header_information import header_restrictions, public_headers + +for header in public_headers: + test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else '' + test_condition_end = '#endif' if header in header_restrictions else '' + + print(f"""\ +//--- {header}.compile.pass.cpp +#define TEST_MACROS() static_assert(min() == true && max() == true, "") +#define min() true +#define max() true + +#include <__config> +{test_condition_begin} +#include <{header}> +TEST_MACROS(); +{test_condition_end} +""") diff --git a/libcxx/test/libcxx/modules_include.gen.py b/libcxx/test/libcxx/modules_include.gen.py new file mode 100644 --- /dev/null +++ b/libcxx/test/libcxx/modules_include.gen.py @@ -0,0 +1,45 @@ +#===----------------------------------------------------------------------===## +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===----------------------------------------------------------------------===## + +# Test that we can include each header in a TU while using modules. +# This is important notably because the LLDB data formatters use +# libc++ headers with modules enabled. + +# RUN: %{python} %s %{libcxx}/utils + +import sys +sys.path.append(sys.argv[1]) +from libcxx.test.header_information import header_restrictions, public_headers + +for header in public_headers: + BLOCKLIT = '' # block Lit from interpreting a RUN/XFAIL/etc inside the generation script + test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else '' + test_condition_end = '#endif' if header in header_restrictions else '' + + print(f"""\ +//--- {header}.compile.pass.cpp +// RUN{BLOCKLIT}: %{{cxx}} %s %{{flags}} %{{compile_flags}} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only + +// GCC doesn't support -fcxx-modules +// UNSUPPORTED{BLOCKLIT}: gcc + +// The Windows headers don't appear to be compatible with modules +// UNSUPPORTED{BLOCKLIT}: windows +// UNSUPPORTED{BLOCKLIT}: buildhost=windows + +// The Android headers don't appear to be compatible with modules yet +// XFAIL{BLOCKLIT}: LIBCXX-ANDROID-FIXME + +// TODO: Investigate this failure +// UNSUPPORTED{BLOCKLIT}: LIBCXX-FREEBSD-FIXME + +#include <__config> +{test_condition_begin} +#include <{header}> +{test_condition_end} +""") diff --git a/libcxx/test/libcxx/modules_include.sh.cpp b/libcxx/test/libcxx/modules_include.sh.cpp deleted file mode 100644 --- a/libcxx/test/libcxx/modules_include.sh.cpp +++ /dev/null @@ -1,889 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// Test that we can include each header in a TU while using modules. -// This is important notably because the LLDB data formatters use -// libc++ headers with modules enabled. - -// GCC doesn't support -fcxx-modules -// UNSUPPORTED: gcc - -// The Windows headers don't appear to be compatible with modules -// UNSUPPORTED: windows -// UNSUPPORTED: buildhost=windows - -// The Android headers don't appear to be compatible with modules yet -// XFAIL: LIBCXX-ANDROID-FIXME - -#include <__config> - -/* -BEGIN-SCRIPT - -for i, header in enumerate(public_headers): - print("// {}: echo '%{{cxx}} %s %{{flags}} %{{compile_flags}} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_{} &' >> %t.sh".format('RUN', i)) - print("// {}: echo 'TEST_{}=$!' >> %t.sh".format('RUN', i)) - if i >= 16: - print("// {}: echo \"wait $TEST_{}\" >> %t.sh".format('RUN', i - 16)) - if header in header_restrictions: - print("#if defined(TEST_{}) && {}".format(i, header_restrictions[header])) - else: - print("#if defined(TEST_{})".format(i)) - print("#include <{}>".format(header)) - print("#endif") - -for i in range(len(public_headers))[-16:]: - print("// {}: echo \"wait $TEST_{}\" >> %t.sh".format('RUN', i)) - -print("// {}: bash %t.sh".format('RUN')) - -END-SCRIPT -*/ - -// RUN: echo "" > %t.sh -// RUN: rm -rf %t -// RUN: mkdir %t - -// DO NOT MANUALLY EDIT ANYTHING BETWEEN THE MARKERS BELOW -// GENERATED-MARKER -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_0 &' >> %t.sh -// RUN: echo 'TEST_0=$!' >> %t.sh -#if defined(TEST_0) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_1 &' >> %t.sh -// RUN: echo 'TEST_1=$!' >> %t.sh -#if defined(TEST_1) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_2 &' >> %t.sh -// RUN: echo 'TEST_2=$!' >> %t.sh -#if defined(TEST_2) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_3 &' >> %t.sh -// RUN: echo 'TEST_3=$!' >> %t.sh -#if defined(TEST_3) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_4 &' >> %t.sh -// RUN: echo 'TEST_4=$!' >> %t.sh -#if defined(TEST_4) && !defined(_LIBCPP_HAS_NO_THREADS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_5 &' >> %t.sh -// RUN: echo 'TEST_5=$!' >> %t.sh -#if defined(TEST_5) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_6 &' >> %t.sh -// RUN: echo 'TEST_6=$!' >> %t.sh -#if defined(TEST_6) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_7 &' >> %t.sh -// RUN: echo 'TEST_7=$!' >> %t.sh -#if defined(TEST_7) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_8 &' >> %t.sh -// RUN: echo 'TEST_8=$!' >> %t.sh -#if defined(TEST_8) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_9 &' >> %t.sh -// RUN: echo 'TEST_9=$!' >> %t.sh -#if defined(TEST_9) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_10 &' >> %t.sh -// RUN: echo 'TEST_10=$!' >> %t.sh -#if defined(TEST_10) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_11 &' >> %t.sh -// RUN: echo 'TEST_11=$!' >> %t.sh -#if defined(TEST_11) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_12 &' >> %t.sh -// RUN: echo 'TEST_12=$!' >> %t.sh -#if defined(TEST_12) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_13 &' >> %t.sh -// RUN: echo 'TEST_13=$!' >> %t.sh -#if defined(TEST_13) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_14 &' >> %t.sh -// RUN: echo 'TEST_14=$!' >> %t.sh -#if defined(TEST_14) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_15 &' >> %t.sh -// RUN: echo 'TEST_15=$!' >> %t.sh -#if defined(TEST_15) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_16 &' >> %t.sh -// RUN: echo 'TEST_16=$!' >> %t.sh -// RUN: echo "wait $TEST_0" >> %t.sh -#if defined(TEST_16) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_17 &' >> %t.sh -// RUN: echo 'TEST_17=$!' >> %t.sh -// RUN: echo "wait $TEST_1" >> %t.sh -#if defined(TEST_17) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_18 &' >> %t.sh -// RUN: echo 'TEST_18=$!' >> %t.sh -// RUN: echo "wait $TEST_2" >> %t.sh -#if defined(TEST_18) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_19 &' >> %t.sh -// RUN: echo 'TEST_19=$!' >> %t.sh -// RUN: echo "wait $TEST_3" >> %t.sh -#if defined(TEST_19) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_20 &' >> %t.sh -// RUN: echo 'TEST_20=$!' >> %t.sh -// RUN: echo "wait $TEST_4" >> %t.sh -#if defined(TEST_20) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_21 &' >> %t.sh -// RUN: echo 'TEST_21=$!' >> %t.sh -// RUN: echo "wait $TEST_5" >> %t.sh -#if defined(TEST_21) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_22 &' >> %t.sh -// RUN: echo 'TEST_22=$!' >> %t.sh -// RUN: echo "wait $TEST_6" >> %t.sh -#if defined(TEST_22) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_23 &' >> %t.sh -// RUN: echo 'TEST_23=$!' >> %t.sh -// RUN: echo "wait $TEST_7" >> %t.sh -#if defined(TEST_23) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_24 &' >> %t.sh -// RUN: echo 'TEST_24=$!' >> %t.sh -// RUN: echo "wait $TEST_8" >> %t.sh -#if defined(TEST_24) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_25 &' >> %t.sh -// RUN: echo 'TEST_25=$!' >> %t.sh -// RUN: echo "wait $TEST_9" >> %t.sh -#if defined(TEST_25) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_26 &' >> %t.sh -// RUN: echo 'TEST_26=$!' >> %t.sh -// RUN: echo "wait $TEST_10" >> %t.sh -#if defined(TEST_26) && (defined(__cpp_impl_coroutine) && __cpp_impl_coroutine >= 201902L) || (defined(__cpp_coroutines) && __cpp_coroutines >= 201703L) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_27 &' >> %t.sh -// RUN: echo 'TEST_27=$!' >> %t.sh -// RUN: echo "wait $TEST_11" >> %t.sh -#if defined(TEST_27) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_28 &' >> %t.sh -// RUN: echo 'TEST_28=$!' >> %t.sh -// RUN: echo "wait $TEST_12" >> %t.sh -#if defined(TEST_28) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_29 &' >> %t.sh -// RUN: echo 'TEST_29=$!' >> %t.sh -// RUN: echo "wait $TEST_13" >> %t.sh -#if defined(TEST_29) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_30 &' >> %t.sh -// RUN: echo 'TEST_30=$!' >> %t.sh -// RUN: echo "wait $TEST_14" >> %t.sh -#if defined(TEST_30) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_31 &' >> %t.sh -// RUN: echo 'TEST_31=$!' >> %t.sh -// RUN: echo "wait $TEST_15" >> %t.sh -#if defined(TEST_31) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_32 &' >> %t.sh -// RUN: echo 'TEST_32=$!' >> %t.sh -// RUN: echo "wait $TEST_16" >> %t.sh -#if defined(TEST_32) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_33 &' >> %t.sh -// RUN: echo 'TEST_33=$!' >> %t.sh -// RUN: echo "wait $TEST_17" >> %t.sh -#if defined(TEST_33) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_34 &' >> %t.sh -// RUN: echo 'TEST_34=$!' >> %t.sh -// RUN: echo "wait $TEST_18" >> %t.sh -#if defined(TEST_34) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_35 &' >> %t.sh -// RUN: echo 'TEST_35=$!' >> %t.sh -// RUN: echo "wait $TEST_19" >> %t.sh -#if defined(TEST_35) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_36 &' >> %t.sh -// RUN: echo 'TEST_36=$!' >> %t.sh -// RUN: echo "wait $TEST_20" >> %t.sh -#if defined(TEST_36) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_37 &' >> %t.sh -// RUN: echo 'TEST_37=$!' >> %t.sh -// RUN: echo "wait $TEST_21" >> %t.sh -#if defined(TEST_37) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_38 &' >> %t.sh -// RUN: echo 'TEST_38=$!' >> %t.sh -// RUN: echo "wait $TEST_22" >> %t.sh -#if defined(TEST_38) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_39 &' >> %t.sh -// RUN: echo 'TEST_39=$!' >> %t.sh -// RUN: echo "wait $TEST_23" >> %t.sh -#if defined(TEST_39) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_40 &' >> %t.sh -// RUN: echo 'TEST_40=$!' >> %t.sh -// RUN: echo "wait $TEST_24" >> %t.sh -#if defined(TEST_40) && !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_41 &' >> %t.sh -// RUN: echo 'TEST_41=$!' >> %t.sh -// RUN: echo "wait $TEST_25" >> %t.sh -#if defined(TEST_41) && !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_42 &' >> %t.sh -// RUN: echo 'TEST_42=$!' >> %t.sh -// RUN: echo "wait $TEST_26" >> %t.sh -#if defined(TEST_42) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_43 &' >> %t.sh -// RUN: echo 'TEST_43=$!' >> %t.sh -// RUN: echo "wait $TEST_27" >> %t.sh -#if defined(TEST_43) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_44 &' >> %t.sh -// RUN: echo 'TEST_44=$!' >> %t.sh -// RUN: echo "wait $TEST_28" >> %t.sh -#if defined(TEST_44) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_45 &' >> %t.sh -// RUN: echo 'TEST_45=$!' >> %t.sh -// RUN: echo "wait $TEST_29" >> %t.sh -#if defined(TEST_45) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_46 &' >> %t.sh -// RUN: echo 'TEST_46=$!' >> %t.sh -// RUN: echo "wait $TEST_30" >> %t.sh -#if defined(TEST_46) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_47 &' >> %t.sh -// RUN: echo 'TEST_47=$!' >> %t.sh -// RUN: echo "wait $TEST_31" >> %t.sh -#if defined(TEST_47) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_48 &' >> %t.sh -// RUN: echo 'TEST_48=$!' >> %t.sh -// RUN: echo "wait $TEST_32" >> %t.sh -#if defined(TEST_48) && !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_49 &' >> %t.sh -// RUN: echo 'TEST_49=$!' >> %t.sh -// RUN: echo "wait $TEST_33" >> %t.sh -#if defined(TEST_49) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_50 &' >> %t.sh -// RUN: echo 'TEST_50=$!' >> %t.sh -// RUN: echo "wait $TEST_34" >> %t.sh -#if defined(TEST_50) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_51 &' >> %t.sh -// RUN: echo 'TEST_51=$!' >> %t.sh -// RUN: echo "wait $TEST_35" >> %t.sh -#if defined(TEST_51) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_52 &' >> %t.sh -// RUN: echo 'TEST_52=$!' >> %t.sh -// RUN: echo "wait $TEST_36" >> %t.sh -#if defined(TEST_52) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) && !defined(_LIBCPP_HAS_NO_FSTREAM) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_53 &' >> %t.sh -// RUN: echo 'TEST_53=$!' >> %t.sh -// RUN: echo "wait $TEST_37" >> %t.sh -#if defined(TEST_53) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_54 &' >> %t.sh -// RUN: echo 'TEST_54=$!' >> %t.sh -// RUN: echo "wait $TEST_38" >> %t.sh -#if defined(TEST_54) && !defined(_LIBCPP_HAS_NO_THREADS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_55 &' >> %t.sh -// RUN: echo 'TEST_55=$!' >> %t.sh -// RUN: echo "wait $TEST_39" >> %t.sh -#if defined(TEST_55) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_56 &' >> %t.sh -// RUN: echo 'TEST_56=$!' >> %t.sh -// RUN: echo "wait $TEST_40" >> %t.sh -#if defined(TEST_56) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_57 &' >> %t.sh -// RUN: echo 'TEST_57=$!' >> %t.sh -// RUN: echo "wait $TEST_41" >> %t.sh -#if defined(TEST_57) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_58 &' >> %t.sh -// RUN: echo 'TEST_58=$!' >> %t.sh -// RUN: echo "wait $TEST_42" >> %t.sh -#if defined(TEST_58) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_59 &' >> %t.sh -// RUN: echo 'TEST_59=$!' >> %t.sh -// RUN: echo "wait $TEST_43" >> %t.sh -#if defined(TEST_59) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_60 &' >> %t.sh -// RUN: echo 'TEST_60=$!' >> %t.sh -// RUN: echo "wait $TEST_44" >> %t.sh -#if defined(TEST_60) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_61 &' >> %t.sh -// RUN: echo 'TEST_61=$!' >> %t.sh -// RUN: echo "wait $TEST_45" >> %t.sh -#if defined(TEST_61) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_62 &' >> %t.sh -// RUN: echo 'TEST_62=$!' >> %t.sh -// RUN: echo "wait $TEST_46" >> %t.sh -#if defined(TEST_62) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_63 &' >> %t.sh -// RUN: echo 'TEST_63=$!' >> %t.sh -// RUN: echo "wait $TEST_47" >> %t.sh -#if defined(TEST_63) && !defined(_LIBCPP_HAS_NO_THREADS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_64 &' >> %t.sh -// RUN: echo 'TEST_64=$!' >> %t.sh -// RUN: echo "wait $TEST_48" >> %t.sh -#if defined(TEST_64) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_65 &' >> %t.sh -// RUN: echo 'TEST_65=$!' >> %t.sh -// RUN: echo "wait $TEST_49" >> %t.sh -#if defined(TEST_65) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_66 &' >> %t.sh -// RUN: echo 'TEST_66=$!' >> %t.sh -// RUN: echo "wait $TEST_50" >> %t.sh -#if defined(TEST_66) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_67 &' >> %t.sh -// RUN: echo 'TEST_67=$!' >> %t.sh -// RUN: echo "wait $TEST_51" >> %t.sh -#if defined(TEST_67) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_68 &' >> %t.sh -// RUN: echo 'TEST_68=$!' >> %t.sh -// RUN: echo "wait $TEST_52" >> %t.sh -#if defined(TEST_68) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_69 &' >> %t.sh -// RUN: echo 'TEST_69=$!' >> %t.sh -// RUN: echo "wait $TEST_53" >> %t.sh -#if defined(TEST_69) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_70 &' >> %t.sh -// RUN: echo 'TEST_70=$!' >> %t.sh -// RUN: echo "wait $TEST_54" >> %t.sh -#if defined(TEST_70) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_71 &' >> %t.sh -// RUN: echo 'TEST_71=$!' >> %t.sh -// RUN: echo "wait $TEST_55" >> %t.sh -#if defined(TEST_71) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_72 &' >> %t.sh -// RUN: echo 'TEST_72=$!' >> %t.sh -// RUN: echo "wait $TEST_56" >> %t.sh -#if defined(TEST_72) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_73 &' >> %t.sh -// RUN: echo 'TEST_73=$!' >> %t.sh -// RUN: echo "wait $TEST_57" >> %t.sh -#if defined(TEST_73) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_74 &' >> %t.sh -// RUN: echo 'TEST_74=$!' >> %t.sh -// RUN: echo "wait $TEST_58" >> %t.sh -#if defined(TEST_74) && !defined(_LIBCPP_HAS_NO_THREADS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_75 &' >> %t.sh -// RUN: echo 'TEST_75=$!' >> %t.sh -// RUN: echo "wait $TEST_59" >> %t.sh -#if defined(TEST_75) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_76 &' >> %t.sh -// RUN: echo 'TEST_76=$!' >> %t.sh -// RUN: echo "wait $TEST_60" >> %t.sh -#if defined(TEST_76) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_77 &' >> %t.sh -// RUN: echo 'TEST_77=$!' >> %t.sh -// RUN: echo "wait $TEST_61" >> %t.sh -#if defined(TEST_77) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_78 &' >> %t.sh -// RUN: echo 'TEST_78=$!' >> %t.sh -// RUN: echo "wait $TEST_62" >> %t.sh -#if defined(TEST_78) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_79 &' >> %t.sh -// RUN: echo 'TEST_79=$!' >> %t.sh -// RUN: echo "wait $TEST_63" >> %t.sh -#if defined(TEST_79) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_80 &' >> %t.sh -// RUN: echo 'TEST_80=$!' >> %t.sh -// RUN: echo "wait $TEST_64" >> %t.sh -#if defined(TEST_80) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_81 &' >> %t.sh -// RUN: echo 'TEST_81=$!' >> %t.sh -// RUN: echo "wait $TEST_65" >> %t.sh -#if defined(TEST_81) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_82 &' >> %t.sh -// RUN: echo 'TEST_82=$!' >> %t.sh -// RUN: echo "wait $TEST_66" >> %t.sh -#if defined(TEST_82) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_83 &' >> %t.sh -// RUN: echo 'TEST_83=$!' >> %t.sh -// RUN: echo "wait $TEST_67" >> %t.sh -#if defined(TEST_83) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_84 &' >> %t.sh -// RUN: echo 'TEST_84=$!' >> %t.sh -// RUN: echo "wait $TEST_68" >> %t.sh -#if defined(TEST_84) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_85 &' >> %t.sh -// RUN: echo 'TEST_85=$!' >> %t.sh -// RUN: echo "wait $TEST_69" >> %t.sh -#if defined(TEST_85) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_86 &' >> %t.sh -// RUN: echo 'TEST_86=$!' >> %t.sh -// RUN: echo "wait $TEST_70" >> %t.sh -#if defined(TEST_86) && !defined(_LIBCPP_HAS_NO_THREADS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_87 &' >> %t.sh -// RUN: echo 'TEST_87=$!' >> %t.sh -// RUN: echo "wait $TEST_71" >> %t.sh -#if defined(TEST_87) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_88 &' >> %t.sh -// RUN: echo 'TEST_88=$!' >> %t.sh -// RUN: echo "wait $TEST_72" >> %t.sh -#if defined(TEST_88) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_89 &' >> %t.sh -// RUN: echo 'TEST_89=$!' >> %t.sh -// RUN: echo "wait $TEST_73" >> %t.sh -#if defined(TEST_89) && !defined(_LIBCPP_HAS_NO_THREADS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_90 &' >> %t.sh -// RUN: echo 'TEST_90=$!' >> %t.sh -// RUN: echo "wait $TEST_74" >> %t.sh -#if defined(TEST_90) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_91 &' >> %t.sh -// RUN: echo 'TEST_91=$!' >> %t.sh -// RUN: echo "wait $TEST_75" >> %t.sh -#if defined(TEST_91) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_92 &' >> %t.sh -// RUN: echo 'TEST_92=$!' >> %t.sh -// RUN: echo "wait $TEST_76" >> %t.sh -#if defined(TEST_92) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_93 &' >> %t.sh -// RUN: echo 'TEST_93=$!' >> %t.sh -// RUN: echo "wait $TEST_77" >> %t.sh -#if defined(TEST_93) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_94 &' >> %t.sh -// RUN: echo 'TEST_94=$!' >> %t.sh -// RUN: echo "wait $TEST_78" >> %t.sh -#if defined(TEST_94) && __cplusplus > 202002L && !defined(_LIBCPP_HAS_NO_THREADS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_95 &' >> %t.sh -// RUN: echo 'TEST_95=$!' >> %t.sh -// RUN: echo "wait $TEST_79" >> %t.sh -#if defined(TEST_95) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_96 &' >> %t.sh -// RUN: echo 'TEST_96=$!' >> %t.sh -// RUN: echo "wait $TEST_80" >> %t.sh -#if defined(TEST_96) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_97 &' >> %t.sh -// RUN: echo 'TEST_97=$!' >> %t.sh -// RUN: echo "wait $TEST_81" >> %t.sh -#if defined(TEST_97) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_98 &' >> %t.sh -// RUN: echo 'TEST_98=$!' >> %t.sh -// RUN: echo "wait $TEST_82" >> %t.sh -#if defined(TEST_98) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_99 &' >> %t.sh -// RUN: echo 'TEST_99=$!' >> %t.sh -// RUN: echo "wait $TEST_83" >> %t.sh -#if defined(TEST_99) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_100 &' >> %t.sh -// RUN: echo 'TEST_100=$!' >> %t.sh -// RUN: echo "wait $TEST_84" >> %t.sh -#if defined(TEST_100) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_101 &' >> %t.sh -// RUN: echo 'TEST_101=$!' >> %t.sh -// RUN: echo "wait $TEST_85" >> %t.sh -#if defined(TEST_101) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_102 &' >> %t.sh -// RUN: echo 'TEST_102=$!' >> %t.sh -// RUN: echo "wait $TEST_86" >> %t.sh -#if defined(TEST_102) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_103 &' >> %t.sh -// RUN: echo 'TEST_103=$!' >> %t.sh -// RUN: echo "wait $TEST_87" >> %t.sh -#if defined(TEST_103) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_104 &' >> %t.sh -// RUN: echo 'TEST_104=$!' >> %t.sh -// RUN: echo "wait $TEST_88" >> %t.sh -#if defined(TEST_104) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_105 &' >> %t.sh -// RUN: echo 'TEST_105=$!' >> %t.sh -// RUN: echo "wait $TEST_89" >> %t.sh -#if defined(TEST_105) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_106 &' >> %t.sh -// RUN: echo 'TEST_106=$!' >> %t.sh -// RUN: echo "wait $TEST_90" >> %t.sh -#if defined(TEST_106) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_107 &' >> %t.sh -// RUN: echo 'TEST_107=$!' >> %t.sh -// RUN: echo "wait $TEST_91" >> %t.sh -#if defined(TEST_107) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_108 &' >> %t.sh -// RUN: echo 'TEST_108=$!' >> %t.sh -// RUN: echo "wait $TEST_92" >> %t.sh -#if defined(TEST_108) && !defined(_LIBCPP_HAS_NO_THREADS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_109 &' >> %t.sh -// RUN: echo 'TEST_109=$!' >> %t.sh -// RUN: echo "wait $TEST_93" >> %t.sh -#if defined(TEST_109) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_110 &' >> %t.sh -// RUN: echo 'TEST_110=$!' >> %t.sh -// RUN: echo "wait $TEST_94" >> %t.sh -#if defined(TEST_110) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_111 &' >> %t.sh -// RUN: echo 'TEST_111=$!' >> %t.sh -// RUN: echo "wait $TEST_95" >> %t.sh -#if defined(TEST_111) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_112 &' >> %t.sh -// RUN: echo 'TEST_112=$!' >> %t.sh -// RUN: echo "wait $TEST_96" >> %t.sh -#if defined(TEST_112) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_113 &' >> %t.sh -// RUN: echo 'TEST_113=$!' >> %t.sh -// RUN: echo "wait $TEST_97" >> %t.sh -#if defined(TEST_113) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_114 &' >> %t.sh -// RUN: echo 'TEST_114=$!' >> %t.sh -// RUN: echo "wait $TEST_98" >> %t.sh -#if defined(TEST_114) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_115 &' >> %t.sh -// RUN: echo 'TEST_115=$!' >> %t.sh -// RUN: echo "wait $TEST_99" >> %t.sh -#if defined(TEST_115) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_116 &' >> %t.sh -// RUN: echo 'TEST_116=$!' >> %t.sh -// RUN: echo "wait $TEST_100" >> %t.sh -#if defined(TEST_116) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_117 &' >> %t.sh -// RUN: echo 'TEST_117=$!' >> %t.sh -// RUN: echo "wait $TEST_101" >> %t.sh -#if defined(TEST_117) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_118 &' >> %t.sh -// RUN: echo 'TEST_118=$!' >> %t.sh -// RUN: echo "wait $TEST_102" >> %t.sh -#if defined(TEST_118) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_119 &' >> %t.sh -// RUN: echo 'TEST_119=$!' >> %t.sh -// RUN: echo "wait $TEST_103" >> %t.sh -#if defined(TEST_119) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_120 &' >> %t.sh -// RUN: echo 'TEST_120=$!' >> %t.sh -// RUN: echo "wait $TEST_104" >> %t.sh -#if defined(TEST_120) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_121 &' >> %t.sh -// RUN: echo 'TEST_121=$!' >> %t.sh -// RUN: echo "wait $TEST_105" >> %t.sh -#if defined(TEST_121) && !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_122 &' >> %t.sh -// RUN: echo 'TEST_122=$!' >> %t.sh -// RUN: echo "wait $TEST_106" >> %t.sh -#if defined(TEST_122) && !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_123 &' >> %t.sh -// RUN: echo 'TEST_123=$!' >> %t.sh -// RUN: echo "wait $TEST_107" >> %t.sh -#if defined(TEST_123) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_124 &' >> %t.sh -// RUN: echo 'TEST_124=$!' >> %t.sh -// RUN: echo "wait $TEST_108" >> %t.sh -#if defined(TEST_124) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_125 &' >> %t.sh -// RUN: echo 'TEST_125=$!' >> %t.sh -// RUN: echo "wait $TEST_109" >> %t.sh -#if defined(TEST_125) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_126 &' >> %t.sh -// RUN: echo 'TEST_126=$!' >> %t.sh -// RUN: echo "wait $TEST_110" >> %t.sh -#if defined(TEST_126) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_127 &' >> %t.sh -// RUN: echo 'TEST_127=$!' >> %t.sh -// RUN: echo "wait $TEST_111" >> %t.sh -#if defined(TEST_127) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_128 &' >> %t.sh -// RUN: echo 'TEST_128=$!' >> %t.sh -// RUN: echo "wait $TEST_112" >> %t.sh -#if defined(TEST_128) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_129 &' >> %t.sh -// RUN: echo 'TEST_129=$!' >> %t.sh -// RUN: echo "wait $TEST_113" >> %t.sh -#if defined(TEST_129) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_130 &' >> %t.sh -// RUN: echo 'TEST_130=$!' >> %t.sh -// RUN: echo "wait $TEST_114" >> %t.sh -#if defined(TEST_130) && !defined(_LIBCPP_HAS_NO_LOCALIZATION) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_131 &' >> %t.sh -// RUN: echo 'TEST_131=$!' >> %t.sh -// RUN: echo "wait $TEST_115" >> %t.sh -#if defined(TEST_131) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_132 &' >> %t.sh -// RUN: echo 'TEST_132=$!' >> %t.sh -// RUN: echo "wait $TEST_116" >> %t.sh -#if defined(TEST_132) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_133 &' >> %t.sh -// RUN: echo 'TEST_133=$!' >> %t.sh -// RUN: echo "wait $TEST_117" >> %t.sh -#if defined(TEST_133) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_134 &' >> %t.sh -// RUN: echo 'TEST_134=$!' >> %t.sh -// RUN: echo "wait $TEST_118" >> %t.sh -#if defined(TEST_134) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_135 &' >> %t.sh -// RUN: echo 'TEST_135=$!' >> %t.sh -// RUN: echo "wait $TEST_119" >> %t.sh -#if defined(TEST_135) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_136 &' >> %t.sh -// RUN: echo 'TEST_136=$!' >> %t.sh -// RUN: echo "wait $TEST_120" >> %t.sh -#if defined(TEST_136) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_137 &' >> %t.sh -// RUN: echo 'TEST_137=$!' >> %t.sh -// RUN: echo "wait $TEST_121" >> %t.sh -#if defined(TEST_137) && __cplusplus >= 201103L -#include -#endif -// RUN: echo '%{cxx} %s %{flags} %{compile_flags} -fmodules -fcxx-modules -fmodules-cache-path=%t -fsyntax-only -DTEST_138 &' >> %t.sh -// RUN: echo 'TEST_138=$!' >> %t.sh -// RUN: echo "wait $TEST_122" >> %t.sh -#if defined(TEST_138) && __cplusplus >= 201103L -#include -#endif -// RUN: echo "wait $TEST_123" >> %t.sh -// RUN: echo "wait $TEST_124" >> %t.sh -// RUN: echo "wait $TEST_125" >> %t.sh -// RUN: echo "wait $TEST_126" >> %t.sh -// RUN: echo "wait $TEST_127" >> %t.sh -// RUN: echo "wait $TEST_128" >> %t.sh -// RUN: echo "wait $TEST_129" >> %t.sh -// RUN: echo "wait $TEST_130" >> %t.sh -// RUN: echo "wait $TEST_131" >> %t.sh -// RUN: echo "wait $TEST_132" >> %t.sh -// RUN: echo "wait $TEST_133" >> %t.sh -// RUN: echo "wait $TEST_134" >> %t.sh -// RUN: echo "wait $TEST_135" >> %t.sh -// RUN: echo "wait $TEST_136" >> %t.sh -// RUN: echo "wait $TEST_137" >> %t.sh -// RUN: echo "wait $TEST_138" >> %t.sh -// RUN: bash %t.sh -// GENERATED-MARKER diff --git a/libcxx/test/libcxx/nasty_macros.compile.pass.cpp b/libcxx/test/libcxx/nasty_macros.compile.pass.cpp deleted file mode 100644 --- a/libcxx/test/libcxx/nasty_macros.compile.pass.cpp +++ /dev/null @@ -1,384 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// Test that headers are not tripped up by the surrounding code defining various -// alphabetic macros. - -#define NASTY_MACRO This should not be expanded!!! - -// libc++ does not use single-letter names as a matter of principle. -// But Windows' own , , and use many of these -// (at least C,E,F,I,M,N,P,S,X,Y,Z) as uglified function parameter names, -// so don't define these on Windows. -// -#ifndef _WIN32 -#define _A NASTY_MACRO -#define _B NASTY_MACRO -#define _C NASTY_MACRO -#define _D NASTY_MACRO -#define _E NASTY_MACRO -#define _F NASTY_MACRO -#define _G NASTY_MACRO -#define _H NASTY_MACRO -#define _I NASTY_MACRO -#define _J NASTY_MACRO -#define _K NASTY_MACRO -#define _L NASTY_MACRO -#define _M NASTY_MACRO -#define _N NASTY_MACRO -#define _O NASTY_MACRO -#define _P NASTY_MACRO -#define _Q NASTY_MACRO -#define _R NASTY_MACRO -#define _S NASTY_MACRO -#define _T NASTY_MACRO -#define _U NASTY_MACRO -#define _V NASTY_MACRO -#define _W NASTY_MACRO -#define _X NASTY_MACRO -#define _Y NASTY_MACRO -#define _Z NASTY_MACRO -#endif - -// FreeBSD's uses _M -// -#ifdef __FreeBSD__ -# undef _M -#endif - -// Test that libc++ doesn't use names that collide with FreeBSD system macros. -#ifndef __FreeBSD__ -# define __null_sentinel NASTY_MACRO -# define __generic -#endif - -// tchar.h defines these macros on Windows -#ifndef _WIN32 -# define _UI NASTY_MACRO -# define _PUC NASTY_MACRO -# define _CPUC NASTY_MACRO -# define _PC NASTY_MACRO -# define _CRPC NASTY_MACRO -# define _CPC NASTY_MACRO -#endif - -// yvals.h on MINGW defines this macro -#ifndef _WIN32 -# define _C2 NASTY_MACRO -#endif - -// Test that libc++ doesn't use names that collide with Win32 API macros. -// Obviously we can only define these on non-Windows platforms. -#ifndef _WIN32 -# define __allocator NASTY_MACRO -# define __bound NASTY_MACRO -# define __deallocate NASTY_MACRO -# define __deref NASTY_MACRO -# define __format_string NASTY_MACRO -# define __full NASTY_MACRO -# define __in NASTY_MACRO -# define __inout NASTY_MACRO -# define __nz NASTY_MACRO -# define __out NASTY_MACRO -# define __part NASTY_MACRO -# define __post NASTY_MACRO -# define __pre NASTY_MACRO -#endif - -#define __input NASTY_MACRO -#define __output NASTY_MACRO - -#define __acquire NASTY_MACRO -#define __release NASTY_MACRO - -// These names are not reserved, so the user can macro-define them. -// These are intended to find improperly _Uglified template parameters. -#define A NASTY_MACRO -#define Arg NASTY_MACRO -#define Args NASTY_MACRO -#define As NASTY_MACRO -#define B NASTY_MACRO -#define Bs NASTY_MACRO -#define C NASTY_MACRO -#define Cp NASTY_MACRO -#define Cs NASTY_MACRO -// Windows setjmp.h contains a struct member named 'D' on ARM/AArch64. -#ifndef _WIN32 -# define D NASTY_MACRO -#endif -#define Dp NASTY_MACRO -#define Ds NASTY_MACRO -#define E NASTY_MACRO -#define Ep NASTY_MACRO -#define Es NASTY_MACRO -#define R NASTY_MACRO -#define Rp NASTY_MACRO -#define Rs NASTY_MACRO -#define T NASTY_MACRO -#define Tp NASTY_MACRO -#define Ts NASTY_MACRO -#define Type NASTY_MACRO -#define Types NASTY_MACRO -#define U NASTY_MACRO -#define Up NASTY_MACRO -#define Us NASTY_MACRO -#define V NASTY_MACRO -#define Vp NASTY_MACRO -#define Vs NASTY_MACRO -#define X NASTY_MACRO -#define Xp NASTY_MACRO -#define Xs NASTY_MACRO - -// The classic Windows min/max macros -#define min NASTY_MACRO -#define max NASTY_MACRO - -/* -BEGIN-SCRIPT - -for header in public_headers: - print("{}#{}include <{}>{}".format( - '#if ' + header_restrictions[header] + '\n' if header in header_restrictions else '', - 3 * ' ' if header in header_restrictions else '', - header, - '\n#endif' if header in header_restrictions else '' - )) - -END-SCRIPT -*/ - -// DO NOT MANUALLY EDIT ANYTHING BETWEEN THE MARKERS BELOW -// GENERATED-MARKER -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#include -#if (defined(__cpp_impl_coroutine) && __cpp_impl_coroutine >= 201902L) || (defined(__cpp_coroutines) && __cpp_coroutines >= 201703L) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && !defined(_LIBCPP_HAS_NO_FSTREAM) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if __cplusplus > 202002L && !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -// GENERATED-MARKER diff --git a/libcxx/test/libcxx/nasty_macros.gen.py b/libcxx/test/libcxx/nasty_macros.gen.py new file mode 100644 --- /dev/null +++ b/libcxx/test/libcxx/nasty_macros.gen.py @@ -0,0 +1,157 @@ +#===----------------------------------------------------------------------===## +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===----------------------------------------------------------------------===## + +# Test that headers are not tripped up by the surrounding code defining various +# alphabetic macros. + +# RUN: %{python} %s %{libcxx}/utils + +import sys +sys.path.append(sys.argv[1]) +from libcxx.test.header_information import header_restrictions, public_headers + +for header in public_headers: + test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else '' + test_condition_end = '#endif' if header in header_restrictions else '' + + print(f"""\ +//--- {header}.compile.pass.cpp +#define NASTY_MACRO This should not be expanded!!! + +// libc++ does not use single-letter names as a matter of principle. +// But Windows' own , , and use many of these +// (at least C,E,F,I,M,N,P,S,X,Y,Z) as uglified function parameter names, +// so don't define these on Windows. +// +#ifndef _WIN32 +#define _A NASTY_MACRO +#define _B NASTY_MACRO +#define _C NASTY_MACRO +#define _D NASTY_MACRO +#define _E NASTY_MACRO +#define _F NASTY_MACRO +#define _G NASTY_MACRO +#define _H NASTY_MACRO +#define _I NASTY_MACRO +#define _J NASTY_MACRO +#define _K NASTY_MACRO +#define _L NASTY_MACRO +#define _M NASTY_MACRO +#define _N NASTY_MACRO +#define _O NASTY_MACRO +#define _P NASTY_MACRO +#define _Q NASTY_MACRO +#define _R NASTY_MACRO +#define _S NASTY_MACRO +#define _T NASTY_MACRO +#define _U NASTY_MACRO +#define _V NASTY_MACRO +#define _W NASTY_MACRO +#define _X NASTY_MACRO +#define _Y NASTY_MACRO +#define _Z NASTY_MACRO +#endif + +// FreeBSD's uses _M +// +#ifdef __FreeBSD__ +# undef _M +#endif + +// Test that libc++ doesn't use names that collide with FreeBSD system macros. +#ifndef __FreeBSD__ +# define __null_sentinel NASTY_MACRO +# define __generic +#endif + +// tchar.h defines these macros on Windows +#ifndef _WIN32 +# define _UI NASTY_MACRO +# define _PUC NASTY_MACRO +# define _CPUC NASTY_MACRO +# define _PC NASTY_MACRO +# define _CRPC NASTY_MACRO +# define _CPC NASTY_MACRO +#endif + +// yvals.h on MINGW defines this macro +#ifndef _WIN32 +# define _C2 NASTY_MACRO +#endif + +// Test that libc++ doesn't use names that collide with Win32 API macros. +// Obviously we can only define these on non-Windows platforms. +#ifndef _WIN32 +# define __allocator NASTY_MACRO +# define __bound NASTY_MACRO +# define __deallocate NASTY_MACRO +# define __deref NASTY_MACRO +# define __format_string NASTY_MACRO +# define __full NASTY_MACRO +# define __in NASTY_MACRO +# define __inout NASTY_MACRO +# define __nz NASTY_MACRO +# define __out NASTY_MACRO +# define __part NASTY_MACRO +# define __post NASTY_MACRO +# define __pre NASTY_MACRO +#endif + +#define __input NASTY_MACRO +#define __output NASTY_MACRO + +#define __acquire NASTY_MACRO +#define __release NASTY_MACRO + +// These names are not reserved, so the user can macro-define them. +// These are intended to find improperly _Uglified template parameters. +#define A NASTY_MACRO +#define Arg NASTY_MACRO +#define Args NASTY_MACRO +#define As NASTY_MACRO +#define B NASTY_MACRO +#define Bs NASTY_MACRO +#define C NASTY_MACRO +#define Cp NASTY_MACRO +#define Cs NASTY_MACRO +// Windows setjmp.h contains a struct member named 'D' on ARM/AArch64. +#ifndef _WIN32 +# define D NASTY_MACRO +#endif +#define Dp NASTY_MACRO +#define Ds NASTY_MACRO +#define E NASTY_MACRO +#define Ep NASTY_MACRO +#define Es NASTY_MACRO +#define R NASTY_MACRO +#define Rp NASTY_MACRO +#define Rs NASTY_MACRO +#define T NASTY_MACRO +#define Tp NASTY_MACRO +#define Ts NASTY_MACRO +#define Type NASTY_MACRO +#define Types NASTY_MACRO +#define U NASTY_MACRO +#define Up NASTY_MACRO +#define Us NASTY_MACRO +#define V NASTY_MACRO +#define Vp NASTY_MACRO +#define Vs NASTY_MACRO +#define X NASTY_MACRO +#define Xp NASTY_MACRO +#define Xs NASTY_MACRO + +// The classic Windows min/max macros +#define min NASTY_MACRO +#define max NASTY_MACRO + +#include <__config> +{test_condition_begin} +#include <{header}> +{test_condition_end} +""") diff --git a/libcxx/test/libcxx/no_assert_include.compile.pass.cpp b/libcxx/test/libcxx/no_assert_include.compile.pass.cpp deleted file mode 100644 --- a/libcxx/test/libcxx/no_assert_include.compile.pass.cpp +++ /dev/null @@ -1,260 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// Ensure that none of the standard C++ headers implicitly include cassert or -// assert.h (because assert() is implemented as a macro). - -/* -BEGIN-SCRIPT - -for header in public_headers: - if header == 'cassert': - continue - print("{}#{}include <{}>{}".format( - '#if ' + header_restrictions[header] + '\n' if header in header_restrictions else '', - 3 * ' ' if header in header_restrictions else '', - header, - '\n#endif' if header in header_restrictions else '' - )) - -END-SCRIPT -*/ - -// DO NOT MANUALLY EDIT ANYTHING BETWEEN THE MARKERS BELOW -// GENERATED-MARKER -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#include -#if (defined(__cpp_impl_coroutine) && __cpp_impl_coroutine >= 201902L) || (defined(__cpp_coroutines) && __cpp_coroutines >= 201703L) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && !defined(_LIBCPP_HAS_NO_FSTREAM) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#if __cplusplus > 202002L && !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) -# include -#endif -#include -#include -#if !defined(_LIBCPP_HAS_NO_THREADS) -# include -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if !defined(_LIBCPP_HAS_NO_LOCALIZATION) && __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -#if __cplusplus >= 201103L -# include -#endif -// GENERATED-MARKER - -#ifdef assert -#error "Do not include cassert or assert.h in standard header files" -#endif diff --git a/libcxx/test/libcxx/no_assert_include.gen.py b/libcxx/test/libcxx/no_assert_include.gen.py new file mode 100644 --- /dev/null +++ b/libcxx/test/libcxx/no_assert_include.gen.py @@ -0,0 +1,35 @@ +#===----------------------------------------------------------------------===## +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===----------------------------------------------------------------------===## + +# Ensure that none of the standard C++ headers implicitly include cassert or +# assert.h (because assert() is implemented as a macro). + +# RUN: %{python} %s %{libcxx}/utils + +import sys +sys.path.append(sys.argv[1]) +from libcxx.test.header_information import header_restrictions, public_headers + +for header in public_headers: + if header == 'cassert': + continue + + test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else '' + test_condition_end = '#endif' if header in header_restrictions else '' + + print(f"""\ +//--- {header}.compile.pass.cpp + +#include <__config> +{test_condition_begin} +#include <{header}> +#ifdef assert +# error "Do not include cassert or assert.h in standard header files" +#endif +{test_condition_end} +""") diff --git a/libcxx/test/libcxx/private_headers.gen.py b/libcxx/test/libcxx/private_headers.gen.py new file mode 100644 --- /dev/null +++ b/libcxx/test/libcxx/private_headers.gen.py @@ -0,0 +1,47 @@ +#===----------------------------------------------------------------------===## +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===----------------------------------------------------------------------===## + +# This test ensures that we produce a diagnostic when we use a private header +# from user code. + +# RUN: %{python} %s %{libcxx}/utils + +import sys +sys.path.append(sys.argv[1]) +from libcxx.test.header_information import header_restrictions, private_headers, private_headers_still_public_in_modules + +for header in private_headers: + # Skip headers that are not private yet in the modulemap + if header in private_headers_still_public_in_modules: + continue + + # Skip private headers that start with __support -- those are not in the modulemap yet + if header.startswith('__support'): + continue + + # Skip the locale API headers, since they are platform-specific and thus inherently non-modular + if 'locale_base_api' in header: + continue + + # TODO: Stop skipping PSTL headers once their integration is finished. + if header.startswith('__pstl'): + continue + + test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else '' + test_condition_end = '#endif' if header in header_restrictions else '' + BLOCKLIT = '' # block Lit from interpreting a RUN/XFAIL/etc inside the generation script + + print(f"""\ +//--- {header}.verify.cpp +// REQUIRES{BLOCKLIT}: modules-build + +#include <__config> +{test_condition_begin} +#include <{header}> // expected-error@*:* {{{{use of private header from outside its module: '{header}'}}}} +{test_condition_end} +""") diff --git a/libcxx/test/libcxx/private_headers.verify.cpp b/libcxx/test/libcxx/private_headers.verify.cpp deleted file mode 100644 --- a/libcxx/test/libcxx/private_headers.verify.cpp +++ /dev/null @@ -1,810 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// This test ensures that we produce a diagnostic when we use a private header -// from user code. - -// REQUIRES: modules-build - -/* -BEGIN-SCRIPT - -for header in private_headers: - # Skip headers that are not private yet in the modulemap - if header in private_headers_still_public_in_modules: - continue - - # Skip private headers that start with __support -- those are not in the modulemap yet - if header.startswith('__support'): - continue - - # Skip the locale API headers, since they are platform-specific and thus inherently non-modular - if 'locale_base_api' in header: - continue - - # TODO: Stop skipping PSTL headers once their integration is finished. - if header.startswith('__pstl'): - continue - - print("{ifdef}#{indent}include <{header}> // {expected_error}@*:* {{{{use of private header from outside its module: '{header}'}}}}{endif}".format( - ifdef='#if ' + header_restrictions[header] + '\n' if header in header_restrictions else '', - indent=' ' if header in header_restrictions else '', - header=header, - expected_error='expected-error', - endif='\n#endif' if header in header_restrictions else '' - )) - -END-SCRIPT -*/ - -// DO NOT MANUALLY EDIT ANYTHING BETWEEN THE MARKERS BELOW -// GENERATED-MARKER -#include <__algorithm/adjacent_find.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/adjacent_find.h'}} -#include <__algorithm/all_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/all_of.h'}} -#include <__algorithm/any_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/any_of.h'}} -#include <__algorithm/binary_search.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/binary_search.h'}} -#include <__algorithm/clamp.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/clamp.h'}} -#include <__algorithm/comp.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/comp.h'}} -#include <__algorithm/comp_ref_type.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/comp_ref_type.h'}} -#include <__algorithm/copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/copy.h'}} -#include <__algorithm/copy_backward.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/copy_backward.h'}} -#include <__algorithm/copy_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/copy_if.h'}} -#include <__algorithm/copy_move_common.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/copy_move_common.h'}} -#include <__algorithm/copy_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/copy_n.h'}} -#include <__algorithm/count.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/count.h'}} -#include <__algorithm/count_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/count_if.h'}} -#include <__algorithm/equal.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/equal.h'}} -#include <__algorithm/equal_range.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/equal_range.h'}} -#include <__algorithm/fill.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/fill.h'}} -#include <__algorithm/fill_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/fill_n.h'}} -#include <__algorithm/find.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/find.h'}} -#include <__algorithm/find_end.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/find_end.h'}} -#include <__algorithm/find_first_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/find_first_of.h'}} -#include <__algorithm/find_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/find_if.h'}} -#include <__algorithm/find_if_not.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/find_if_not.h'}} -#include <__algorithm/for_each.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/for_each.h'}} -#include <__algorithm/for_each_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/for_each_n.h'}} -#include <__algorithm/generate.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/generate.h'}} -#include <__algorithm/generate_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/generate_n.h'}} -#include <__algorithm/half_positive.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/half_positive.h'}} -#include <__algorithm/in_found_result.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/in_found_result.h'}} -#include <__algorithm/in_fun_result.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/in_fun_result.h'}} -#include <__algorithm/in_in_out_result.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/in_in_out_result.h'}} -#include <__algorithm/in_in_result.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/in_in_result.h'}} -#include <__algorithm/in_out_out_result.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/in_out_out_result.h'}} -#include <__algorithm/in_out_result.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/in_out_result.h'}} -#include <__algorithm/includes.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/includes.h'}} -#include <__algorithm/inplace_merge.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/inplace_merge.h'}} -#include <__algorithm/is_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/is_heap.h'}} -#include <__algorithm/is_heap_until.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/is_heap_until.h'}} -#include <__algorithm/is_partitioned.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/is_partitioned.h'}} -#include <__algorithm/is_permutation.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/is_permutation.h'}} -#include <__algorithm/is_sorted.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/is_sorted.h'}} -#include <__algorithm/is_sorted_until.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/is_sorted_until.h'}} -#include <__algorithm/iter_swap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/iter_swap.h'}} -#include <__algorithm/iterator_operations.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/iterator_operations.h'}} -#include <__algorithm/lexicographical_compare.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/lexicographical_compare.h'}} -#include <__algorithm/lexicographical_compare_three_way.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/lexicographical_compare_three_way.h'}} -#include <__algorithm/lower_bound.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/lower_bound.h'}} -#include <__algorithm/make_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/make_heap.h'}} -#include <__algorithm/make_projected.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/make_projected.h'}} -#include <__algorithm/max.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/max.h'}} -#include <__algorithm/max_element.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/max_element.h'}} -#include <__algorithm/merge.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/merge.h'}} -#include <__algorithm/min.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/min.h'}} -#include <__algorithm/min_element.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/min_element.h'}} -#include <__algorithm/min_max_result.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/min_max_result.h'}} -#include <__algorithm/minmax.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/minmax.h'}} -#include <__algorithm/minmax_element.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/minmax_element.h'}} -#include <__algorithm/mismatch.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/mismatch.h'}} -#include <__algorithm/move.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/move.h'}} -#include <__algorithm/move_backward.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/move_backward.h'}} -#include <__algorithm/next_permutation.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/next_permutation.h'}} -#include <__algorithm/none_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/none_of.h'}} -#include <__algorithm/nth_element.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/nth_element.h'}} -#include <__algorithm/partial_sort.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/partial_sort.h'}} -#include <__algorithm/partial_sort_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/partial_sort_copy.h'}} -#include <__algorithm/partition.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/partition.h'}} -#include <__algorithm/partition_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/partition_copy.h'}} -#include <__algorithm/partition_point.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/partition_point.h'}} -#include <__algorithm/pop_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pop_heap.h'}} -#include <__algorithm/prev_permutation.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/prev_permutation.h'}} -#include <__algorithm/pstl_backends/cpu_backend.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backend.h'}} -#include <__algorithm/pstl_backends/cpu_backends/any_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/any_of.h'}} -#include <__algorithm/pstl_backends/cpu_backends/backend.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/backend.h'}} -#include <__algorithm/pstl_backends/cpu_backends/fill.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/fill.h'}} -#include <__algorithm/pstl_backends/cpu_backends/find_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/find_if.h'}} -#include <__algorithm/pstl_backends/cpu_backends/for_each.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/for_each.h'}} -#include <__algorithm/pstl_backends/cpu_backends/merge.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/merge.h'}} -#include <__algorithm/pstl_backends/cpu_backends/serial.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/serial.h'}} -#include <__algorithm/pstl_backends/cpu_backends/thread.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/thread.h'}} -#include <__algorithm/pstl_backends/cpu_backends/transform.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/pstl_backends/cpu_backends/transform.h'}} -#include <__algorithm/push_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/push_heap.h'}} -#include <__algorithm/ranges_adjacent_find.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_adjacent_find.h'}} -#include <__algorithm/ranges_all_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_all_of.h'}} -#include <__algorithm/ranges_any_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_any_of.h'}} -#include <__algorithm/ranges_binary_search.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_binary_search.h'}} -#include <__algorithm/ranges_clamp.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_clamp.h'}} -#include <__algorithm/ranges_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_copy.h'}} -#include <__algorithm/ranges_copy_backward.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_copy_backward.h'}} -#include <__algorithm/ranges_copy_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_copy_if.h'}} -#include <__algorithm/ranges_copy_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_copy_n.h'}} -#include <__algorithm/ranges_count.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_count.h'}} -#include <__algorithm/ranges_count_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_count_if.h'}} -#include <__algorithm/ranges_equal.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_equal.h'}} -#include <__algorithm/ranges_equal_range.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_equal_range.h'}} -#include <__algorithm/ranges_fill.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_fill.h'}} -#include <__algorithm/ranges_fill_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_fill_n.h'}} -#include <__algorithm/ranges_find.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_find.h'}} -#include <__algorithm/ranges_find_end.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_find_end.h'}} -#include <__algorithm/ranges_find_first_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_find_first_of.h'}} -#include <__algorithm/ranges_find_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_find_if.h'}} -#include <__algorithm/ranges_find_if_not.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_find_if_not.h'}} -#include <__algorithm/ranges_for_each.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_for_each.h'}} -#include <__algorithm/ranges_for_each_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_for_each_n.h'}} -#include <__algorithm/ranges_generate.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_generate.h'}} -#include <__algorithm/ranges_generate_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_generate_n.h'}} -#include <__algorithm/ranges_includes.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_includes.h'}} -#include <__algorithm/ranges_inplace_merge.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_inplace_merge.h'}} -#include <__algorithm/ranges_is_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_is_heap.h'}} -#include <__algorithm/ranges_is_heap_until.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_is_heap_until.h'}} -#include <__algorithm/ranges_is_partitioned.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_is_partitioned.h'}} -#include <__algorithm/ranges_is_permutation.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_is_permutation.h'}} -#include <__algorithm/ranges_is_sorted.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_is_sorted.h'}} -#include <__algorithm/ranges_is_sorted_until.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_is_sorted_until.h'}} -#include <__algorithm/ranges_iterator_concept.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_iterator_concept.h'}} -#include <__algorithm/ranges_lexicographical_compare.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_lexicographical_compare.h'}} -#include <__algorithm/ranges_lower_bound.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_lower_bound.h'}} -#include <__algorithm/ranges_make_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_make_heap.h'}} -#include <__algorithm/ranges_max.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_max.h'}} -#include <__algorithm/ranges_max_element.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_max_element.h'}} -#include <__algorithm/ranges_merge.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_merge.h'}} -#include <__algorithm/ranges_min.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_min.h'}} -#include <__algorithm/ranges_min_element.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_min_element.h'}} -#include <__algorithm/ranges_minmax.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_minmax.h'}} -#include <__algorithm/ranges_minmax_element.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_minmax_element.h'}} -#include <__algorithm/ranges_mismatch.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_mismatch.h'}} -#include <__algorithm/ranges_move.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_move.h'}} -#include <__algorithm/ranges_move_backward.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_move_backward.h'}} -#include <__algorithm/ranges_next_permutation.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_next_permutation.h'}} -#include <__algorithm/ranges_none_of.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_none_of.h'}} -#include <__algorithm/ranges_nth_element.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_nth_element.h'}} -#include <__algorithm/ranges_partial_sort.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_partial_sort.h'}} -#include <__algorithm/ranges_partial_sort_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_partial_sort_copy.h'}} -#include <__algorithm/ranges_partition.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_partition.h'}} -#include <__algorithm/ranges_partition_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_partition_copy.h'}} -#include <__algorithm/ranges_partition_point.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_partition_point.h'}} -#include <__algorithm/ranges_pop_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_pop_heap.h'}} -#include <__algorithm/ranges_prev_permutation.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_prev_permutation.h'}} -#include <__algorithm/ranges_push_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_push_heap.h'}} -#include <__algorithm/ranges_remove.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_remove.h'}} -#include <__algorithm/ranges_remove_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_remove_copy.h'}} -#include <__algorithm/ranges_remove_copy_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_remove_copy_if.h'}} -#include <__algorithm/ranges_remove_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_remove_if.h'}} -#include <__algorithm/ranges_replace.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_replace.h'}} -#include <__algorithm/ranges_replace_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_replace_copy.h'}} -#include <__algorithm/ranges_replace_copy_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_replace_copy_if.h'}} -#include <__algorithm/ranges_replace_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_replace_if.h'}} -#include <__algorithm/ranges_reverse.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_reverse.h'}} -#include <__algorithm/ranges_reverse_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_reverse_copy.h'}} -#include <__algorithm/ranges_rotate.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_rotate.h'}} -#include <__algorithm/ranges_rotate_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_rotate_copy.h'}} -#include <__algorithm/ranges_sample.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_sample.h'}} -#include <__algorithm/ranges_search.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_search.h'}} -#include <__algorithm/ranges_search_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_search_n.h'}} -#include <__algorithm/ranges_set_difference.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_set_difference.h'}} -#include <__algorithm/ranges_set_intersection.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_set_intersection.h'}} -#include <__algorithm/ranges_set_symmetric_difference.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_set_symmetric_difference.h'}} -#include <__algorithm/ranges_set_union.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_set_union.h'}} -#include <__algorithm/ranges_shuffle.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_shuffle.h'}} -#include <__algorithm/ranges_sort.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_sort.h'}} -#include <__algorithm/ranges_sort_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_sort_heap.h'}} -#include <__algorithm/ranges_stable_partition.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_stable_partition.h'}} -#include <__algorithm/ranges_stable_sort.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_stable_sort.h'}} -#include <__algorithm/ranges_starts_with.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_starts_with.h'}} -#include <__algorithm/ranges_swap_ranges.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_swap_ranges.h'}} -#include <__algorithm/ranges_transform.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_transform.h'}} -#include <__algorithm/ranges_unique.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_unique.h'}} -#include <__algorithm/ranges_unique_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_unique_copy.h'}} -#include <__algorithm/ranges_upper_bound.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/ranges_upper_bound.h'}} -#include <__algorithm/remove.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/remove.h'}} -#include <__algorithm/remove_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/remove_copy.h'}} -#include <__algorithm/remove_copy_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/remove_copy_if.h'}} -#include <__algorithm/remove_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/remove_if.h'}} -#include <__algorithm/replace.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/replace.h'}} -#include <__algorithm/replace_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/replace_copy.h'}} -#include <__algorithm/replace_copy_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/replace_copy_if.h'}} -#include <__algorithm/replace_if.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/replace_if.h'}} -#include <__algorithm/reverse.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/reverse.h'}} -#include <__algorithm/reverse_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/reverse_copy.h'}} -#include <__algorithm/rotate.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/rotate.h'}} -#include <__algorithm/rotate_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/rotate_copy.h'}} -#include <__algorithm/sample.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/sample.h'}} -#include <__algorithm/search.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/search.h'}} -#include <__algorithm/search_n.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/search_n.h'}} -#include <__algorithm/set_difference.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/set_difference.h'}} -#include <__algorithm/set_intersection.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/set_intersection.h'}} -#include <__algorithm/set_symmetric_difference.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/set_symmetric_difference.h'}} -#include <__algorithm/set_union.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/set_union.h'}} -#include <__algorithm/shift_left.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/shift_left.h'}} -#include <__algorithm/shift_right.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/shift_right.h'}} -#include <__algorithm/shuffle.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/shuffle.h'}} -#include <__algorithm/sift_down.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/sift_down.h'}} -#include <__algorithm/sort.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/sort.h'}} -#include <__algorithm/sort_heap.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/sort_heap.h'}} -#include <__algorithm/stable_partition.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/stable_partition.h'}} -#include <__algorithm/stable_sort.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/stable_sort.h'}} -#include <__algorithm/swap_ranges.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/swap_ranges.h'}} -#include <__algorithm/three_way_comp_ref_type.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/three_way_comp_ref_type.h'}} -#include <__algorithm/transform.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/transform.h'}} -#include <__algorithm/uniform_random_bit_generator_adaptor.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/uniform_random_bit_generator_adaptor.h'}} -#include <__algorithm/unique.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/unique.h'}} -#include <__algorithm/unique_copy.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/unique_copy.h'}} -#include <__algorithm/unwrap_iter.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/unwrap_iter.h'}} -#include <__algorithm/unwrap_range.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/unwrap_range.h'}} -#include <__algorithm/upper_bound.h> // expected-error@*:* {{use of private header from outside its module: '__algorithm/upper_bound.h'}} -#include <__atomic/aliases.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/aliases.h'}} -#include <__atomic/atomic.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/atomic.h'}} -#include <__atomic/atomic_base.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/atomic_base.h'}} -#include <__atomic/atomic_flag.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/atomic_flag.h'}} -#include <__atomic/atomic_init.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/atomic_init.h'}} -#include <__atomic/atomic_lock_free.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/atomic_lock_free.h'}} -#include <__atomic/atomic_sync.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/atomic_sync.h'}} -#include <__atomic/check_memory_order.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/check_memory_order.h'}} -#include <__atomic/contention_t.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/contention_t.h'}} -#include <__atomic/cxx_atomic_impl.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/cxx_atomic_impl.h'}} -#include <__atomic/fence.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/fence.h'}} -#include <__atomic/is_always_lock_free.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/is_always_lock_free.h'}} -#include <__atomic/kill_dependency.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/kill_dependency.h'}} -#include <__atomic/memory_order.h> // expected-error@*:* {{use of private header from outside its module: '__atomic/memory_order.h'}} -#include <__availability> // expected-error@*:* {{use of private header from outside its module: '__availability'}} -#include <__bit/bit_cast.h> // expected-error@*:* {{use of private header from outside its module: '__bit/bit_cast.h'}} -#include <__bit/bit_ceil.h> // expected-error@*:* {{use of private header from outside its module: '__bit/bit_ceil.h'}} -#include <__bit/bit_floor.h> // expected-error@*:* {{use of private header from outside its module: '__bit/bit_floor.h'}} -#include <__bit/bit_log2.h> // expected-error@*:* {{use of private header from outside its module: '__bit/bit_log2.h'}} -#include <__bit/bit_width.h> // expected-error@*:* {{use of private header from outside its module: '__bit/bit_width.h'}} -#include <__bit/blsr.h> // expected-error@*:* {{use of private header from outside its module: '__bit/blsr.h'}} -#include <__bit/byteswap.h> // expected-error@*:* {{use of private header from outside its module: '__bit/byteswap.h'}} -#include <__bit/countl.h> // expected-error@*:* {{use of private header from outside its module: '__bit/countl.h'}} -#include <__bit/countr.h> // expected-error@*:* {{use of private header from outside its module: '__bit/countr.h'}} -#include <__bit/endian.h> // expected-error@*:* {{use of private header from outside its module: '__bit/endian.h'}} -#include <__bit/has_single_bit.h> // expected-error@*:* {{use of private header from outside its module: '__bit/has_single_bit.h'}} -#include <__bit/popcount.h> // expected-error@*:* {{use of private header from outside its module: '__bit/popcount.h'}} -#include <__bit/rotate.h> // expected-error@*:* {{use of private header from outside its module: '__bit/rotate.h'}} -#include <__bit_reference> // expected-error@*:* {{use of private header from outside its module: '__bit_reference'}} -#include <__charconv/chars_format.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/chars_format.h'}} -#include <__charconv/from_chars_integral.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/from_chars_integral.h'}} -#include <__charconv/from_chars_result.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/from_chars_result.h'}} -#include <__charconv/tables.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/tables.h'}} -#include <__charconv/to_chars.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/to_chars.h'}} -#include <__charconv/to_chars_base_10.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/to_chars_base_10.h'}} -#include <__charconv/to_chars_floating_point.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/to_chars_floating_point.h'}} -#include <__charconv/to_chars_integral.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/to_chars_integral.h'}} -#include <__charconv/to_chars_result.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/to_chars_result.h'}} -#include <__charconv/traits.h> // expected-error@*:* {{use of private header from outside its module: '__charconv/traits.h'}} -#include <__chrono/calendar.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/calendar.h'}} -#include <__chrono/concepts.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/concepts.h'}} -#include <__chrono/convert_to_timespec.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/convert_to_timespec.h'}} -#include <__chrono/convert_to_tm.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/convert_to_tm.h'}} -#include <__chrono/day.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/day.h'}} -#include <__chrono/duration.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/duration.h'}} -#include <__chrono/file_clock.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/file_clock.h'}} -#include <__chrono/formatter.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/formatter.h'}} -#include <__chrono/hh_mm_ss.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/hh_mm_ss.h'}} -#include <__chrono/high_resolution_clock.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/high_resolution_clock.h'}} -#include <__chrono/literals.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/literals.h'}} -#include <__chrono/month.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/month.h'}} -#include <__chrono/month_weekday.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/month_weekday.h'}} -#include <__chrono/monthday.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/monthday.h'}} -#include <__chrono/ostream.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/ostream.h'}} -#include <__chrono/parser_std_format_spec.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/parser_std_format_spec.h'}} -#include <__chrono/statically_widen.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/statically_widen.h'}} -#include <__chrono/steady_clock.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/steady_clock.h'}} -#include <__chrono/system_clock.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/system_clock.h'}} -#include <__chrono/time_point.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/time_point.h'}} -#include <__chrono/weekday.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/weekday.h'}} -#include <__chrono/year.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/year.h'}} -#include <__chrono/year_month.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/year_month.h'}} -#include <__chrono/year_month_day.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/year_month_day.h'}} -#include <__chrono/year_month_weekday.h> // expected-error@*:* {{use of private header from outside its module: '__chrono/year_month_weekday.h'}} -#include <__compare/common_comparison_category.h> // expected-error@*:* {{use of private header from outside its module: '__compare/common_comparison_category.h'}} -#include <__compare/compare_partial_order_fallback.h> // expected-error@*:* {{use of private header from outside its module: '__compare/compare_partial_order_fallback.h'}} -#include <__compare/compare_strong_order_fallback.h> // expected-error@*:* {{use of private header from outside its module: '__compare/compare_strong_order_fallback.h'}} -#include <__compare/compare_three_way.h> // expected-error@*:* {{use of private header from outside its module: '__compare/compare_three_way.h'}} -#include <__compare/compare_three_way_result.h> // expected-error@*:* {{use of private header from outside its module: '__compare/compare_three_way_result.h'}} -#include <__compare/compare_weak_order_fallback.h> // expected-error@*:* {{use of private header from outside its module: '__compare/compare_weak_order_fallback.h'}} -#include <__compare/is_eq.h> // expected-error@*:* {{use of private header from outside its module: '__compare/is_eq.h'}} -#include <__compare/ordering.h> // expected-error@*:* {{use of private header from outside its module: '__compare/ordering.h'}} -#include <__compare/partial_order.h> // expected-error@*:* {{use of private header from outside its module: '__compare/partial_order.h'}} -#include <__compare/strong_order.h> // expected-error@*:* {{use of private header from outside its module: '__compare/strong_order.h'}} -#include <__compare/synth_three_way.h> // expected-error@*:* {{use of private header from outside its module: '__compare/synth_three_way.h'}} -#include <__compare/three_way_comparable.h> // expected-error@*:* {{use of private header from outside its module: '__compare/three_way_comparable.h'}} -#include <__compare/weak_order.h> // expected-error@*:* {{use of private header from outside its module: '__compare/weak_order.h'}} -#include <__concepts/arithmetic.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/arithmetic.h'}} -#include <__concepts/assignable.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/assignable.h'}} -#include <__concepts/boolean_testable.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/boolean_testable.h'}} -#include <__concepts/class_or_enum.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/class_or_enum.h'}} -#include <__concepts/common_reference_with.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/common_reference_with.h'}} -#include <__concepts/common_with.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/common_with.h'}} -#include <__concepts/constructible.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/constructible.h'}} -#include <__concepts/convertible_to.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/convertible_to.h'}} -#include <__concepts/copyable.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/copyable.h'}} -#include <__concepts/derived_from.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/derived_from.h'}} -#include <__concepts/destructible.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/destructible.h'}} -#include <__concepts/different_from.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/different_from.h'}} -#include <__concepts/equality_comparable.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/equality_comparable.h'}} -#include <__concepts/invocable.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/invocable.h'}} -#include <__concepts/movable.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/movable.h'}} -#include <__concepts/predicate.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/predicate.h'}} -#include <__concepts/regular.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/regular.h'}} -#include <__concepts/relation.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/relation.h'}} -#include <__concepts/same_as.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/same_as.h'}} -#include <__concepts/semiregular.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/semiregular.h'}} -#include <__concepts/swappable.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/swappable.h'}} -#include <__concepts/totally_ordered.h> // expected-error@*:* {{use of private header from outside its module: '__concepts/totally_ordered.h'}} -#include <__condition_variable/condition_variable.h> // expected-error@*:* {{use of private header from outside its module: '__condition_variable/condition_variable.h'}} -#include <__coroutine/coroutine_handle.h> // expected-error@*:* {{use of private header from outside its module: '__coroutine/coroutine_handle.h'}} -#include <__coroutine/coroutine_traits.h> // expected-error@*:* {{use of private header from outside its module: '__coroutine/coroutine_traits.h'}} -#include <__coroutine/noop_coroutine_handle.h> // expected-error@*:* {{use of private header from outside its module: '__coroutine/noop_coroutine_handle.h'}} -#include <__coroutine/trivial_awaitables.h> // expected-error@*:* {{use of private header from outside its module: '__coroutine/trivial_awaitables.h'}} -#include <__debug_utils/randomize_range.h> // expected-error@*:* {{use of private header from outside its module: '__debug_utils/randomize_range.h'}} -#include <__exception/exception.h> // expected-error@*:* {{use of private header from outside its module: '__exception/exception.h'}} -#include <__exception/exception_ptr.h> // expected-error@*:* {{use of private header from outside its module: '__exception/exception_ptr.h'}} -#include <__exception/nested_exception.h> // expected-error@*:* {{use of private header from outside its module: '__exception/nested_exception.h'}} -#include <__exception/operations.h> // expected-error@*:* {{use of private header from outside its module: '__exception/operations.h'}} -#include <__exception/terminate.h> // expected-error@*:* {{use of private header from outside its module: '__exception/terminate.h'}} -#include <__expected/bad_expected_access.h> // expected-error@*:* {{use of private header from outside its module: '__expected/bad_expected_access.h'}} -#include <__expected/expected.h> // expected-error@*:* {{use of private header from outside its module: '__expected/expected.h'}} -#include <__expected/unexpect.h> // expected-error@*:* {{use of private header from outside its module: '__expected/unexpect.h'}} -#include <__expected/unexpected.h> // expected-error@*:* {{use of private header from outside its module: '__expected/unexpected.h'}} -#include <__filesystem/copy_options.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/copy_options.h'}} -#include <__filesystem/directory_entry.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/directory_entry.h'}} -#include <__filesystem/directory_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/directory_iterator.h'}} -#include <__filesystem/directory_options.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/directory_options.h'}} -#include <__filesystem/file_status.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/file_status.h'}} -#include <__filesystem/file_time_type.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/file_time_type.h'}} -#include <__filesystem/file_type.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/file_type.h'}} -#include <__filesystem/filesystem_error.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/filesystem_error.h'}} -#include <__filesystem/operations.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/operations.h'}} -#include <__filesystem/path.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/path.h'}} -#include <__filesystem/path_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/path_iterator.h'}} -#include <__filesystem/perm_options.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/perm_options.h'}} -#include <__filesystem/perms.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/perms.h'}} -#include <__filesystem/recursive_directory_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/recursive_directory_iterator.h'}} -#include <__filesystem/space_info.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/space_info.h'}} -#include <__filesystem/u8path.h> // expected-error@*:* {{use of private header from outside its module: '__filesystem/u8path.h'}} -#include <__format/buffer.h> // expected-error@*:* {{use of private header from outside its module: '__format/buffer.h'}} -#include <__format/concepts.h> // expected-error@*:* {{use of private header from outside its module: '__format/concepts.h'}} -#include <__format/container_adaptor.h> // expected-error@*:* {{use of private header from outside its module: '__format/container_adaptor.h'}} -#include <__format/enable_insertable.h> // expected-error@*:* {{use of private header from outside its module: '__format/enable_insertable.h'}} -#include <__format/escaped_output_table.h> // expected-error@*:* {{use of private header from outside its module: '__format/escaped_output_table.h'}} -#include <__format/extended_grapheme_cluster_table.h> // expected-error@*:* {{use of private header from outside its module: '__format/extended_grapheme_cluster_table.h'}} -#include <__format/format_arg.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_arg.h'}} -#include <__format/format_arg_store.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_arg_store.h'}} -#include <__format/format_args.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_args.h'}} -#include <__format/format_context.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_context.h'}} -#include <__format/format_error.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_error.h'}} -#include <__format/format_functions.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_functions.h'}} -#include <__format/format_fwd.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_fwd.h'}} -#include <__format/format_parse_context.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_parse_context.h'}} -#include <__format/format_string.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_string.h'}} -#include <__format/format_to_n_result.h> // expected-error@*:* {{use of private header from outside its module: '__format/format_to_n_result.h'}} -#include <__format/formatter.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter.h'}} -#include <__format/formatter_bool.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_bool.h'}} -#include <__format/formatter_char.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_char.h'}} -#include <__format/formatter_floating_point.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_floating_point.h'}} -#include <__format/formatter_integer.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_integer.h'}} -#include <__format/formatter_integral.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_integral.h'}} -#include <__format/formatter_output.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_output.h'}} -#include <__format/formatter_pointer.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_pointer.h'}} -#include <__format/formatter_string.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_string.h'}} -#include <__format/formatter_tuple.h> // expected-error@*:* {{use of private header from outside its module: '__format/formatter_tuple.h'}} -#include <__format/parser_std_format_spec.h> // expected-error@*:* {{use of private header from outside its module: '__format/parser_std_format_spec.h'}} -#include <__format/range_default_formatter.h> // expected-error@*:* {{use of private header from outside its module: '__format/range_default_formatter.h'}} -#include <__format/range_formatter.h> // expected-error@*:* {{use of private header from outside its module: '__format/range_formatter.h'}} -#include <__format/unicode.h> // expected-error@*:* {{use of private header from outside its module: '__format/unicode.h'}} -#include <__format/width_estimation_table.h> // expected-error@*:* {{use of private header from outside its module: '__format/width_estimation_table.h'}} -#include <__functional/binary_function.h> // expected-error@*:* {{use of private header from outside its module: '__functional/binary_function.h'}} -#include <__functional/binary_negate.h> // expected-error@*:* {{use of private header from outside its module: '__functional/binary_negate.h'}} -#include <__functional/bind.h> // expected-error@*:* {{use of private header from outside its module: '__functional/bind.h'}} -#include <__functional/bind_back.h> // expected-error@*:* {{use of private header from outside its module: '__functional/bind_back.h'}} -#include <__functional/bind_front.h> // expected-error@*:* {{use of private header from outside its module: '__functional/bind_front.h'}} -#include <__functional/binder1st.h> // expected-error@*:* {{use of private header from outside its module: '__functional/binder1st.h'}} -#include <__functional/binder2nd.h> // expected-error@*:* {{use of private header from outside its module: '__functional/binder2nd.h'}} -#include <__functional/boyer_moore_searcher.h> // expected-error@*:* {{use of private header from outside its module: '__functional/boyer_moore_searcher.h'}} -#include <__functional/compose.h> // expected-error@*:* {{use of private header from outside its module: '__functional/compose.h'}} -#include <__functional/default_searcher.h> // expected-error@*:* {{use of private header from outside its module: '__functional/default_searcher.h'}} -#include <__functional/function.h> // expected-error@*:* {{use of private header from outside its module: '__functional/function.h'}} -#include <__functional/hash.h> // expected-error@*:* {{use of private header from outside its module: '__functional/hash.h'}} -#include <__functional/identity.h> // expected-error@*:* {{use of private header from outside its module: '__functional/identity.h'}} -#include <__functional/invoke.h> // expected-error@*:* {{use of private header from outside its module: '__functional/invoke.h'}} -#include <__functional/is_transparent.h> // expected-error@*:* {{use of private header from outside its module: '__functional/is_transparent.h'}} -#include <__functional/mem_fn.h> // expected-error@*:* {{use of private header from outside its module: '__functional/mem_fn.h'}} -#include <__functional/mem_fun_ref.h> // expected-error@*:* {{use of private header from outside its module: '__functional/mem_fun_ref.h'}} -#include <__functional/not_fn.h> // expected-error@*:* {{use of private header from outside its module: '__functional/not_fn.h'}} -#include <__functional/operations.h> // expected-error@*:* {{use of private header from outside its module: '__functional/operations.h'}} -#include <__functional/perfect_forward.h> // expected-error@*:* {{use of private header from outside its module: '__functional/perfect_forward.h'}} -#include <__functional/pointer_to_binary_function.h> // expected-error@*:* {{use of private header from outside its module: '__functional/pointer_to_binary_function.h'}} -#include <__functional/pointer_to_unary_function.h> // expected-error@*:* {{use of private header from outside its module: '__functional/pointer_to_unary_function.h'}} -#include <__functional/ranges_operations.h> // expected-error@*:* {{use of private header from outside its module: '__functional/ranges_operations.h'}} -#include <__functional/reference_wrapper.h> // expected-error@*:* {{use of private header from outside its module: '__functional/reference_wrapper.h'}} -#include <__functional/unary_function.h> // expected-error@*:* {{use of private header from outside its module: '__functional/unary_function.h'}} -#include <__functional/unary_negate.h> // expected-error@*:* {{use of private header from outside its module: '__functional/unary_negate.h'}} -#include <__functional/weak_result_type.h> // expected-error@*:* {{use of private header from outside its module: '__functional/weak_result_type.h'}} -#include <__fwd/array.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/array.h'}} -#include <__fwd/fstream.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/fstream.h'}} -#include <__fwd/get.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/get.h'}} -#include <__fwd/hash.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/hash.h'}} -#include <__fwd/ios.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/ios.h'}} -#include <__fwd/istream.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/istream.h'}} -#include <__fwd/memory_resource.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/memory_resource.h'}} -#include <__fwd/ostream.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/ostream.h'}} -#include <__fwd/pair.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/pair.h'}} -#include <__fwd/span.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/span.h'}} -#include <__fwd/sstream.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/sstream.h'}} -#include <__fwd/streambuf.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/streambuf.h'}} -#include <__fwd/string.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/string.h'}} -#include <__fwd/string_view.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/string_view.h'}} -#include <__fwd/subrange.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/subrange.h'}} -#include <__fwd/tuple.h> // expected-error@*:* {{use of private header from outside its module: '__fwd/tuple.h'}} -#include <__ios/fpos.h> // expected-error@*:* {{use of private header from outside its module: '__ios/fpos.h'}} -#include <__iterator/access.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/access.h'}} -#include <__iterator/advance.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/advance.h'}} -#include <__iterator/back_insert_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/back_insert_iterator.h'}} -#include <__iterator/bounded_iter.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/bounded_iter.h'}} -#include <__iterator/common_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/common_iterator.h'}} -#include <__iterator/concepts.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/concepts.h'}} -#include <__iterator/counted_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/counted_iterator.h'}} -#include <__iterator/data.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/data.h'}} -#include <__iterator/default_sentinel.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/default_sentinel.h'}} -#include <__iterator/distance.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/distance.h'}} -#include <__iterator/empty.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/empty.h'}} -#include <__iterator/erase_if_container.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/erase_if_container.h'}} -#include <__iterator/front_insert_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/front_insert_iterator.h'}} -#include <__iterator/incrementable_traits.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/incrementable_traits.h'}} -#include <__iterator/indirectly_comparable.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/indirectly_comparable.h'}} -#include <__iterator/insert_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/insert_iterator.h'}} -#include <__iterator/istream_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/istream_iterator.h'}} -#include <__iterator/istreambuf_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/istreambuf_iterator.h'}} -#include <__iterator/iter_move.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/iter_move.h'}} -#include <__iterator/iter_swap.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/iter_swap.h'}} -#include <__iterator/iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/iterator.h'}} -#include <__iterator/iterator_traits.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/iterator_traits.h'}} -#include <__iterator/iterator_with_data.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/iterator_with_data.h'}} -#include <__iterator/mergeable.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/mergeable.h'}} -#include <__iterator/move_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/move_iterator.h'}} -#include <__iterator/move_sentinel.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/move_sentinel.h'}} -#include <__iterator/next.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/next.h'}} -#include <__iterator/ostream_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/ostream_iterator.h'}} -#include <__iterator/ostreambuf_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/ostreambuf_iterator.h'}} -#include <__iterator/permutable.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/permutable.h'}} -#include <__iterator/prev.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/prev.h'}} -#include <__iterator/projected.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/projected.h'}} -#include <__iterator/readable_traits.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/readable_traits.h'}} -#include <__iterator/reverse_access.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/reverse_access.h'}} -#include <__iterator/reverse_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/reverse_iterator.h'}} -#include <__iterator/segmented_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/segmented_iterator.h'}} -#include <__iterator/size.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/size.h'}} -#include <__iterator/sortable.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/sortable.h'}} -#include <__iterator/unreachable_sentinel.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/unreachable_sentinel.h'}} -#include <__iterator/wrap_iter.h> // expected-error@*:* {{use of private header from outside its module: '__iterator/wrap_iter.h'}} -#include <__locale> // expected-error@*:* {{use of private header from outside its module: '__locale'}} -#include <__mbstate_t.h> // expected-error@*:* {{use of private header from outside its module: '__mbstate_t.h'}} -#include <__mdspan/extents.h> // expected-error@*:* {{use of private header from outside its module: '__mdspan/extents.h'}} -#include <__memory/addressof.h> // expected-error@*:* {{use of private header from outside its module: '__memory/addressof.h'}} -#include <__memory/align.h> // expected-error@*:* {{use of private header from outside its module: '__memory/align.h'}} -#include <__memory/aligned_alloc.h> // expected-error@*:* {{use of private header from outside its module: '__memory/aligned_alloc.h'}} -#include <__memory/allocate_at_least.h> // expected-error@*:* {{use of private header from outside its module: '__memory/allocate_at_least.h'}} -#include <__memory/allocation_guard.h> // expected-error@*:* {{use of private header from outside its module: '__memory/allocation_guard.h'}} -#include <__memory/allocator.h> // expected-error@*:* {{use of private header from outside its module: '__memory/allocator.h'}} -#include <__memory/allocator_arg_t.h> // expected-error@*:* {{use of private header from outside its module: '__memory/allocator_arg_t.h'}} -#include <__memory/allocator_destructor.h> // expected-error@*:* {{use of private header from outside its module: '__memory/allocator_destructor.h'}} -#include <__memory/allocator_traits.h> // expected-error@*:* {{use of private header from outside its module: '__memory/allocator_traits.h'}} -#include <__memory/assume_aligned.h> // expected-error@*:* {{use of private header from outside its module: '__memory/assume_aligned.h'}} -#include <__memory/auto_ptr.h> // expected-error@*:* {{use of private header from outside its module: '__memory/auto_ptr.h'}} -#include <__memory/builtin_new_allocator.h> // expected-error@*:* {{use of private header from outside its module: '__memory/builtin_new_allocator.h'}} -#include <__memory/compressed_pair.h> // expected-error@*:* {{use of private header from outside its module: '__memory/compressed_pair.h'}} -#include <__memory/concepts.h> // expected-error@*:* {{use of private header from outside its module: '__memory/concepts.h'}} -#include <__memory/construct_at.h> // expected-error@*:* {{use of private header from outside its module: '__memory/construct_at.h'}} -#include <__memory/destruct_n.h> // expected-error@*:* {{use of private header from outside its module: '__memory/destruct_n.h'}} -#include <__memory/pointer_traits.h> // expected-error@*:* {{use of private header from outside its module: '__memory/pointer_traits.h'}} -#include <__memory/ranges_construct_at.h> // expected-error@*:* {{use of private header from outside its module: '__memory/ranges_construct_at.h'}} -#include <__memory/ranges_uninitialized_algorithms.h> // expected-error@*:* {{use of private header from outside its module: '__memory/ranges_uninitialized_algorithms.h'}} -#include <__memory/raw_storage_iterator.h> // expected-error@*:* {{use of private header from outside its module: '__memory/raw_storage_iterator.h'}} -#include <__memory/shared_ptr.h> // expected-error@*:* {{use of private header from outside its module: '__memory/shared_ptr.h'}} -#include <__memory/swap_allocator.h> // expected-error@*:* {{use of private header from outside its module: '__memory/swap_allocator.h'}} -#include <__memory/temp_value.h> // expected-error@*:* {{use of private header from outside its module: '__memory/temp_value.h'}} -#include <__memory/temporary_buffer.h> // expected-error@*:* {{use of private header from outside its module: '__memory/temporary_buffer.h'}} -#include <__memory/uninitialized_algorithms.h> // expected-error@*:* {{use of private header from outside its module: '__memory/uninitialized_algorithms.h'}} -#include <__memory/unique_ptr.h> // expected-error@*:* {{use of private header from outside its module: '__memory/unique_ptr.h'}} -#include <__memory/uses_allocator.h> // expected-error@*:* {{use of private header from outside its module: '__memory/uses_allocator.h'}} -#include <__memory/uses_allocator_construction.h> // expected-error@*:* {{use of private header from outside its module: '__memory/uses_allocator_construction.h'}} -#include <__memory/voidify.h> // expected-error@*:* {{use of private header from outside its module: '__memory/voidify.h'}} -#include <__memory_resource/memory_resource.h> // expected-error@*:* {{use of private header from outside its module: '__memory_resource/memory_resource.h'}} -#include <__memory_resource/monotonic_buffer_resource.h> // expected-error@*:* {{use of private header from outside its module: '__memory_resource/monotonic_buffer_resource.h'}} -#include <__memory_resource/polymorphic_allocator.h> // expected-error@*:* {{use of private header from outside its module: '__memory_resource/polymorphic_allocator.h'}} -#include <__memory_resource/pool_options.h> // expected-error@*:* {{use of private header from outside its module: '__memory_resource/pool_options.h'}} -#include <__memory_resource/synchronized_pool_resource.h> // expected-error@*:* {{use of private header from outside its module: '__memory_resource/synchronized_pool_resource.h'}} -#include <__memory_resource/unsynchronized_pool_resource.h> // expected-error@*:* {{use of private header from outside its module: '__memory_resource/unsynchronized_pool_resource.h'}} -#include <__mutex/lock_guard.h> // expected-error@*:* {{use of private header from outside its module: '__mutex/lock_guard.h'}} -#include <__mutex/mutex.h> // expected-error@*:* {{use of private header from outside its module: '__mutex/mutex.h'}} -#include <__mutex/tag_types.h> // expected-error@*:* {{use of private header from outside its module: '__mutex/tag_types.h'}} -#include <__mutex/unique_lock.h> // expected-error@*:* {{use of private header from outside its module: '__mutex/unique_lock.h'}} -#include <__node_handle> // expected-error@*:* {{use of private header from outside its module: '__node_handle'}} -#include <__numeric/accumulate.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/accumulate.h'}} -#include <__numeric/adjacent_difference.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/adjacent_difference.h'}} -#include <__numeric/exclusive_scan.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/exclusive_scan.h'}} -#include <__numeric/gcd_lcm.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/gcd_lcm.h'}} -#include <__numeric/inclusive_scan.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/inclusive_scan.h'}} -#include <__numeric/inner_product.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/inner_product.h'}} -#include <__numeric/iota.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/iota.h'}} -#include <__numeric/midpoint.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/midpoint.h'}} -#include <__numeric/partial_sum.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/partial_sum.h'}} -#include <__numeric/reduce.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/reduce.h'}} -#include <__numeric/transform_exclusive_scan.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/transform_exclusive_scan.h'}} -#include <__numeric/transform_inclusive_scan.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/transform_inclusive_scan.h'}} -#include <__numeric/transform_reduce.h> // expected-error@*:* {{use of private header from outside its module: '__numeric/transform_reduce.h'}} -#include <__random/bernoulli_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/bernoulli_distribution.h'}} -#include <__random/binomial_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/binomial_distribution.h'}} -#include <__random/cauchy_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/cauchy_distribution.h'}} -#include <__random/chi_squared_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/chi_squared_distribution.h'}} -#include <__random/clamp_to_integral.h> // expected-error@*:* {{use of private header from outside its module: '__random/clamp_to_integral.h'}} -#include <__random/default_random_engine.h> // expected-error@*:* {{use of private header from outside its module: '__random/default_random_engine.h'}} -#include <__random/discard_block_engine.h> // expected-error@*:* {{use of private header from outside its module: '__random/discard_block_engine.h'}} -#include <__random/discrete_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/discrete_distribution.h'}} -#include <__random/exponential_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/exponential_distribution.h'}} -#include <__random/extreme_value_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/extreme_value_distribution.h'}} -#include <__random/fisher_f_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/fisher_f_distribution.h'}} -#include <__random/gamma_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/gamma_distribution.h'}} -#include <__random/generate_canonical.h> // expected-error@*:* {{use of private header from outside its module: '__random/generate_canonical.h'}} -#include <__random/geometric_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/geometric_distribution.h'}} -#include <__random/independent_bits_engine.h> // expected-error@*:* {{use of private header from outside its module: '__random/independent_bits_engine.h'}} -#include <__random/is_seed_sequence.h> // expected-error@*:* {{use of private header from outside its module: '__random/is_seed_sequence.h'}} -#include <__random/is_valid.h> // expected-error@*:* {{use of private header from outside its module: '__random/is_valid.h'}} -#include <__random/knuth_b.h> // expected-error@*:* {{use of private header from outside its module: '__random/knuth_b.h'}} -#include <__random/linear_congruential_engine.h> // expected-error@*:* {{use of private header from outside its module: '__random/linear_congruential_engine.h'}} -#include <__random/log2.h> // expected-error@*:* {{use of private header from outside its module: '__random/log2.h'}} -#include <__random/lognormal_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/lognormal_distribution.h'}} -#include <__random/mersenne_twister_engine.h> // expected-error@*:* {{use of private header from outside its module: '__random/mersenne_twister_engine.h'}} -#include <__random/negative_binomial_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/negative_binomial_distribution.h'}} -#include <__random/normal_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/normal_distribution.h'}} -#include <__random/piecewise_constant_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/piecewise_constant_distribution.h'}} -#include <__random/piecewise_linear_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/piecewise_linear_distribution.h'}} -#include <__random/poisson_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/poisson_distribution.h'}} -#include <__random/random_device.h> // expected-error@*:* {{use of private header from outside its module: '__random/random_device.h'}} -#include <__random/ranlux.h> // expected-error@*:* {{use of private header from outside its module: '__random/ranlux.h'}} -#include <__random/seed_seq.h> // expected-error@*:* {{use of private header from outside its module: '__random/seed_seq.h'}} -#include <__random/shuffle_order_engine.h> // expected-error@*:* {{use of private header from outside its module: '__random/shuffle_order_engine.h'}} -#include <__random/student_t_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/student_t_distribution.h'}} -#include <__random/subtract_with_carry_engine.h> // expected-error@*:* {{use of private header from outside its module: '__random/subtract_with_carry_engine.h'}} -#include <__random/uniform_int_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/uniform_int_distribution.h'}} -#include <__random/uniform_random_bit_generator.h> // expected-error@*:* {{use of private header from outside its module: '__random/uniform_random_bit_generator.h'}} -#include <__random/uniform_real_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/uniform_real_distribution.h'}} -#include <__random/weibull_distribution.h> // expected-error@*:* {{use of private header from outside its module: '__random/weibull_distribution.h'}} -#include <__ranges/access.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/access.h'}} -#include <__ranges/all.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/all.h'}} -#include <__ranges/as_rvalue_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/as_rvalue_view.h'}} -#include <__ranges/common_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/common_view.h'}} -#include <__ranges/concepts.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/concepts.h'}} -#include <__ranges/container_compatible_range.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/container_compatible_range.h'}} -#include <__ranges/copyable_box.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/copyable_box.h'}} -#include <__ranges/counted.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/counted.h'}} -#include <__ranges/dangling.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/dangling.h'}} -#include <__ranges/data.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/data.h'}} -#include <__ranges/drop_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/drop_view.h'}} -#include <__ranges/drop_while_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/drop_while_view.h'}} -#include <__ranges/elements_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/elements_view.h'}} -#include <__ranges/empty.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/empty.h'}} -#include <__ranges/empty_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/empty_view.h'}} -#include <__ranges/enable_borrowed_range.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/enable_borrowed_range.h'}} -#include <__ranges/enable_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/enable_view.h'}} -#include <__ranges/filter_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/filter_view.h'}} -#include <__ranges/from_range.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/from_range.h'}} -#include <__ranges/iota_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/iota_view.h'}} -#include <__ranges/istream_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/istream_view.h'}} -#include <__ranges/join_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/join_view.h'}} -#include <__ranges/lazy_split_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/lazy_split_view.h'}} -#include <__ranges/non_propagating_cache.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/non_propagating_cache.h'}} -#include <__ranges/owning_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/owning_view.h'}} -#include <__ranges/range_adaptor.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/range_adaptor.h'}} -#include <__ranges/rbegin.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/rbegin.h'}} -#include <__ranges/ref_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/ref_view.h'}} -#include <__ranges/rend.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/rend.h'}} -#include <__ranges/reverse_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/reverse_view.h'}} -#include <__ranges/single_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/single_view.h'}} -#include <__ranges/size.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/size.h'}} -#include <__ranges/split_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/split_view.h'}} -#include <__ranges/subrange.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/subrange.h'}} -#include <__ranges/take_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/take_view.h'}} -#include <__ranges/take_while_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/take_while_view.h'}} -#include <__ranges/transform_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/transform_view.h'}} -#include <__ranges/view_interface.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/view_interface.h'}} -#include <__ranges/views.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/views.h'}} -#include <__ranges/zip_view.h> // expected-error@*:* {{use of private header from outside its module: '__ranges/zip_view.h'}} -#include <__split_buffer> // expected-error@*:* {{use of private header from outside its module: '__split_buffer'}} -#include <__std_mbstate_t.h> // expected-error@*:* {{use of private header from outside its module: '__std_mbstate_t.h'}} -#include <__stop_token/atomic_unique_lock.h> // expected-error@*:* {{use of private header from outside its module: '__stop_token/atomic_unique_lock.h'}} -#include <__stop_token/intrusive_list_view.h> // expected-error@*:* {{use of private header from outside its module: '__stop_token/intrusive_list_view.h'}} -#include <__stop_token/intrusive_shared_ptr.h> // expected-error@*:* {{use of private header from outside its module: '__stop_token/intrusive_shared_ptr.h'}} -#include <__string/char_traits.h> // expected-error@*:* {{use of private header from outside its module: '__string/char_traits.h'}} -#include <__string/constexpr_c_functions.h> // expected-error@*:* {{use of private header from outside its module: '__string/constexpr_c_functions.h'}} -#include <__string/extern_template_lists.h> // expected-error@*:* {{use of private header from outside its module: '__string/extern_template_lists.h'}} -#include <__system_error/errc.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/errc.h'}} -#include <__system_error/error_category.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/error_category.h'}} -#include <__system_error/error_code.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/error_code.h'}} -#include <__system_error/error_condition.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/error_condition.h'}} -#include <__system_error/system_error.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/system_error.h'}} -#include <__thread/poll_with_backoff.h> // expected-error@*:* {{use of private header from outside its module: '__thread/poll_with_backoff.h'}} -#include <__thread/timed_backoff_policy.h> // expected-error@*:* {{use of private header from outside its module: '__thread/timed_backoff_policy.h'}} -#include <__tuple/make_tuple_types.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/make_tuple_types.h'}} -#include <__tuple/pair_like.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/pair_like.h'}} -#include <__tuple/sfinae_helpers.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/sfinae_helpers.h'}} -#include <__tuple/tuple_element.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/tuple_element.h'}} -#include <__tuple/tuple_indices.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/tuple_indices.h'}} -#include <__tuple/tuple_like.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/tuple_like.h'}} -#include <__tuple/tuple_like_ext.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/tuple_like_ext.h'}} -#include <__tuple/tuple_size.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/tuple_size.h'}} -#include <__tuple/tuple_types.h> // expected-error@*:* {{use of private header from outside its module: '__tuple/tuple_types.h'}} -#include <__type_traits/add_const.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/add_const.h'}} -#include <__type_traits/add_cv.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/add_cv.h'}} -#include <__type_traits/add_lvalue_reference.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/add_lvalue_reference.h'}} -#include <__type_traits/add_pointer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/add_pointer.h'}} -#include <__type_traits/add_rvalue_reference.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/add_rvalue_reference.h'}} -#include <__type_traits/add_volatile.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/add_volatile.h'}} -#include <__type_traits/aligned_storage.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/aligned_storage.h'}} -#include <__type_traits/aligned_union.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/aligned_union.h'}} -#include <__type_traits/alignment_of.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/alignment_of.h'}} -#include <__type_traits/apply_cv.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/apply_cv.h'}} -#include <__type_traits/can_extract_key.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/can_extract_key.h'}} -#include <__type_traits/common_reference.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/common_reference.h'}} -#include <__type_traits/common_type.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/common_type.h'}} -#include <__type_traits/conditional.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/conditional.h'}} -#include <__type_traits/conjunction.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/conjunction.h'}} -#include <__type_traits/copy_cv.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/copy_cv.h'}} -#include <__type_traits/copy_cvref.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/copy_cvref.h'}} -#include <__type_traits/decay.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/decay.h'}} -#include <__type_traits/dependent_type.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/dependent_type.h'}} -#include <__type_traits/disjunction.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/disjunction.h'}} -#include <__type_traits/enable_if.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/enable_if.h'}} -#include <__type_traits/extent.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/extent.h'}} -#include <__type_traits/has_unique_object_representation.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/has_unique_object_representation.h'}} -#include <__type_traits/has_virtual_destructor.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/has_virtual_destructor.h'}} -#include <__type_traits/integral_constant.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/integral_constant.h'}} -#include <__type_traits/invoke.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/invoke.h'}} -#include <__type_traits/is_abstract.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_abstract.h'}} -#include <__type_traits/is_aggregate.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_aggregate.h'}} -#include <__type_traits/is_allocator.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_allocator.h'}} -#include <__type_traits/is_always_bitcastable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_always_bitcastable.h'}} -#include <__type_traits/is_arithmetic.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_arithmetic.h'}} -#include <__type_traits/is_array.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_array.h'}} -#include <__type_traits/is_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_assignable.h'}} -#include <__type_traits/is_base_of.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_base_of.h'}} -#include <__type_traits/is_bounded_array.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_bounded_array.h'}} -#include <__type_traits/is_callable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_callable.h'}} -#include <__type_traits/is_char_like_type.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_char_like_type.h'}} -#include <__type_traits/is_class.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_class.h'}} -#include <__type_traits/is_compound.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_compound.h'}} -#include <__type_traits/is_const.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_const.h'}} -#include <__type_traits/is_constant_evaluated.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_constant_evaluated.h'}} -#include <__type_traits/is_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_constructible.h'}} -#include <__type_traits/is_convertible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_convertible.h'}} -#include <__type_traits/is_copy_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_copy_assignable.h'}} -#include <__type_traits/is_copy_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_copy_constructible.h'}} -#include <__type_traits/is_core_convertible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_core_convertible.h'}} -#include <__type_traits/is_default_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_default_constructible.h'}} -#include <__type_traits/is_destructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_destructible.h'}} -#include <__type_traits/is_empty.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_empty.h'}} -#include <__type_traits/is_enum.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_enum.h'}} -#include <__type_traits/is_equality_comparable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_equality_comparable.h'}} -#include <__type_traits/is_execution_policy.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_execution_policy.h'}} -#include <__type_traits/is_final.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_final.h'}} -#include <__type_traits/is_floating_point.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_floating_point.h'}} -#include <__type_traits/is_function.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_function.h'}} -#include <__type_traits/is_fundamental.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_fundamental.h'}} -#include <__type_traits/is_implicitly_default_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_implicitly_default_constructible.h'}} -#include <__type_traits/is_integral.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_integral.h'}} -#include <__type_traits/is_literal_type.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_literal_type.h'}} -#include <__type_traits/is_member_function_pointer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_member_function_pointer.h'}} -#include <__type_traits/is_member_object_pointer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_member_object_pointer.h'}} -#include <__type_traits/is_member_pointer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_member_pointer.h'}} -#include <__type_traits/is_move_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_move_assignable.h'}} -#include <__type_traits/is_move_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_move_constructible.h'}} -#include <__type_traits/is_nothrow_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_assignable.h'}} -#include <__type_traits/is_nothrow_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_constructible.h'}} -#include <__type_traits/is_nothrow_convertible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_convertible.h'}} -#include <__type_traits/is_nothrow_copy_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_copy_assignable.h'}} -#include <__type_traits/is_nothrow_copy_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_copy_constructible.h'}} -#include <__type_traits/is_nothrow_default_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_default_constructible.h'}} -#include <__type_traits/is_nothrow_destructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_destructible.h'}} -#include <__type_traits/is_nothrow_move_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_move_assignable.h'}} -#include <__type_traits/is_nothrow_move_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_nothrow_move_constructible.h'}} -#include <__type_traits/is_null_pointer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_null_pointer.h'}} -#include <__type_traits/is_object.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_object.h'}} -#include <__type_traits/is_pod.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_pod.h'}} -#include <__type_traits/is_pointer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_pointer.h'}} -#include <__type_traits/is_polymorphic.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_polymorphic.h'}} -#include <__type_traits/is_primary_template.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_primary_template.h'}} -#include <__type_traits/is_reference.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_reference.h'}} -#include <__type_traits/is_reference_wrapper.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_reference_wrapper.h'}} -#include <__type_traits/is_referenceable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_referenceable.h'}} -#include <__type_traits/is_same.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_same.h'}} -#include <__type_traits/is_scalar.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_scalar.h'}} -#include <__type_traits/is_scoped_enum.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_scoped_enum.h'}} -#include <__type_traits/is_signed.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_signed.h'}} -#include <__type_traits/is_signed_integer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_signed_integer.h'}} -#include <__type_traits/is_specialization.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_specialization.h'}} -#include <__type_traits/is_standard_layout.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_standard_layout.h'}} -#include <__type_traits/is_swappable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_swappable.h'}} -#include <__type_traits/is_trivial.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivial.h'}} -#include <__type_traits/is_trivially_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_assignable.h'}} -#include <__type_traits/is_trivially_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_constructible.h'}} -#include <__type_traits/is_trivially_copy_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_copy_assignable.h'}} -#include <__type_traits/is_trivially_copy_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_copy_constructible.h'}} -#include <__type_traits/is_trivially_copyable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_copyable.h'}} -#include <__type_traits/is_trivially_default_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_default_constructible.h'}} -#include <__type_traits/is_trivially_destructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_destructible.h'}} -#include <__type_traits/is_trivially_lexicographically_comparable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_lexicographically_comparable.h'}} -#include <__type_traits/is_trivially_move_assignable.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_move_assignable.h'}} -#include <__type_traits/is_trivially_move_constructible.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_trivially_move_constructible.h'}} -#include <__type_traits/is_unbounded_array.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_unbounded_array.h'}} -#include <__type_traits/is_union.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_union.h'}} -#include <__type_traits/is_unsigned.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_unsigned.h'}} -#include <__type_traits/is_unsigned_integer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_unsigned_integer.h'}} -#include <__type_traits/is_valid_expansion.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_valid_expansion.h'}} -#include <__type_traits/is_void.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_void.h'}} -#include <__type_traits/is_volatile.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/is_volatile.h'}} -#include <__type_traits/lazy.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/lazy.h'}} -#include <__type_traits/make_32_64_or_128_bit.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/make_32_64_or_128_bit.h'}} -#include <__type_traits/make_const_lvalue_ref.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/make_const_lvalue_ref.h'}} -#include <__type_traits/make_signed.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/make_signed.h'}} -#include <__type_traits/make_unsigned.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/make_unsigned.h'}} -#include <__type_traits/maybe_const.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/maybe_const.h'}} -#include <__type_traits/nat.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/nat.h'}} -#include <__type_traits/negation.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/negation.h'}} -#include <__type_traits/noexcept_move_assign_container.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/noexcept_move_assign_container.h'}} -#include <__type_traits/predicate_traits.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/predicate_traits.h'}} -#include <__type_traits/promote.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/promote.h'}} -#include <__type_traits/rank.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/rank.h'}} -#include <__type_traits/remove_all_extents.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_all_extents.h'}} -#include <__type_traits/remove_const.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_const.h'}} -#include <__type_traits/remove_const_ref.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_const_ref.h'}} -#include <__type_traits/remove_cv.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_cv.h'}} -#include <__type_traits/remove_cvref.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_cvref.h'}} -#include <__type_traits/remove_extent.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_extent.h'}} -#include <__type_traits/remove_pointer.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_pointer.h'}} -#include <__type_traits/remove_reference.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_reference.h'}} -#include <__type_traits/remove_volatile.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/remove_volatile.h'}} -#include <__type_traits/result_of.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/result_of.h'}} -#include <__type_traits/strip_signature.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/strip_signature.h'}} -#include <__type_traits/type_identity.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/type_identity.h'}} -#include <__type_traits/type_list.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/type_list.h'}} -#include <__type_traits/underlying_type.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/underlying_type.h'}} -#include <__type_traits/unwrap_ref.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/unwrap_ref.h'}} -#include <__type_traits/void_t.h> // expected-error@*:* {{use of private header from outside its module: '__type_traits/void_t.h'}} -#include <__utility/as_const.h> // expected-error@*:* {{use of private header from outside its module: '__utility/as_const.h'}} -#include <__utility/auto_cast.h> // expected-error@*:* {{use of private header from outside its module: '__utility/auto_cast.h'}} -#include <__utility/cmp.h> // expected-error@*:* {{use of private header from outside its module: '__utility/cmp.h'}} -#include <__utility/convert_to_integral.h> // expected-error@*:* {{use of private header from outside its module: '__utility/convert_to_integral.h'}} -#include <__utility/declval.h> // expected-error@*:* {{use of private header from outside its module: '__utility/declval.h'}} -#include <__utility/exception_guard.h> // expected-error@*:* {{use of private header from outside its module: '__utility/exception_guard.h'}} -#include <__utility/exchange.h> // expected-error@*:* {{use of private header from outside its module: '__utility/exchange.h'}} -#include <__utility/forward.h> // expected-error@*:* {{use of private header from outside its module: '__utility/forward.h'}} -#include <__utility/forward_like.h> // expected-error@*:* {{use of private header from outside its module: '__utility/forward_like.h'}} -#include <__utility/in_place.h> // expected-error@*:* {{use of private header from outside its module: '__utility/in_place.h'}} -#include <__utility/integer_sequence.h> // expected-error@*:* {{use of private header from outside its module: '__utility/integer_sequence.h'}} -#include <__utility/move.h> // expected-error@*:* {{use of private header from outside its module: '__utility/move.h'}} -#include <__utility/pair.h> // expected-error@*:* {{use of private header from outside its module: '__utility/pair.h'}} -#include <__utility/piecewise_construct.h> // expected-error@*:* {{use of private header from outside its module: '__utility/piecewise_construct.h'}} -#include <__utility/priority_tag.h> // expected-error@*:* {{use of private header from outside its module: '__utility/priority_tag.h'}} -#include <__utility/rel_ops.h> // expected-error@*:* {{use of private header from outside its module: '__utility/rel_ops.h'}} -#include <__utility/swap.h> // expected-error@*:* {{use of private header from outside its module: '__utility/swap.h'}} -#include <__utility/terminate_on_exception.h> // expected-error@*:* {{use of private header from outside its module: '__utility/terminate_on_exception.h'}} -#include <__utility/to_underlying.h> // expected-error@*:* {{use of private header from outside its module: '__utility/to_underlying.h'}} -#include <__utility/unreachable.h> // expected-error@*:* {{use of private header from outside its module: '__utility/unreachable.h'}} -#include <__variant/monostate.h> // expected-error@*:* {{use of private header from outside its module: '__variant/monostate.h'}} -// GENERATED-MARKER diff --git a/libcxx/utils/generate_header_tests.py b/libcxx/utils/generate_header_tests.py --- a/libcxx/utils/generate_header_tests.py +++ b/libcxx/utils/generate_header_tests.py @@ -77,13 +77,6 @@ test = pathlib.Path(os.path.join(monorepo_root, "libcxx", "test")) assert monorepo_root.exists() - produce(test.joinpath("libcxx/clang_tidy.sh.cpp"), libcxx.test.header_information.variables) - produce(test.joinpath("libcxx/double_include.sh.cpp"), libcxx.test.header_information.variables) - produce(test.joinpath("libcxx/min_max_macros.compile.pass.cpp"), libcxx.test.header_information.variables) - produce(test.joinpath("libcxx/modules_include.sh.cpp"), libcxx.test.header_information.variables) - produce(test.joinpath("libcxx/nasty_macros.compile.pass.cpp"), libcxx.test.header_information.variables) - produce(test.joinpath("libcxx/no_assert_include.compile.pass.cpp"), libcxx.test.header_information.variables) - produce(test.joinpath("libcxx/private_headers.verify.cpp"), libcxx.test.header_information.variables) produce(test.joinpath("libcxx/transitive_includes.sh.cpp"), libcxx.test.header_information.variables)