From 8f325567eb949b34e50a2a724cea16ebc540ca94 Mon Sep 17 00:00:00 2001 From: Alexander Malkov Date: Fri, 23 Sep 2022 14:36:42 +0300 Subject: [PATCH] feat sequence_tuple: add nolint in functions add nolint in get_impl functions --- include/boost/pfr/detail/sequence_tuple.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/pfr/detail/sequence_tuple.hpp b/include/boost/pfr/detail/sequence_tuple.hpp index 711717f..c1aafc7 100644 --- a/include/boost/pfr/detail/sequence_tuple.hpp +++ b/include/boost/pfr/detail/sequence_tuple.hpp @@ -56,21 +56,25 @@ constexpr T& get_impl(base_from_member& t) noexcept { template constexpr const T& get_impl(const base_from_member& t) noexcept { + // NOLINTNEXTLINE(clang-analyzer-core.uninitialized.UndefReturn) return t.value; } template constexpr volatile T& get_impl(volatile base_from_member& t) noexcept { + // NOLINTNEXTLINE(clang-analyzer-core.uninitialized.UndefReturn) return t.value; } template constexpr const volatile T& get_impl(const volatile base_from_member& t) noexcept { + // NOLINTNEXTLINE(clang-analyzer-core.uninitialized.UndefReturn) return t.value; } template constexpr T&& get_impl(base_from_member&& t) noexcept { + // NOLINTNEXTLINE(clang-analyzer-core.uninitialized.UndefReturn) return std::forward(t.value); }