From a2e1827c3c58c13d34ab62cf0c570daf4883a626 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 23 Jan 2025 12:08:12 +0000 Subject: [PATCH] Please consider the following formatting changes --- Framework/Core/include/Framework/ASoA.h | 27 +++++++++++-------- .../include/Framework/GroupedCombinations.h | 4 ++- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/Framework/Core/include/Framework/ASoA.h b/Framework/Core/include/Framework/ASoA.h index cecb27af058c6..d3d35265eeeba 100644 --- a/Framework/Core/include/Framework/ASoA.h +++ b/Framework/Core/include/Framework/ASoA.h @@ -1027,11 +1027,15 @@ template concept has_index = (is_indexing_column || ...); template - requires (!is_self_index_column) -auto getBinding() -> typename C::binding_t {} + requires(!is_self_index_column) +auto getBinding() -> typename C::binding_t +{ +} template -auto getBinding() -> void {} +auto getBinding() -> void +{ +} template struct TableIterator : IP, C... { @@ -1135,7 +1139,7 @@ struct TableIterator : IP, C... { template void doSetCurrentIndex(framework::pack, TA* current) { - ([¤t, this](){ if constexpr (is_index_column && !is_self_index_column) {CL::setCurrent(current);} }(), ...); + ([¤t, this]() { if constexpr (is_index_column && !is_self_index_column) {CL::setCurrent(current);} }(), ...); } template @@ -1148,11 +1152,12 @@ struct TableIterator : IP, C... { auto getIndexBindingsImpl(framework::pack) const { std::vector result; - ([this, &result](){ + ([this, &result]() { if constexpr (is_index_column && !is_self_index_column) { result.emplace_back(static_cast(*this).getCurrentRaw()); } - }(), ...); + }(), + ...); return result; } @@ -1170,7 +1175,7 @@ struct TableIterator : IP, C... { template void doSetCurrentIndexRaw(framework::pack p, std::vector&& ptrs) { - ([&ptrs, p, this](){ if constexpr (is_index_column && !is_self_index_column) { Cs::setCurrentRaw(ptrs[framework::has_type_at_v(p)]); } }(), ...); + ([&ptrs, p, this]() { if constexpr (is_index_column && !is_self_index_column) { Cs::setCurrentRaw(ptrs[framework::has_type_at_v(p)]); } }(), ...); } template @@ -1178,7 +1183,7 @@ struct TableIterator : IP, C... { { o2::soa::Binding b; b.bind(ptr); - ([&ptr, &b, this](){ if constexpr (is_self_index_column) { Cs::setCurrentRaw(b); } }(), ...); + ([&ptr, &b, this]() { if constexpr (is_self_index_column) { Cs::setCurrentRaw(b); } }(), ...); } void bindExternalIndicesRaw(std::vector&& ptrs) @@ -1373,13 +1378,13 @@ static constexpr std::string getLabelFromTypeForKey(std::string const& key) template consteval static bool hasIndexTo(framework::pack&&) { - return ([](){ if constexpr (is_index_column && !is_self_index_column) { return o2::soa::is_binding_compatible_v(); } else { return false; } }() || ...); + return ([]() { if constexpr (is_index_column && !is_self_index_column) { return o2::soa::is_binding_compatible_v(); } else { return false; } }() || ...); } template consteval static bool hasSortedIndexTo(framework::pack&&) { - return ([](){if constexpr (is_index_column && !is_self_index_column) { return (C::sorted && o2::soa::is_binding_compatible_v()); } else { return false; }}() || ...); + return ([]() {if constexpr (is_index_column && !is_self_index_column) { return (C::sorted && o2::soa::is_binding_compatible_v()); } else { return false; } }() || ...); } template @@ -2064,7 +2069,7 @@ class Table template void doBindInternalIndicesExplicit(framework::pack, o2::soa::Binding binding) { - ([this, &binding](){ if constexpr (is_self_index_column) { static_cast(mBegin).setCurrentRaw(binding); } }(), ...); + ([this, &binding]() { if constexpr (is_self_index_column) { static_cast(mBegin).setCurrentRaw(binding); } }(), ...); } void bindExternalIndicesRaw(std::vector&& ptrs) diff --git a/Framework/Core/include/Framework/GroupedCombinations.h b/Framework/Core/include/Framework/GroupedCombinations.h index 0508efce367c7..526809363f7fc 100644 --- a/Framework/Core/include/Framework/GroupedCombinations.h +++ b/Framework/Core/include/Framework/GroupedCombinations.h @@ -46,7 +46,9 @@ auto isIndexTo() } template -auto isIndexTo() ->std::false_type {} +auto isIndexTo() -> std::false_type +{ +} template using is_index_to_g_t = decltype(isIndexTo());