Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
denzor200 committed Jun 27, 2023
1 parent e8e077c commit f09357c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions include/boost/pfr/core_name.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ constexpr auto get_name() noexcept {
template <class T>
constexpr auto names_as_array() noexcept {
return detail::make_stdarray_from_tietuple(
detail::tie_as_names_tuple<T>(),
detail::make_index_sequence< tuple_size_v<T> >()
detail::tie_as_names_tuple<T>(),
detail::make_index_sequence< tuple_size_v<T> >()
);
}

Expand Down
2 changes: 1 addition & 1 deletion include/boost/pfr/detail/core_name14_disabled.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ template <class T>
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();
Expand Down
2 changes: 1 addition & 1 deletion include/boost/pfr/detail/core_name20_static.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(detail::make_index_sequence<detail::fields_count<T>()>{});
Expand Down
2 changes: 1 addition & 1 deletion test/config/print_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions test/core_name/fields_names.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ void test_get_name_by_type() {
void test_names_as_array() {
const auto expected = std::array<std::string_view, 4>{
"member1",
"this_is_a_name",
"c",
"Forth"
"this_is_a_name",
"c",
"Forth"
};
const auto value = boost::pfr::names_as_array<Aggregate>();
BOOST_TEST_EQ(expected.size(), value.size());
Expand Down
10 changes: 5 additions & 5 deletions test/core_name/fields_names_constexpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Aggregate>() == std::array<std::string_view, 4>{
"member1",
"this_is_a_name",
"c",
"Forth"
});
"member1",
"this_is_a_name",
"c",
"Forth"
});

int main() {}

0 comments on commit f09357c

Please sign in to comment.