Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2024
1 parent 4bbb541 commit 55c163c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
3 changes: 1 addition & 2 deletions include/openPMD/RecordComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ class RecordComponent : public BaseRecordComponent
*/
template <typename Visitor, typename... Args>
auto visit(Args &&...args) -> decltype(Visitor::template call<char>(
std::declval<RecordComponent &>(),
std::forward<Args>(args)...));
std::declval<RecordComponent &>(), std::forward<Args>(args)...));

static constexpr char const *const SCALAR = "\vScalar";

Expand Down
12 changes: 5 additions & 7 deletions include/openPMD/backend/Attributable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,11 @@ OPENPMD_protected
* Throws an error otherwise, e.g., for Series objects.
* @{
*/
[[nodiscard]] auto containingIteration() const
-> std::pair<
std::optional<internal::IterationData const *>,
internal::SeriesData const *>;
auto containingIteration() -> std::pair<
std::optional<internal::IterationData *>,
internal::SeriesData *>;
[[nodiscard]] auto containingIteration() const -> std::pair<
std::optional<internal::IterationData const *>,
internal::SeriesData const *>;
auto containingIteration() -> std::
pair<std::optional<internal::IterationData *>, internal::SeriesData *>;
/** @} */

template <bool flush_entire_series>
Expand Down
4 changes: 2 additions & 2 deletions src/IO/AbstractIOHandlerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ namespace
using self_or_invoked_t = typename self_or_invoked<T>::type;

template <typename DeferredString>
auto
undefer_string(DeferredString &&str) -> self_or_invoked_t<DeferredString &&>
auto undefer_string(DeferredString &&str)
-> self_or_invoked_t<DeferredString &&>
{
if constexpr (std::is_invocable_v<DeferredString &&>)
{
Expand Down
12 changes: 5 additions & 7 deletions src/backend/Attributable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,9 @@ Series Attributable::retrieveSeries() const
return findSeries->attributable->asInternalCopyOf<Series>();
}

auto Attributable::containingIteration() const
-> std::pair<
std::optional<internal::IterationData const *>,
internal::SeriesData const *>
auto Attributable::containingIteration() const -> std::pair<
std::optional<internal::IterationData const *>,
internal::SeriesData const *>
{
constexpr size_t search_queue_size = 3;
Writable const *search_queue[search_queue_size]{nullptr};
Expand Down Expand Up @@ -182,9 +181,8 @@ auto Attributable::containingIteration() const
}
}

auto Attributable::containingIteration()
-> std::
pair<std::optional<internal::IterationData *>, internal::SeriesData *>
auto Attributable::containingIteration() -> std::
pair<std::optional<internal::IterationData *>, internal::SeriesData *>
{
auto const_res =
static_cast<Attributable const *>(this)->containingIteration();
Expand Down

0 comments on commit 55c163c

Please sign in to comment.