From 7e3290842c201d4205d047e1c559f4b7f0eabf7d Mon Sep 17 00:00:00 2001 From: denzor200 Date: Tue, 27 Jun 2023 12:39:47 +0000 Subject: [PATCH] fix lint issues --- include/boost/pfr/core_name.hpp | 4 ++-- include/boost/pfr/detail/core_name14_disabled.hpp | 2 +- include/boost/pfr/detail/core_name20_static.hpp | 2 +- test/config/print_config.cpp | 2 +- test/core_name/fields_names.cpp | 6 +++--- test/core_name/fields_names_constexpr.cpp | 10 +++++----- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/include/boost/pfr/core_name.hpp b/include/boost/pfr/core_name.hpp index a4f1c65c..fad190b1 100644 --- a/include/boost/pfr/core_name.hpp +++ b/include/boost/pfr/core_name.hpp @@ -40,8 +40,8 @@ constexpr auto get_name() noexcept { template constexpr auto names_as_array() noexcept { return detail::make_stdarray_from_tietuple( - detail::tie_as_names_tuple(), - detail::make_index_sequence< tuple_size_v >() + detail::tie_as_names_tuple(), + detail::make_index_sequence< tuple_size_v >() ); } diff --git a/include/boost/pfr/detail/core_name14_disabled.hpp b/include/boost/pfr/detail/core_name14_disabled.hpp index 1e6d39c5..7d1c9f31 100644 --- a/include/boost/pfr/detail/core_name14_disabled.hpp +++ b/include/boost/pfr/detail/core_name14_disabled.hpp @@ -28,7 +28,7 @@ template constexpr auto tie_as_names_tuple() noexcept { static_assert( sizeof(T) && false, - "====================> Boost.PFR: Extraction of field's names is allowed only in C++20" + "====================> Boost.PFR: Extraction of field's names is allowed only in C++20" ); return detail::make_sequence_tuple(); diff --git a/include/boost/pfr/detail/core_name20_static.hpp b/include/boost/pfr/detail/core_name20_static.hpp index 00003718..574f9616 100644 --- a/include/boost/pfr/detail/core_name20_static.hpp +++ b/include/boost/pfr/detail/core_name20_static.hpp @@ -67,7 +67,7 @@ constexpr auto tie_as_names_tuple() noexcept { ); static_assert( sizeof(T) && BOOST_PFR_USE_CPP17, - "====================> Boost.PFR: Extraction of field's names is allowed only when the BOOST_PFR_USE_CPP17 macro enabled." + "====================> Boost.PFR: Extraction of field's names is allowed only when the BOOST_PFR_USE_CPP17 macro enabled." ); return tie_as_names_tuple_impl(detail::make_index_sequence()>{}); diff --git a/test/config/print_config.cpp b/test/config/print_config.cpp index 7eff103a..78e0e1b7 100644 --- a/test/config/print_config.cpp +++ b/test/config/print_config.cpp @@ -14,7 +14,7 @@ int main() { << "BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE == " << BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE << '\n' << "BOOST_PFR_HAS_GUARANTEED_COPY_ELISION == " << BOOST_PFR_HAS_GUARANTEED_COPY_ELISION << '\n' << "BOOST_PFR_ENABLE_IMPLICIT_REFLECTION == " << BOOST_PFR_ENABLE_IMPLICIT_REFLECTION << '\n' - << "BOOST_PFR_ENABLE_GETTING_NAMES == " << BOOST_PFR_ENABLE_GETTING_NAMES << '\n' + << "BOOST_PFR_ENABLE_GETTING_NAMES == " << BOOST_PFR_ENABLE_GETTING_NAMES << '\n' << "BOOST_PFR_ENABLED == " << BOOST_PFR_ENABLED << '\n' << "__cplusplus == " << __cplusplus << '\n' #ifdef __cpp_structured_bindings diff --git a/test/core_name/fields_names.cpp b/test/core_name/fields_names.cpp index 084d43fa..30e4fe48 100644 --- a/test/core_name/fields_names.cpp +++ b/test/core_name/fields_names.cpp @@ -47,9 +47,9 @@ void test_get_name_by_type() { void test_names_as_array() { const auto expected = std::array{ "member1", - "this_is_a_name", - "c", - "Forth" + "this_is_a_name", + "c", + "Forth" }; const auto value = boost::pfr::names_as_array(); BOOST_TEST_EQ(expected.size(), value.size()); diff --git a/test/core_name/fields_names_constexpr.cpp b/test/core_name/fields_names_constexpr.cpp index fb69ea53..61d46609 100644 --- a/test/core_name/fields_names_constexpr.cpp +++ b/test/core_name/fields_names_constexpr.cpp @@ -30,11 +30,11 @@ static_assert(boost::pfr::get_name<2, Aggregate>() == "c"); static_assert(boost::pfr::get_name<3, Aggregate>() == "Forth"); static_assert(boost::pfr::names_as_array() == std::array{ - "member1", - "this_is_a_name", - "c", - "Forth" - }); + "member1", + "this_is_a_name", + "c", + "Forth" +}); int main() {}