From af7a61a5464c266426a20e7dacf6c52bb80b28e9 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 25 Jul 2024 23:16:04 +0200 Subject: lint: fix lints from newer clang-tidy version --- bitfield.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bitfield.h') diff --git a/bitfield.h b/bitfield.h index a49a997..be7eed8 100644 --- a/bitfield.h +++ b/bitfield.h @@ -20,7 +20,7 @@ static constexpr bool is_bitfield_type_v = /// compute_mask<4, 7, uint32_t>() -> 0xf0 template static constexpr inline ValueType compute_mask() { - using unsigned_t = typename std::make_unsigned::type; + using unsigned_t = std::make_unsigned_t; constexpr unsigned_t kMaxBits = sizeof(unsigned_t) * 8; static_assert(HighBit < kMaxBits, "HighBit exceeds bits of ValueType"); @@ -67,7 +67,7 @@ struct field_ref { private: ValueType& m_val; - enum : ValueType { + enum : ValueType { // NOLINT(performance-enum-size) kMask = impl::compute_mask(), }; }; @@ -89,7 +89,7 @@ struct const_field_ref { private: const ValueType& m_val; - enum : ValueType { + enum : ValueType { // NOLINT(performance-enum-size) kMask = impl::compute_mask(), }; }; -- cgit v1.2.3