From cfac780546efe3a555fbbd62474bd276ff09adfa Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 15 Jul 2021 22:23:25 +0700 Subject: [PATCH] use same STL prefix for all headers Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com> --- stl/inc/any | 2 +- stl/inc/barrier | 2 +- stl/inc/bit | 2 +- stl/inc/charconv | 2 +- stl/inc/compare | 2 +- stl/inc/concepts | 2 +- stl/inc/coroutine | 8 ++++---- stl/inc/execution | 2 +- stl/inc/filesystem | 2 +- stl/inc/format | 4 ++-- stl/inc/latch | 2 +- stl/inc/memory_resource | 2 +- stl/inc/numbers | 2 +- stl/inc/ranges | 4 ++-- stl/inc/semaphore | 2 +- stl/inc/source_location | 2 +- stl/inc/span | 2 +- stl/inc/stop_token | 2 +- stl/inc/string_view | 2 +- stl/inc/syncstream | 2 +- stl/inc/variant | 2 +- stl/inc/yvals_core.h | 2 +- 22 files changed, 27 insertions(+), 27 deletions(-) diff --git a/stl/inc/any b/stl/inc/any index 60ae9daf765..9ad1e7888ed 100644 --- a/stl/inc/any +++ b/stl/inc/any @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4049", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++17 or later.")) #else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv #include #include diff --git a/stl/inc/barrier b/stl/inc/barrier index b206597d0b7..66edb248e34 100644 --- a/stl/inc/barrier +++ b/stl/inc/barrier @@ -14,7 +14,7 @@ #endif // _M_CEE_PURE #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include diff --git a/stl/inc/bit b/stl/inc/bit index e167b58ee4c..7eea8526315 100644 --- a/stl/inc/bit +++ b/stl/inc/bit @@ -9,7 +9,7 @@ #include #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4035", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include diff --git a/stl/inc/charconv b/stl/inc/charconv index da18872d4b7..2945a3ddfbf 100644 --- a/stl/inc/charconv +++ b/stl/inc/charconv @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4050", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++17 or later.")) #else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv #include #include diff --git a/stl/inc/compare b/stl/inc/compare index 81e0c05d5be..2d714ec4b74 100644 --- a/stl/inc/compare +++ b/stl/inc/compare @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4036", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #ifdef __cpp_lib_concepts #include diff --git a/stl/inc/concepts b/stl/inc/concepts index c8c2b09d8e5..5fd658e2725 100644 --- a/stl/inc/concepts +++ b/stl/inc/concepts @@ -11,7 +11,7 @@ #ifndef __cpp_lib_concepts #pragma message( \ - _WARNING_MESSAGE("STL4037", "The contents of are available only with C++20 concepts support.")) + _WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 concepts support.")) #else // ^^^ !defined(__cpp_lib_concepts) / defined(__cpp_lib_concepts) vvv #include #include diff --git a/stl/inc/coroutine b/stl/inc/coroutine index 53740f4f9a2..185fb015536 100644 --- a/stl/inc/coroutine +++ b/stl/inc/coroutine @@ -10,13 +10,13 @@ #if _STL_COMPILER_PREPROCESSOR #ifdef _RESUMABLE_FUNCTIONS_SUPPORTED -#pragma message(_WARNING_MESSAGE("STL4039", "The contents of are not available with /await.")) -#pragma message(_WARNING_MESSAGE("STL4039", "Remove /await or use /await:strict for standard coroutines.")) -#pragma message(_WARNING_MESSAGE("STL4039", "Use for legacy /await support.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are not available with /await.")) +#pragma message(_WARNING_MESSAGE("STL4033", "Remove /await or use /await:strict for standard coroutines.")) +#pragma message(_WARNING_MESSAGE("STL4033", "Use for legacy /await support.")) #else // ^^^ /await ^^^ / vvv no /await vvv #ifndef __cpp_lib_coroutine #pragma message(_WARNING_MESSAGE( \ - "STL4038", "The contents of are available only with C++20 or later or /await:strict.")) + "STL4033", "The contents of are available only with C++20 or later or /await:strict.")) #else // ^^^ is not available / is available vvv #ifndef _ALLOW_COROUTINE_ABI_MISMATCH #pragma detect_mismatch("_COROUTINE_ABI", "2") diff --git a/stl/inc/execution b/stl/inc/execution index d727b333848..8f98516255a 100644 --- a/stl/inc/execution +++ b/stl/inc/execution @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4051", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++17 or later.")) #else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv #include #include diff --git a/stl/inc/filesystem b/stl/inc/filesystem index 34725740c1a..3bc72b9e682 100644 --- a/stl/inc/filesystem +++ b/stl/inc/filesystem @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4052", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++17 or later.")) #else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv #include #include diff --git a/stl/inc/format b/stl/inc/format index fddd2c8d88b..fb6e572581e 100644 --- a/stl/inc/format +++ b/stl/inc/format @@ -41,8 +41,8 @@ #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_lib_format #pragma message(_WARNING_MESSAGE( \ - "STL4047", "The contents of are available only in c++latest mode with concepts support;")) -#pragma message(_WARNING_MESSAGE("STL4047", "see https://github.com/microsoft/STL/issues/1814 for details.")) + "STL4033", "The contents of are available only in c++latest mode with concepts support;")) +#pragma message(_WARNING_MESSAGE("STL4033", "see https://github.com/microsoft/STL/issues/1814 for details.")) #else // ^^^ !defined(__cpp_lib_format) / defined(__cpp_lib_format) vvv #include diff --git a/stl/inc/latch b/stl/inc/latch index 21c8f1a98df..18bc10e824f 100644 --- a/stl/inc/latch +++ b/stl/inc/latch @@ -14,7 +14,7 @@ #endif // _M_CEE_PURE #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4040", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include diff --git a/stl/inc/memory_resource b/stl/inc/memory_resource index cd855d89fe7..0eff030246e 100644 --- a/stl/inc/memory_resource +++ b/stl/inc/memory_resource @@ -11,7 +11,7 @@ #if !_HAS_CXX17 #pragma message( \ - _WARNING_MESSAGE("STL4053", "The contents of are available only with C++17 or later.")) + _WARNING_MESSAGE("STL4033", "The contents of are available only with C++17 or later.")) #else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv #include #include diff --git a/stl/inc/numbers b/stl/inc/numbers index d100d4647ec..635b29c6466 100644 --- a/stl/inc/numbers +++ b/stl/inc/numbers @@ -9,7 +9,7 @@ #include #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4041", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #ifdef __cpp_lib_concepts #include diff --git a/stl/inc/ranges b/stl/inc/ranges index 4f76d33cda9..af2bb2f07a5 100644 --- a/stl/inc/ranges +++ b/stl/inc/ranges @@ -10,8 +10,8 @@ #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_lib_ranges #pragma message(_WARNING_MESSAGE( \ - "STL4048", "The contents of are available only in c++latest mode with concepts support;")) -#pragma message(_WARNING_MESSAGE("STL4048", "see https://github.com/microsoft/STL/issues/1814 for details.")) + "STL4033", "The contents of are available only in c++latest mode with concepts support;")) +#pragma message(_WARNING_MESSAGE("STL4033", "see https://github.com/microsoft/STL/issues/1814 for details.")) #else // ^^^ !defined(__cpp_lib_ranges) / defined(__cpp_lib_ranges) vvv #include #include diff --git a/stl/inc/semaphore b/stl/inc/semaphore index 567238618bf..1c7e5e63b64 100644 --- a/stl/inc/semaphore +++ b/stl/inc/semaphore @@ -14,7 +14,7 @@ #endif // _M_CEE_PURE #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4042", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include diff --git a/stl/inc/source_location b/stl/inc/source_location index 8e3af3a282c..5c6565adae0 100644 --- a/stl/inc/source_location +++ b/stl/inc/source_location @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_consteval #pragma message( \ - _WARNING_MESSAGE("STL4043", "The contents of are available only with C++20 consteval support.")) + _WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 consteval support.")) #else // ^^^ !defined(__cpp_consteval) / defined(__cpp_consteval) vvv #include diff --git a/stl/inc/span b/stl/inc/span index 01814b1efd9..54bb148ec75 100644 --- a/stl/inc/span +++ b/stl/inc/span @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4044", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include #include diff --git a/stl/inc/stop_token b/stl/inc/stop_token index 2eeef96ce50..4ee85e72963 100644 --- a/stl/inc/stop_token +++ b/stl/inc/stop_token @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4045", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include diff --git a/stl/inc/string_view b/stl/inc/string_view index 0cdb921ffb0..fa6589f0888 100644 --- a/stl/inc/string_view +++ b/stl/inc/string_view @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4055", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++17 or later.")) #else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv #include #endif // _HAS_CXX17 diff --git a/stl/inc/syncstream b/stl/inc/syncstream index a5ead4e2fb6..d7fbda3d35d 100644 --- a/stl/inc/syncstream +++ b/stl/inc/syncstream @@ -9,7 +9,7 @@ #include #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4046", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include #include diff --git a/stl/inc/variant b/stl/inc/variant index 2672442f135..8f6dd0b401c 100644 --- a/stl/inc/variant +++ b/stl/inc/variant @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4054", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only with C++17 or later.")) #else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv #include #include diff --git a/stl/inc/yvals_core.h b/stl/inc/yvals_core.h index 1ce4f4c71f8..572471a6d25 100644 --- a/stl/inc/yvals_core.h +++ b/stl/inc/yvals_core.h @@ -1066,7 +1066,7 @@ #define _CXX17_DEPRECATE_POLYMORPHIC_ALLOCATOR_DESTROY #endif // ^^^ warning disabled ^^^ -// next warning number: STL4056 +// next warning number: STL4034 // P0619R4 Removing C++17-Deprecated Features #ifndef _HAS_FEATURES_REMOVED_IN_CXX20