зеркало из https://github.com/microsoft/STL.git
238 строки
5.4 KiB
C++
238 строки
5.4 KiB
C++
// Copyright (c) Microsoft Corporation.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
// This file is intended as a test resource for tools that want to verify that they can parse all MSVC standard
|
|
// library headers without warnings. This file disables deprecations, so it should not be included in programs directly.
|
|
//
|
|
// This file may be changed, renamed, or removed at any time.
|
|
|
|
#ifndef __MSVC_ALL_PUBLIC_HEADERS_HPP
|
|
#define __MSVC_ALL_PUBLIC_HEADERS_HPP
|
|
|
|
#pragma warning(push)
|
|
#pragma warning(1 : 4668) // 'MEOW' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
|
|
|
|
// All STL headers should protect themselves from macroized new.
|
|
#pragma push_macro("new")
|
|
#undef new
|
|
#define new WILL NOT COMPILE
|
|
|
|
// VSO-768746: mbctype.h macroizes _MS, _MP, _M1, and _M2. Include it first for test coverage.
|
|
#ifndef _MSVC_TESTING_NVCC
|
|
#include <mbctype.h>
|
|
#endif // _MSVC_TESTING_NVCC
|
|
|
|
#if 1 // TRANSITION, OS-17090155 (UCRT)
|
|
#define _CRT_DECLARE_NONSTDC_NAMES 0
|
|
#ifndef _MSVC_TESTING_NVCC
|
|
#include <sys/stat.h>
|
|
#include <sys/timeb.h>
|
|
#include <sys/utime.h>
|
|
#endif // _MSVC_TESTING_NVCC
|
|
#undef _CRT_DECLARE_NONSTDC_NAMES
|
|
#endif // TRANSITION, OS-17090155 (UCRT)
|
|
|
|
#define _SILENCE_CXX17_C_HEADER_DEPRECATION_WARNING
|
|
#define _SILENCE_CXX17_STRSTREAM_DEPRECATION_WARNING
|
|
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING
|
|
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
|
|
|
|
// Core STL Headers
|
|
#include <bit>
|
|
#include <compare>
|
|
#include <concepts>
|
|
#include <coroutine>
|
|
#include <initializer_list>
|
|
#include <limits>
|
|
#include <numbers>
|
|
#include <ratio>
|
|
#include <source_location>
|
|
#include <type_traits>
|
|
#include <utility>
|
|
#include <version>
|
|
|
|
// Core C Wrapper Headers
|
|
#include <cassert>
|
|
#include <cctype>
|
|
#include <cerrno>
|
|
#include <cfenv>
|
|
#include <cfloat>
|
|
#include <cinttypes>
|
|
#include <climits>
|
|
#include <clocale>
|
|
#include <csetjmp>
|
|
#include <csignal>
|
|
#include <cstdarg>
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
#include <cstring>
|
|
#include <ctime>
|
|
#include <cuchar>
|
|
#include <cwchar>
|
|
#include <cwctype>
|
|
|
|
#ifndef _CORE_HEADERS_ONLY
|
|
|
|
// Non-Core STL Headers
|
|
#include <algorithm>
|
|
#include <any>
|
|
#include <array>
|
|
#include <bitset>
|
|
#include <charconv>
|
|
#include <chrono>
|
|
#include <codecvt>
|
|
#include <complex>
|
|
#include <deque>
|
|
#include <exception>
|
|
#include <filesystem>
|
|
#include <format>
|
|
#include <forward_list>
|
|
#include <fstream>
|
|
#include <functional>
|
|
#include <hash_map>
|
|
#include <hash_set>
|
|
#include <iomanip>
|
|
#include <ios>
|
|
#include <iosfwd>
|
|
#include <iostream>
|
|
#include <istream>
|
|
#include <iterator>
|
|
#include <list>
|
|
#include <locale>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <memory_resource>
|
|
#include <new>
|
|
#include <numeric>
|
|
#include <optional>
|
|
#include <ostream>
|
|
#include <queue>
|
|
#include <random>
|
|
#include <ranges>
|
|
#include <regex>
|
|
#include <scoped_allocator>
|
|
#include <set>
|
|
#include <span>
|
|
#include <sstream>
|
|
#include <stack>
|
|
#include <stdexcept>
|
|
#include <streambuf>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <strstream>
|
|
#include <syncstream>
|
|
#include <system_error>
|
|
#include <tuple>
|
|
#include <typeindex>
|
|
#include <typeinfo>
|
|
#include <unordered_map>
|
|
#include <unordered_set>
|
|
#include <valarray>
|
|
#include <variant>
|
|
#include <vector>
|
|
|
|
#ifndef _M_CEE_PURE
|
|
#include <atomic>
|
|
#include <barrier>
|
|
#include <latch>
|
|
#include <semaphore>
|
|
#include <stop_token>
|
|
#endif // _M_CEE_PURE
|
|
|
|
#ifndef _M_CEE
|
|
#include <condition_variable>
|
|
#include <execution>
|
|
#include <future>
|
|
#include <mutex>
|
|
#include <shared_mutex>
|
|
#include <thread>
|
|
#endif // _M_CEE
|
|
|
|
// Non-Core C Wrapper Headers
|
|
#include <ccomplex>
|
|
#include <ciso646>
|
|
#include <cmath>
|
|
#include <cstdalign>
|
|
#include <cstdbool>
|
|
#include <ctgmath>
|
|
|
|
// Non-Core Experimental Headers
|
|
#include <experimental/deque>
|
|
#include <experimental/filesystem>
|
|
#include <experimental/forward_list>
|
|
#include <experimental/list>
|
|
#include <experimental/map>
|
|
#include <experimental/set>
|
|
#include <experimental/string>
|
|
#include <experimental/unordered_map>
|
|
#include <experimental/unordered_set>
|
|
#include <experimental/vector>
|
|
|
|
#endif // _CORE_HEADERS_ONLY
|
|
|
|
#ifndef _MSVC_TESTING_NVCC
|
|
#include <assert.h>
|
|
#include <conio.h>
|
|
#include <crtdbg.h>
|
|
#include <ctype.h>
|
|
#include <direct.h>
|
|
#include <dos.h>
|
|
#include <errno.h>
|
|
#include <excpt.h>
|
|
#include <fcntl.h>
|
|
#include <fenv.h>
|
|
#include <float.h>
|
|
#include <intrin.h>
|
|
#include <inttypes.h>
|
|
#include <io.h>
|
|
#include <iso646.h>
|
|
#include <limits.h>
|
|
#include <locale.h>
|
|
#include <malloc.h>
|
|
#include <math.h>
|
|
#include <mbstring.h>
|
|
#include <memory.h>
|
|
#include <minmax.h>
|
|
#include <process.h>
|
|
#include <safeint.h>
|
|
#include <sal.h>
|
|
#include <search.h>
|
|
#include <setjmp.h>
|
|
#include <share.h>
|
|
#include <signal.h>
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <sys/locking.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/timeb.h>
|
|
#include <sys/types.h>
|
|
#include <sys/utime.h>
|
|
#include <tchar.h>
|
|
#include <time.h>
|
|
#include <uchar.h>
|
|
#include <wchar.h>
|
|
#include <wctype.h>
|
|
|
|
#ifndef _CORE_HEADERS_ONLY
|
|
#include <complex.h>
|
|
#include <new.h>
|
|
#endif // _CORE_HEADERS_ONLY
|
|
|
|
#ifndef _M_CEE_PURE
|
|
#include <fpieee.h>
|
|
#endif // _M_CEE_PURE
|
|
#endif // _MSVC_TESTING_NVCC
|
|
|
|
#pragma pop_macro("new")
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif // __MSVC_ALL_PUBLIC_HEADERS_HPP
|