From 43d26f7301735f1e624bcc18ec3a914a2e4acb85 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:45:18 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- include/openPMD/LoadStoreChunk.hpp | 18 +++++++++--------- src/LoadStoreChunk.cpp | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/openPMD/LoadStoreChunk.hpp b/include/openPMD/LoadStoreChunk.hpp index 451d6cd0cf..e40ec18c91 100644 --- a/include/openPMD/LoadStoreChunk.hpp +++ b/include/openPMD/LoadStoreChunk.hpp @@ -122,8 +122,8 @@ namespace core template auto withUniquePtr(UniquePtrWithLambda) -> unique_ptr_return_type; template - auto - withUniquePtr(std::unique_ptr) -> unique_ptr_return_type; + auto withUniquePtr(std::unique_ptr) + -> unique_ptr_return_type; template auto withRawPtr(T *data) -> shared_ptr_return_type; template @@ -138,19 +138,19 @@ namespace core // definition for this one is in RecordComponent.tpp since it needs the // definition of class RecordComponent. template - [[nodiscard]] auto - enqueueStore(F &&createBuffer) -> DynamicMemoryView; + [[nodiscard]] auto enqueueStore(F &&createBuffer) + -> DynamicMemoryView; template - [[nodiscard]] auto - enqueueLoad() -> auxiliary::DeferredComputation>; + [[nodiscard]] auto enqueueLoad() + -> auxiliary::DeferredComputation>; template [[nodiscard]] auto load(EnqueuePolicy) -> std::shared_ptr; - [[nodiscard]] auto - enqueueLoadVariant() -> auxiliary::DeferredComputation< - auxiliary::detail::shared_ptr_dataset_types>; + [[nodiscard]] auto enqueueLoadVariant() + -> auxiliary::DeferredComputation< + auxiliary::detail::shared_ptr_dataset_types>; [[nodiscard]] auto loadVariant(EnqueuePolicy) -> auxiliary::detail::shared_ptr_dataset_types; diff --git a/src/LoadStoreChunk.cpp b/src/LoadStoreChunk.cpp index 4571cf71e5..8c60138636 100644 --- a/src/LoadStoreChunk.cpp +++ b/src/LoadStoreChunk.cpp @@ -43,8 +43,8 @@ namespace * non-const unique pointers. */ template - auto - asWriteBuffer(UniquePtrWithLambda &&ptr) -> auxiliary::WriteBuffer + auto asWriteBuffer(UniquePtrWithLambda &&ptr) + -> auxiliary::WriteBuffer { auto raw_ptr = ptr.release(); return asWriteBuffer(std::shared_ptr{ @@ -151,7 +151,7 @@ namespace core auxiliary::detail::shared_ptr_dataset_types>( [res_lambda = std::move(res), rc_lambda = rc]() mutable - -> auxiliary::detail::shared_ptr_dataset_types { + -> auxiliary::detail::shared_ptr_dataset_types { std::cout << "Flushing Series from Future" << std::endl; rc_lambda.seriesFlush(); std::cout << "Flushed Series from Future" << std::endl; @@ -219,8 +219,8 @@ namespace core } template - auto - ConfigureStoreChunkFromBuffer::store(EnqueuePolicy ep) -> void + auto ConfigureStoreChunkFromBuffer::store(EnqueuePolicy ep) + -> void { this->m_rc.storeChunk_impl( asWriteBuffer(std::move(m_buffer)),