Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1631

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading