From 1d4eb084db172460f3dfc612279196ad7a3b5917 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 16 Jul 2021 03:52:02 +0700 Subject: [PATCH] workaround for nvcc --- stl/inc/coroutine | 5 +++-- stl/inc/format | 5 +++-- stl/inc/ranges | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/stl/inc/coroutine b/stl/inc/coroutine index 185fb015536..a4480a83457 100644 --- a/stl/inc/coroutine +++ b/stl/inc/coroutine @@ -15,8 +15,9 @@ #pragma message(_WARNING_MESSAGE("STL4033", "Use for legacy /await support.")) #else // ^^^ /await ^^^ / vvv no /await vvv #ifndef __cpp_lib_coroutine -#pragma message(_WARNING_MESSAGE( \ - "STL4033", "The contents of are available only with C++20 or later or /await:strict.")) +// 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 #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 fb6e572581e..70db577b121 100644 --- a/stl/inc/format +++ b/stl/inc/format @@ -40,8 +40,9 @@ #include #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_lib_format -#pragma message(_WARNING_MESSAGE( \ - "STL4033", "The contents of are available only in c++latest mode with concepts support;")) +// clang-format off +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only in c++latest mode with concepts support;")) +// clang-format on #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 af2bb2f07a5..37946f30c32 100644 --- a/stl/inc/ranges +++ b/stl/inc/ranges @@ -9,8 +9,9 @@ #include #if _STL_COMPILER_PREPROCESSOR #ifndef __cpp_lib_ranges -#pragma message(_WARNING_MESSAGE( \ - "STL4033", "The contents of are available only in c++latest mode with concepts support;")) +// clang-format off +#pragma message(_WARNING_MESSAGE("STL4033", "The contents of are available only in c++latest mode with concepts support;")) +// clang-format on #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