From 5747ab016490f64448ea1a28a4350361e95fcdf4 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 16 Jul 2021 14:35:02 +0700 Subject: [PATCH] add a TRANSITION comment --- stl/inc/coroutine | 7 +++---- stl/inc/format | 7 +++---- stl/inc/ranges | 7 +++---- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/stl/inc/coroutine b/stl/inc/coroutine index f913d1b4048..849a75a7cba 100644 --- a/stl/inc/coroutine +++ b/stl/inc/coroutine @@ -15,10 +15,9 @@ #pragma message(_WARNING_MESSAGE("STL4033", "Use for legacy /await support.")) #else // ^^^ /await ^^^ / vvv no /await vvv #ifndef __cpp_lib_coroutine -// clang-format off -#pragma message( \ - _WARNING_MESSAGE("STL4033","The contents of are available only with C++20 or later or /await:strict.")) -// clang-format on +#define _MESSAGE "The contents of are available only with C++20 or later or /await:strict." +#pragma message(_WARNING_MESSAGE("STL4033", _MESSAGE)) +#undef _MESSAGE // TRANSITION, https://developer.nvidia.com/nvidia_bug/3342317 #else // ^^^ is not available / is available vvv #ifndef _ALLOW_COROUTINE_ABI_MISMATCH #pragma detect_mismatch("_COROUTINE_ABI", "2") diff --git a/stl/inc/format b/stl/inc/format index 42f3e8d763a..aae967c4e4c 100644 --- a/stl/inc/format +++ b/stl/inc/format @@ -40,10 +40,9 @@ #include #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_lib_format -// clang-format off -#pragma message( \ - _WARNING_MESSAGE("STL4033","The contents of are available only in c++latest mode with concepts support;")) -// clang-format on +#define _MESSAGE "The contents of are available only in c++latest mode with concepts support;" +#pragma message(_WARNING_MESSAGE("STL4033", _MESSAGE)) +#undef _MESSAGE // TRANSITION, https://developer.nvidia.com/nvidia_bug/3342317 #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 diff --git a/stl/inc/ranges b/stl/inc/ranges index ce86c7e48ec..bdb59752a71 100644 --- a/stl/inc/ranges +++ b/stl/inc/ranges @@ -9,10 +9,9 @@ #include #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_lib_ranges -// clang-format off -#pragma message( \ - _WARNING_MESSAGE("STL4033","The contents of are available only in c++latest mode with concepts support;")) -// clang-format on +#define _MESSAGE "The contents of are available only in c++latest mode with concepts support;" +#pragma message(_WARNING_MESSAGE("STL4033", _MESSAGE)) +#undef _MESSAGE // TRANSITION, https://developer.nvidia.com/nvidia_bug/3342317 #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