From 32d418623ee05abdb4e206ca76cd9f88f2b067ba Mon Sep 17 00:00:00 2001 From: Georgiy Lebedev Date: Wed, 24 Jan 2024 13:26:29 +0300 Subject: [PATCH] linting: fix linting errors reported by clang-format --- src/Utils/Traits.hpp | 4 ++-- src/mpp/Dec.hpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Utils/Traits.hpp b/src/Utils/Traits.hpp index 040c12b5c..8e4c080ce 100644 --- a/src/Utils/Traits.hpp +++ b/src/Utils/Traits.hpp @@ -86,8 +86,8 @@ */ #include -#include #include +#include #include #include #include @@ -639,7 +639,7 @@ template constexpr bool is_uni_member_ptr_v = std::is_member_object_pointer_v>; -struct empty_type { +struct empty_type final { constexpr empty_type() noexcept = default; constexpr empty_type(std::nullptr_t) noexcept {} constexpr empty_type(std::monostate) noexcept {} diff --git a/src/mpp/Dec.hpp b/src/mpp/Dec.hpp index 91f51d851..bbd32bb1d 100644 --- a/src/mpp/Dec.hpp +++ b/src/mpp/Dec.hpp @@ -153,8 +153,7 @@ constexpr auto detectFamily() return family_sequence{}; else return family_sequence{}; - } else if constexpr (is_any_putable_v || - tnt::is_contiguous_v) { + } else if constexpr (is_any_putable_v || tnt::is_contiguous_v) { if constexpr (tnt::is_pairish_v>) return family_sequence{}; else