//===----------------------------------------------------------------------===// // // 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=.* --config-file=%S/../../.clang-tidy -- -Wweak-vtables %{compile_flags} -fno-modules // Prevent from generating deprecated warnings for this test. #if defined(__DEPRECATED) # undef __DEPRECATED #endif /* 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 #include #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 #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 #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 && !defined(_LIBCPP_HAS_NO_EXPERIMENTAL_COROUTINES) # 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 #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 #include #include // GENERATED-MARKER