mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
apply clang-format to the span_compatibility_tests.
This commit is contained in:
parent
5ca02327c4
commit
ffbfcc0a9f
@ -42,12 +42,12 @@ static_assert(std::is_convertible<Derived*, Base*>::value, "std::is_convertible<
|
|||||||
static_assert(!std::is_convertible<Derived (*)[], Base (*)[]>::value,
|
static_assert(!std::is_convertible<Derived (*)[], Base (*)[]>::value,
|
||||||
"!std::is_convertible<Derived(*)[], Base(*)[]>");
|
"!std::is_convertible<Derived(*)[], Base(*)[]>");
|
||||||
|
|
||||||
// int*(*) [], int const* const(*)[] was identified as an issue in CWG330 and the resolution was provided with N4261
|
// int*(*) [], int const* const(*)[] was identified as an issue in CWG330 and the resolution was
|
||||||
// The changes were not backported to all versions of the compilers that GSL supports.
|
// provided with N4261. The changes were not backported to all versions of the compilers that GSL
|
||||||
// The `if constexpr` should prevent codegen from happening if it is not supported however a few compilers continue to complain about the logic within.
|
// supports. The `if constexpr` should prevent codegen from happening if it is not supported however
|
||||||
// Filtering g++ version < 8, clang version < 7, and XCode 9.4 and 10.1 which looks to be Apple clang versions 9.1 and 10.0.
|
// a few compilers continue to complain about the logic within. Filtering g++ version < 8, clang
|
||||||
#if (defined(_MSC_VER)) || \
|
// version < 7, and XCode 9.4 and 10.1 which looks to be Apple clang versions 9.1 and 10.0.
|
||||||
(defined(__GNUC__) && __GNUC__ > 7) || \
|
#if (defined(_MSC_VER)) || (defined(__GNUC__) && __GNUC__ > 7) || \
|
||||||
(defined(__APPLE__) && defined(__clang_major__) && __clang_major__ > 10) || \
|
(defined(__APPLE__) && defined(__clang_major__) && __clang_major__ > 10) || \
|
||||||
(!defined(__APPLE__) && defined(__clang__) && __clang_major__ > 6)
|
(!defined(__APPLE__) && defined(__clang__) && __clang_major__ > 6)
|
||||||
template <class = void>
|
template <class = void>
|
||||||
@ -76,7 +76,8 @@ void ArrayConvertibilityCheck()
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
template <class = void>
|
template <class = void>
|
||||||
void ArrayConvertibilityCheck(){}
|
void ArrayConvertibilityCheck()
|
||||||
|
{}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TEST(span_compatibility_tests, assertion_tests)
|
TEST(span_compatibility_tests, assertion_tests)
|
||||||
|
Loading…
Reference in New Issue
Block a user