Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1631)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)
- [github.com/pre-commit/mirrors-clang-format: v18.1.5 → v19.1.1](pre-commit/mirrors-clang-format@v18.1.5...v19.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 7, 2024
1 parent 74e583c commit 1257ac2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exclude: '^share/openPMD/thirdParty'
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
Expand Down Expand Up @@ -66,7 +66,7 @@ repos:
# clang-format v13
# to run manually, use .github/workflows/clang-format/clang-format.sh
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.5
rev: v19.1.1
hooks:
- id: clang-format
# By default, the clang-format hook configures:
Expand Down
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 1257ac2

Please sign in to comment.