diff options
author | Chris Robinson <[email protected]> | 2023-12-10 11:34:04 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-10 11:34:04 -0800 |
commit | 073d79c2047143e70bb199077fe3c8dbafe0a606 (patch) | |
tree | 2b565090f3d48166481f0aa685f70968e7ea837d /common/alspan.h | |
parent | 44fbc93909a1a1d1dc26c01feb32bf13a5140234 (diff) |
More clang-tidy cleanup
And suppress some warnings
Diffstat (limited to 'common/alspan.h')
-rw-r--r-- | common/alspan.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/alspan.h b/common/alspan.h index d91747c2..37b475d2 100644 --- a/common/alspan.h +++ b/common/alspan.h @@ -44,7 +44,7 @@ namespace detail_ { && !std::is_array<C>::value && has_size_and_data<C>; template<typename T, typename U> - constexpr bool is_array_compatible = std::is_convertible<T(*)[],U(*)[]>::value; + constexpr bool is_array_compatible = std::is_convertible<T(*)[],U(*)[]>::value; /* NOLINT(*-avoid-c-arrays) */ template<typename C, typename T> constexpr bool is_valid_container = is_valid_container_type<C> @@ -81,7 +81,7 @@ public: constexpr explicit span(U first, V) : mData{::al::to_address(first)} {} - constexpr span(type_identity_t<element_type> (&arr)[E]) noexcept + constexpr span(type_identity_t<element_type> (&arr)[E]) noexcept /* NOLINT(*-avoid-c-arrays) */ : span{std::data(arr), std::size(arr)} { } constexpr span(std::array<value_type,E> &arr) noexcept @@ -199,7 +199,7 @@ public: { } template<size_t N> - constexpr span(type_identity_t<element_type> (&arr)[N]) noexcept + constexpr span(type_identity_t<element_type> (&arr)[N]) noexcept /* NOLINT(*-avoid-c-arrays) */ : span{std::data(arr), std::size(arr)} { } template<size_t N> @@ -305,7 +305,7 @@ template<typename T, typename EndOrSize> span(T, EndOrSize) -> span<std::remove_reference_t<decltype(*std::declval<T&>())>>; template<typename T, std::size_t N> -span(T (&)[N]) -> span<T, N>; +span(T (&)[N]) -> span<T, N>; /* NOLINT(*-avoid-c-arrays) */ template<typename T, std::size_t N> span(std::array<T, N>&) -> span<T, N>; |