Skip to content

Commit

Permalink
update warning number because microsoft#2583 uses STL4034
Browse files Browse the repository at this point in the history
  • Loading branch information
fsb4000 committed May 7, 2022
1 parent 54785fb commit 3f35d06
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion stl/inc/any
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX17
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <any> are available only with C++17 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <any> are available only with C++17 or later."))
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
#include <initializer_list>
#include <type_traits>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/barrier
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#endif // _M_CEE_PURE

#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <barrier> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <barrier> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv

#include <atomic>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/bit
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <bit> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <bit> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv

#include <intrin0.h>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/charconv
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX17
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <charconv> are available only with C++17 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <charconv> are available only with C++17 or later."))
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
#include <cstring>
#include <intrin0.h>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/compare
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <compare> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <compare> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv
#ifdef __cpp_lib_concepts
#include <bit>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/concepts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#ifndef __cpp_lib_concepts
#pragma message( \
_WARNING_MESSAGE("STL4034", "The contents of <concepts> are available only with C++20 concepts support."))
_WARNING_MESSAGE("STL4035", "The contents of <concepts> are available only with C++20 concepts support."))
#else // ^^^ !defined(__cpp_lib_concepts) / defined(__cpp_lib_concepts) vvv
#include <type_traits>
#include <vcruntime_new.h>
Expand Down
8 changes: 4 additions & 4 deletions stl/inc/coroutine
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
#if _STL_COMPILER_PREPROCESSOR

#ifdef _RESUMABLE_FUNCTIONS_SUPPORTED
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <coroutine> 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 <experimental/coroutine> for legacy /await support."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <coroutine> 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 <experimental/coroutine> for legacy /await support."))
#else // ^^^ /await ^^^ / vvv no /await vvv
#ifndef __cpp_lib_coroutine
#define _MESSAGE "The contents of <coroutine> 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 // ^^^ <coroutine> is not available / <coroutine> is available vvv
#ifndef _ALLOW_COROUTINE_ABI_MISMATCH
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/execution
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX17
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <execution> are available only with C++17 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <execution> are available only with C++17 or later."))
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
#include <algorithm>
#include <atomic>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/filesystem
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX17
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <filesystem> are available only with C++17 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <filesystem> are available only with C++17 or later."))
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
#include <algorithm>
#include <chrono>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#ifndef __cpp_lib_format
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <format> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <format> are available only with C++20 or later."))
#else // ^^^ !defined(__cpp_lib_format) / defined(__cpp_lib_format) vvv

#include <__msvc_format_ucd_tables.hpp>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/latch
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#endif // _M_CEE_PURE

#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <latch> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <latch> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv

#include <atomic>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/memory_resource
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#if !_HAS_CXX17
#pragma message( \
_WARNING_MESSAGE("STL4034", "The contents of <memory_resource> are available only with C++17 or later."))
_WARNING_MESSAGE("STL4035", "The contents of <memory_resource> are available only with C++17 or later."))
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
#include <vector>
#include <xbit_ops.h>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/numbers
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <numbers> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <numbers> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv
#ifdef __cpp_lib_concepts
#include <concepts>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/optional
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <yvals.h>
#if _STL_COMPILER_PREPROCESSOR
#if !_HAS_CXX17
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <optional> are available only with C++17 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <optional> are available only with C++17 or later."))
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
#if _HAS_CXX20
#include <compare>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/ranges
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <yvals_core.h>
#if _STL_COMPILER_PREPROCESSOR
#ifndef __cpp_lib_ranges
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <ranges> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <ranges> are available only with C++20 or later."))
#else // ^^^ !defined(__cpp_lib_ranges) / defined(__cpp_lib_ranges) vvv
#include <__msvc_int128.hpp>
#include <iosfwd>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/semaphore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#endif // _M_CEE_PURE

#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <semaphore> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <semaphore> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv

#include <__msvc_chrono.hpp>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/source_location
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR
#ifndef __cpp_consteval
#pragma message( \
_WARNING_MESSAGE("STL4034", "The contents of <source_location> are available only with C++20 consteval support."))
_WARNING_MESSAGE("STL4035", "The contents of <source_location> are available only with C++20 consteval support."))
#else // ^^^ !defined(__cpp_consteval) / defined(__cpp_consteval) vvv

#include <cstdint>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/span
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <span> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <span> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv
#include <compare>
#include <cstddef>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/spanstream
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <yvals.h>
#if _STL_COMPILER_PREPROCESSOR
#if !_HAS_CXX23
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <spanstream> are available only with C++23 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <spanstream> are available only with C++23 or later."))
#else // ^^^ !_HAS_CXX23 / _HAS_CXX23 vvv
#ifdef __cpp_lib_concepts
#include <concepts>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/stdatomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#endif // _M_CEE_PURE

#if !_HAS_CXX23
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <stdatomic.h> are available only with C++23 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <stdatomic.h> are available only with C++23 or later."))
#else // ^^^ !_HAS_CXX23 / _HAS_CXX23 vvv

#include <atomic>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/stop_token
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <stop_token> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <stop_token> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv

#include <atomic>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/string_view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX17
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <string_view> are available only with C++17 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <string_view> are available only with C++17 or later."))
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
#include <xstring>
#endif // _HAS_CXX17
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/syncstream
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <yvals.h>
#if _STL_COMPILER_PREPROCESSOR
#if !_HAS_CXX20
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <syncstream> are available only with C++20 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <syncstream> are available only with C++20 or later."))
#else // ^^^ !_HAS_CXX20 / _HAS_CXX20 vvv
#include <memory>
#include <ostream>
Expand Down
2 changes: 1 addition & 1 deletion stl/inc/variant
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#if _STL_COMPILER_PREPROCESSOR

#if !_HAS_CXX17
#pragma message(_WARNING_MESSAGE("STL4034", "The contents of <variant> are available only with C++17 or later."))
#pragma message(_WARNING_MESSAGE("STL4035", "The contents of <variant> are available only with C++17 or later."))
#else // ^^^ !_HAS_CXX17 / _HAS_CXX17 vvv
#include <exception>
#include <initializer_list>
Expand Down
4 changes: 2 additions & 2 deletions stl/inc/yvals_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f35d06

Please sign in to comment.