From 3f35d069a5de5d64f4b392b67f87159776fd8bfd Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Sat, 7 May 2022 19:22:42 +0700 Subject: [PATCH] update warning number because #2583 uses STL4034 --- 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 | 2 +- stl/inc/latch | 2 +- stl/inc/memory_resource | 2 +- stl/inc/numbers | 2 +- stl/inc/optional | 2 +- stl/inc/ranges | 2 +- stl/inc/semaphore | 2 +- stl/inc/source_location | 2 +- stl/inc/span | 2 +- stl/inc/spanstream | 2 +- stl/inc/stdatomic.h | 2 +- stl/inc/stop_token | 2 +- stl/inc/string_view | 2 +- stl/inc/syncstream | 2 +- stl/inc/variant | 2 +- stl/inc/yvals_core.h | 4 ++-- 25 files changed, 29 insertions(+), 29 deletions(-) diff --git a/stl/inc/any b/stl/inc/any index ad3656c0d4..4b640ba9ea 100644 --- a/stl/inc/any +++ b/stl/inc/any @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 b206597d0b..d746bec75d 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("STL4035", "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 2c55093ca4..cafe457a91 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("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 6b2fa8f54f..7069b9ba37 100644 --- a/stl/inc/charconv +++ b/stl/inc/charconv @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 e49de52ccc..15c1dd297a 100644 --- a/stl/inc/compare +++ b/stl/inc/compare @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 2258fcdf7e..d6ba17d8a9 100644 --- a/stl/inc/concepts +++ b/stl/inc/concepts @@ -11,7 +11,7 @@ #ifndef __cpp_lib_concepts #pragma message( \ - _WARNING_MESSAGE("STL4034", "The contents of are available only with C++20 concepts support.")) + _WARNING_MESSAGE("STL4035", "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 f649a46c5a..ccfe766155 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("STL4034", "The contents of are not available with /await.")) -#pragma message(_WARNING_MESSAGE("STL4034", "Remove /await or use /await:strict for standard coroutines.")) -#pragma message(_WARNING_MESSAGE("STL4034", "Use for legacy /await support.")) +#pragma message(_WARNING_MESSAGE("STL4035", "The contents of are not available with /await.")) +#pragma message(_WARNING_MESSAGE("STL4035", "Remove /await or use /await:strict for standard coroutines.")) +#pragma message(_WARNING_MESSAGE("STL4035", "Use for legacy /await support.")) #else // ^^^ /await ^^^ / vvv no /await vvv #ifndef __cpp_lib_coroutine #define _MESSAGE "The contents of are available only with C++20 or later or /await:strict." -#pragma message(_WARNING_MESSAGE("STL4034", _MESSAGE)) +#pragma message(_WARNING_MESSAGE("STL4035", _MESSAGE)) #undef _MESSAGE // TRANSITION, DevCom-1479701 #else // ^^^ is not available / is available vvv #ifndef _ALLOW_COROUTINE_ABI_MISMATCH diff --git a/stl/inc/execution b/stl/inc/execution index dc96cfec0c..1012db8c8f 100644 --- a/stl/inc/execution +++ b/stl/inc/execution @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 041ba740d9..968371d171 100644 --- a/stl/inc/filesystem +++ b/stl/inc/filesystem @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 5832cb7988..8a163a19e8 100644 --- a/stl/inc/format +++ b/stl/inc/format @@ -40,7 +40,7 @@ #include #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_lib_format -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "The contents of are available only with C++20 or later.")) #else // ^^^ !defined(__cpp_lib_format) / defined(__cpp_lib_format) vvv #include <__msvc_format_ucd_tables.hpp> diff --git a/stl/inc/latch b/stl/inc/latch index d14a679f88..0b3bea5b5a 100644 --- a/stl/inc/latch +++ b/stl/inc/latch @@ -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("STL4035", "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 c9f71ab8b8..c4093efdd9 100644 --- a/stl/inc/memory_resource +++ b/stl/inc/memory_resource @@ -11,7 +11,7 @@ #if !_HAS_CXX17 #pragma message( \ - _WARNING_MESSAGE("STL4034", "The contents of are available only with C++17 or later.")) + _WARNING_MESSAGE("STL4035", "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 d12db435e8..f137440949 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("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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/optional b/stl/inc/optional index c9c11bb50d..96fcfcf4a6 100644 --- a/stl/inc/optional +++ b/stl/inc/optional @@ -9,7 +9,7 @@ #include #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "The contents of are available only with C++17 or later.")) #else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv #if _HAS_CXX20 #include diff --git a/stl/inc/ranges b/stl/inc/ranges index eeded7b7d3..d55bed5b90 100644 --- a/stl/inc/ranges +++ b/stl/inc/ranges @@ -9,7 +9,7 @@ #include #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_lib_ranges -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "The contents of are available only with C++20 or later.")) #else // ^^^ !defined(__cpp_lib_ranges) / defined(__cpp_lib_ranges) vvv #include <__msvc_int128.hpp> #include diff --git a/stl/inc/semaphore b/stl/inc/semaphore index c55f9d2c0a..67e4333b6e 100644 --- a/stl/inc/semaphore +++ b/stl/inc/semaphore @@ -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("STL4035", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include <__msvc_chrono.hpp> diff --git a/stl/inc/source_location b/stl/inc/source_location index 70c2c1b471..7f86e6d66e 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("STL4034", "The contents of are available only with C++20 consteval support.")) + _WARNING_MESSAGE("STL4035", "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 efd8229a89..f1ffa9ff67 100644 --- a/stl/inc/span +++ b/stl/inc/span @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX20 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "The contents of are available only with C++20 or later.")) #else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv #include #include diff --git a/stl/inc/spanstream b/stl/inc/spanstream index 485a3a5bd3..49e15d9cdf 100644 --- a/stl/inc/spanstream +++ b/stl/inc/spanstream @@ -9,7 +9,7 @@ #include #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX23 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++23 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "The contents of are available only with C++23 or later.")) #else // ^^^ !_HAS_CXX23 / _HAS_CXX23 vvv #ifdef __cpp_lib_concepts #include diff --git a/stl/inc/stdatomic.h b/stl/inc/stdatomic.h index 2396707461..91eafbcf43 100644 --- a/stl/inc/stdatomic.h +++ b/stl/inc/stdatomic.h @@ -22,7 +22,7 @@ #endif // _M_CEE_PURE #if !_HAS_CXX23 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++23 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "The contents of are available only with C++23 or later.")) #else // ^^^ !_HAS_CXX23 / _HAS_CXX23 vvv #include diff --git a/stl/inc/stop_token b/stl/inc/stop_token index 5d3319ad10..51a43a6d98 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("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 cd67346b03..6b16cc0998 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("STL4034", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 04a2cf112b..cbc959cdb5 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("STL4034", "The contents of are available only with C++20 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 b1a698f390..c16dd33a3b 100644 --- a/stl/inc/variant +++ b/stl/inc/variant @@ -10,7 +10,7 @@ #if _STL_COMPILER_PREPROCESSOR #if !_HAS_CXX17 -#pragma message(_WARNING_MESSAGE("STL4034", "The contents of are available only with C++17 or later.")) +#pragma message(_WARNING_MESSAGE("STL4035", "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 7e84050b6d..c1e6177054 100644 --- a/stl/inc/yvals_core.h +++ b/stl/inc/yvals_core.h @@ -1142,10 +1142,10 @@ #define _CXX20_DEPRECATE_IS_ALWAYS_EQUAL #endif // ^^^ warning disabled ^^^ -// STL4034 is used to warn about the contents of some header is available only with specific C++ standard or later. See +// STL4035 is used to warn about the contents of some header is available only with specific C++ standard or later. See // example at stl/inc/any, line 13 -// next warning number: STL4035 +// next warning number: STL4036 // P0619R4 Removing C++17-Deprecated Features #ifndef _HAS_FEATURES_REMOVED_IN_CXX20