From 434cf1859b67cf5cc93085064b5730293fd96d03 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:42:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- include/openPMD/RecordComponent.hpp | 3 +-- include/openPMD/backend/Attributable.hpp | 12 +++++------- src/IO/AbstractIOHandlerImpl.cpp | 4 ++-- src/backend/Attributable.cpp | 12 +++++------- 4 files changed, 13 insertions(+), 18 deletions(-) diff --git a/include/openPMD/RecordComponent.hpp b/include/openPMD/RecordComponent.hpp index ebb5a80ca8..9072b93a32 100644 --- a/include/openPMD/RecordComponent.hpp +++ b/include/openPMD/RecordComponent.hpp @@ -482,8 +482,7 @@ class RecordComponent : public BaseRecordComponent */ template auto visit(Args &&...args) -> decltype(Visitor::template call( - std::declval(), - std::forward(args)...)); + std::declval(), std::forward(args)...)); static constexpr char const *const SCALAR = "\vScalar"; diff --git a/include/openPMD/backend/Attributable.hpp b/include/openPMD/backend/Attributable.hpp index 08090ce2e3..850d3bf35c 100644 --- a/include/openPMD/backend/Attributable.hpp +++ b/include/openPMD/backend/Attributable.hpp @@ -341,13 +341,11 @@ OPENPMD_protected * Throws an error otherwise, e.g., for Series objects. * @{ */ - [[nodiscard]] auto containingIteration() const - -> std::pair< - std::optional, - internal::SeriesData const *>; - auto containingIteration() -> std::pair< - std::optional, - internal::SeriesData *>; + [[nodiscard]] auto containingIteration() const -> std::pair< + std::optional, + internal::SeriesData const *>; + auto containingIteration() -> std:: + pair, internal::SeriesData *>; /** @} */ template diff --git a/src/IO/AbstractIOHandlerImpl.cpp b/src/IO/AbstractIOHandlerImpl.cpp index 8993816f48..7675cc3e07 100644 --- a/src/IO/AbstractIOHandlerImpl.cpp +++ b/src/IO/AbstractIOHandlerImpl.cpp @@ -81,8 +81,8 @@ namespace using self_or_invoked_t = typename self_or_invoked::type; template - auto - undefer_string(DeferredString &&str) -> self_or_invoked_t + auto undefer_string(DeferredString &&str) + -> self_or_invoked_t { if constexpr (std::is_invocable_v) { diff --git a/src/backend/Attributable.cpp b/src/backend/Attributable.cpp index 018a776a58..9ffbe25ee3 100644 --- a/src/backend/Attributable.cpp +++ b/src/backend/Attributable.cpp @@ -140,10 +140,9 @@ Series Attributable::retrieveSeries() const return findSeries->attributable->asInternalCopyOf(); } -auto Attributable::containingIteration() const - -> std::pair< - std::optional, - internal::SeriesData const *> +auto Attributable::containingIteration() const -> std::pair< + std::optional, + internal::SeriesData const *> { constexpr size_t search_queue_size = 3; Writable const *search_queue[search_queue_size]{nullptr}; @@ -182,9 +181,8 @@ auto Attributable::containingIteration() const } } -auto Attributable::containingIteration() - -> std:: - pair, internal::SeriesData *> +auto Attributable::containingIteration() -> std:: + pair, internal::SeriesData *> { auto const_res = static_cast(this)->containingIteration();