diff --git a/Framework/Core/include/Framework/AnalysisHelpers.h b/Framework/Core/include/Framework/AnalysisHelpers.h index a07c91839b5a5..a7115077a19c2 100644 --- a/Framework/Core/include/Framework/AnalysisHelpers.h +++ b/Framework/Core/include/Framework/AnalysisHelpers.h @@ -191,7 +191,7 @@ struct Produces : WritingCursor { }; template -concept is_produces = requires (T t) { typename T::cursor_t; typename T::persistent_table_t; &T::cursor; }; +concept is_produces = requires(T t) { typename T::cursor_t; typename T::persistent_table_t; &T::cursor; }; /// Use this to group together produces. Useful to separate them logically /// or simply to stay within the 100 elements per Task limit. @@ -572,7 +572,7 @@ struct OutputObj { }; template -concept is_outputobj = requires (T t) { &T::setObject; std::same_as>; }; +concept is_outputobj = requires(T t) { &T::setObject; std::same_as>; }; /// This helper allows you to fetch a Sevice from the context or /// by using some singleton. This hopefully will hide the Singleton and @@ -593,7 +593,7 @@ struct Service { }; template -concept is_service = requires (T t) { std::same_as; &T::operator->;}; +concept is_service = requires(T t) { std::same_as; &T::operator->; }; auto getTableFromFilter(soa::is_filtered_table auto const& table, soa::SelectionVector&& selection) { @@ -721,7 +721,7 @@ struct Partition { }; template -concept is_partition = requires (T t) {&T::updatePlaceholders; std::same_as; std::same_as>>;}; +concept is_partition = requires(T t) {&T::updatePlaceholders; std::same_as; std::same_as>>; }; } // namespace o2::framework namespace o2::soa diff --git a/Framework/Core/include/Framework/AnalysisManagers.h b/Framework/Core/include/Framework/AnalysisManagers.h index 3920fec4b26db..a7f7bca17c3a9 100644 --- a/Framework/Core/include/Framework/AnalysisManagers.h +++ b/Framework/Core/include/Framework/AnalysisManagers.h @@ -31,7 +31,8 @@ namespace o2::framework { -namespace { +namespace +{ template static inline auto extractOriginal(ProcessingContext& pc) { @@ -51,9 +52,10 @@ static inline auto extractOriginals(ProcessingContext& pc) return {pc.inputs().get(o2::aod::label())->asArrowTable()...}; }(std::make_index_sequence()); } -} +} // namespace -namespace analysis_task_parsers { +namespace analysis_task_parsers +{ /// Options handling template @@ -442,7 +444,7 @@ void setPartition(P&, T&...) template void setPartition(P& partition, T&... tables) { - ([&](){ if constexpr (std::same_as) {partition.bindTable(tables);} }(), ...); + ([&]() { if constexpr (std::same_as) {partition.bindTable(tables);} }(), ...); } template @@ -507,7 +509,7 @@ static void setGroupedCombination(C& comb, TG& grouping, std::tuple& asso } } -} // analysis_task_parsers +} // namespace analysis_task_parsers template struct UpdateProcessSwitches { diff --git a/Framework/Core/include/Framework/AnalysisTask.h b/Framework/Core/include/Framework/AnalysisTask.h index 69d609f279e99..15e981810b8ca 100644 --- a/Framework/Core/include/Framework/AnalysisTask.h +++ b/Framework/Core/include/Framework/AnalysisTask.h @@ -580,7 +580,7 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args) homogeneous_apply_refs([&eosContext](auto& element) { analysis_task_parsers::postRunService(eosContext, element); analysis_task_parsers::postRunOutput(eosContext, element); - return true;}, + return true; }, *task.get()); eosContext.services().get().readyToQuit(QuitRequest::Me); }; diff --git a/Framework/Core/include/Framework/Condition.h b/Framework/Core/include/Framework/Condition.h index 69c0ad9442a5d..3290cee14a123 100644 --- a/Framework/Core/include/Framework/Condition.h +++ b/Framework/Core/include/Framework/Condition.h @@ -43,7 +43,7 @@ struct Condition { }; template -concept is_condition = requires (T t) { +concept is_condition = requires(T t) { typename T::type; std::same_as; std::same_as; diff --git a/Framework/Core/include/Framework/Configurable.h b/Framework/Core/include/Framework/Configurable.h index fcae9e3a7aaa9..031f1cf1270bf 100644 --- a/Framework/Core/include/Framework/Configurable.h +++ b/Framework/Core/include/Framework/Configurable.h @@ -89,7 +89,11 @@ concept is_configurable = requires(T& t) { typename T::type; std::same_as, ConfigParamKind::kAxisSpec, ConfigurablePolicyConst, ConfigParamKind::kAxisSpec>>; template -concept is_configurable_axis = is_configurable && requires() {T::kind == ConfigParamKind::kAxisSpec;}; +concept is_configurable_axis = is_configurable&& + requires() +{ + T::kind == ConfigParamKind::kAxisSpec; +}; template struct ProcessConfigurable : Configurable { diff --git a/Framework/Core/include/Framework/GroupedCombinations.h b/Framework/Core/include/Framework/GroupedCombinations.h index 4628ea25778c2..bdbddee871baa 100644 --- a/Framework/Core/include/Framework/GroupedCombinations.h +++ b/Framework/Core/include/Framework/GroupedCombinations.h @@ -241,7 +241,7 @@ struct GroupedCombinationsGenerator { }; template -concept is_combinations_generator = requires (T t) { +concept is_combinations_generator = requires(T t) { typename T::GroupedIterator; &T::begin; &T::end;