[libc++][test] Use <version> to get config on MSVC
...instead of `<ciso646>`. Also includes some NFC comment changes. llvm-svn: 374854
This commit is contained in:
parent
d04855f820
commit
6f0768f64d
|
@ -77,7 +77,7 @@ const AssertionDialogAvoider assertion_dialog_avoider{};
|
|||
#define _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS
|
||||
#endif // _LIBCXX_IN_DEVCRT
|
||||
|
||||
#include <ciso646>
|
||||
#include <version>
|
||||
|
||||
#if _HAS_CXX20
|
||||
#define TEST_STD_VER 99
|
||||
|
|
|
@ -140,7 +140,7 @@
|
|||
#define TEST_THROW_SPEC(...) throw(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
// Sniff out to see if the underling C library has C11 features
|
||||
// Sniff out to see if the underlying C library has C11 features
|
||||
// Note that at this time (July 2018), MacOS X and iOS do NOT.
|
||||
// This is cribbed from __config; but lives here as well because we can't assume libc++
|
||||
#if __ISO_C_VISIBLE >= 2011 || TEST_STD_VER >= 11
|
||||
|
|
|
@ -13,19 +13,19 @@
|
|||
#include "test_macros.h"
|
||||
|
||||
#if defined(TEST_COMPILER_EDG)
|
||||
# define TEST_WORKAROUND_EDG_EXPLICIT_CONSTEXPR // VSO#424280
|
||||
# define TEST_WORKAROUND_EDG_EXPLICIT_CONSTEXPR // VSO-424280
|
||||
#endif
|
||||
|
||||
#if defined(TEST_COMPILER_C1XX)
|
||||
# define TEST_WORKAROUND_C1XX_BROKEN_IS_TRIVIALLY_COPYABLE // VSO#117743
|
||||
# define TEST_WORKAROUND_C1XX_BROKEN_IS_TRIVIALLY_COPYABLE // VSO-117743
|
||||
# ifndef _MSC_EXTENSIONS
|
||||
# define TEST_WORKAROUND_C1XX_BROKEN_ZA_CTOR_CHECK // VSO#119998
|
||||
# define TEST_WORKAROUND_C1XX_BROKEN_ZA_CTOR_CHECK // VSO-119998
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(TEST_COMPILER_GCC)
|
||||
# if __GNUC__ < 9
|
||||
# define TEST_WORKAROUND_CONSTEXPR_IMPLIES_NOEXCEPT // GCC PR 87603
|
||||
# define TEST_WORKAROUND_CONSTEXPR_IMPLIES_NOEXCEPT // GCC-87603
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue