From a322318a0f21346755ecce0e48c71638d8d7af40 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 21:02:57 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/sirosen/check-jsonschema: 0.37.1 → 0.38.0](https://github.com/sirosen/check-jsonschema/compare/0.37.1...0.38.0) - [github.com/pre-commit/mirrors-clang-format: v22.1.2 → v23.1.1](https://github.com/pre-commit/mirrors-clang-format/compare/v22.1.2...v23.1.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24a83bf85..a4c6848f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/sirosen/check-jsonschema - rev: 0.37.1 + rev: 0.38.0 hooks: - id: check-github-actions - id: check-github-workflows @@ -22,7 +22,7 @@ repos: - id: trailing-whitespace # trims trailing whitespace. - repo: https://github.com/pre-commit/mirrors-clang-format - rev: 'v22.1.2' + rev: 'v23.1.1' hooks: - id: clang-format args: ["-style=file", "-i"] From 1de5d1ff1a02539dda2767aa3175e85dddf6fb02 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 21:03:08 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/rpp/rpp/disposables/disposable_wrapper.hpp | 4 ++-- src/rpp/rpp/observables/observable.hpp | 2 +- src/rpp/rpp/observers/observer.hpp | 4 ++-- src/rpp/rpp/operators/fwd.hpp | 4 ++-- src/rpp/rpp/operators/reduce.hpp | 2 +- src/rpp/rpp/operators/scan.hpp | 2 +- src/rpp/rpp/schedulers/details/worker.hpp | 2 +- src/rpp/rpp/utils/utils.hpp | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/rpp/rpp/disposables/disposable_wrapper.hpp b/src/rpp/rpp/disposables/disposable_wrapper.hpp index 0c00facab..d77c02d02 100644 --- a/src/rpp/rpp/disposables/disposable_wrapper.hpp +++ b/src/rpp/rpp/disposables/disposable_wrapper.hpp @@ -31,7 +31,7 @@ namespace rpp::details static_assert(std::derived_from); template - requires (std::constructible_from && !rpp::constraint::variadic_decayed_same_as) + requires (std::constructible_from && !rpp::constraint::variadic_decayed_same_as) explicit auto_dispose_wrapper(TArgs&&... args) : m_data{std::forward(args)...} { @@ -160,7 +160,7 @@ namespace rpp * \endcode */ template TTarget = TDefaultMake, typename... TArgs> - requires (std::constructible_from) + requires (std::constructible_from) [[nodiscard]] static disposable_wrapper_impl make(TArgs&&... args) { const auto ptr = std::make_shared>(std::forward(args)...); diff --git a/src/rpp/rpp/observables/observable.hpp b/src/rpp/rpp/observables/observable.hpp index 9f3d99b8c..22aefb7d5 100644 --- a/src/rpp/rpp/observables/observable.hpp +++ b/src/rpp/rpp/observables/observable.hpp @@ -43,7 +43,7 @@ namespace rpp using optimal_disposables_strategy = typename Strategy::optimal_disposables_strategy; template - requires (!constraint::variadic_decayed_same_as, Args...> && constraint::is_constructible_from) + requires (!constraint::variadic_decayed_same_as, Args...> && constraint::is_constructible_from) observable(Args&&... args) : m_strategy{std::forward(args)...} { diff --git a/src/rpp/rpp/observers/observer.hpp b/src/rpp/rpp/observers/observer.hpp index 26d31fc62..8e92db3b9 100644 --- a/src/rpp/rpp/observers/observer.hpp +++ b/src/rpp/rpp/observers/observer.hpp @@ -182,7 +182,7 @@ namespace rpp } template - requires (constraint::is_constructible_from && !rpp::constraint::variadic_decayed_same_as) + requires (constraint::is_constructible_from && !rpp::constraint::variadic_decayed_same_as) explicit observer(Args&&... args) : Base{DisposableStrategy{}, std::forward(args)...} { @@ -214,7 +214,7 @@ namespace rpp } template - requires (constraint::is_constructible_from && !rpp::constraint::variadic_decayed_same_as) + requires (constraint::is_constructible_from && !rpp::constraint::variadic_decayed_same_as) explicit observer(Args&&... args) : Base{DisposableStrategy{}, std::forward(args)...} { diff --git a/src/rpp/rpp/operators/fwd.hpp b/src/rpp/rpp/operators/fwd.hpp index f660a50e6..0611ff985 100644 --- a/src/rpp/rpp/operators/fwd.hpp +++ b/src/rpp/rpp/operators/fwd.hpp @@ -90,7 +90,7 @@ namespace rpp::operators auto publish(); template - requires (!utils::is_not_template_callable || std::same_as, std::invoke_result_t &&, rpp::utils::convertible_to_any>>) + requires (!utils::is_not_template_callable || std::same_as, std::invoke_result_t&&, rpp::utils::convertible_to_any>>) auto reduce(Seed&& seed, Accumulator&& accumulator); template @@ -107,7 +107,7 @@ namespace rpp::operators auto retry(); template - requires (!utils::is_not_template_callable || std::same_as, std::invoke_result_t &&, rpp::utils::convertible_to_any>>) + requires (!utils::is_not_template_callable || std::same_as, std::invoke_result_t&&, rpp::utils::convertible_to_any>>) auto scan(InitialValue&& initial_value, Fn&& accumulator); template diff --git a/src/rpp/rpp/operators/reduce.hpp b/src/rpp/rpp/operators/reduce.hpp index f90dbc80b..5d27767a3 100644 --- a/src/rpp/rpp/operators/reduce.hpp +++ b/src/rpp/rpp/operators/reduce.hpp @@ -143,7 +143,7 @@ namespace rpp::operators * @see https://reactivex.io/documentation/operators/reduce.html */ template - requires (!utils::is_not_template_callable || std::same_as, std::invoke_result_t &&, rpp::utils::convertible_to_any>>) + requires (!utils::is_not_template_callable || std::same_as, std::invoke_result_t&&, rpp::utils::convertible_to_any>>) auto reduce(Seed&& seed, Accumulator&& accumulator) { return details::reduce_t, std::decay_t>{std::forward(seed), std::forward(accumulator)}; diff --git a/src/rpp/rpp/operators/scan.hpp b/src/rpp/rpp/operators/scan.hpp index e17af047d..8e37d0eef 100644 --- a/src/rpp/rpp/operators/scan.hpp +++ b/src/rpp/rpp/operators/scan.hpp @@ -151,7 +151,7 @@ namespace rpp::operators * @see https://reactivex.io/documentation/operators/scan.html */ template - requires (!utils::is_not_template_callable || std::same_as, std::invoke_result_t &&, rpp::utils::convertible_to_any>>) + requires (!utils::is_not_template_callable || std::same_as, std::invoke_result_t&&, rpp::utils::convertible_to_any>>) auto scan(InitialValue&& initial_value, Fn&& accumulator) { return details::scan_t, std::decay_t>{std::forward(initial_value), std::forward(accumulator)}; diff --git a/src/rpp/rpp/schedulers/details/worker.hpp b/src/rpp/rpp/schedulers/details/worker.hpp index 937b36b89..59c800c7a 100644 --- a/src/rpp/rpp/schedulers/details/worker.hpp +++ b/src/rpp/rpp/schedulers/details/worker.hpp @@ -23,7 +23,7 @@ namespace rpp::schedulers { public: template - requires (!rpp::constraint::variadic_decayed_same_as, Args...> && rpp::constraint::is_constructible_from) + requires (!rpp::constraint::variadic_decayed_same_as, Args...> && rpp::constraint::is_constructible_from) explicit worker(Args&&... args) : m_strategy(std::forward(args)...) { diff --git a/src/rpp/rpp/utils/utils.hpp b/src/rpp/rpp/utils/utils.hpp index 1fd605d94..526874d43 100644 --- a/src/rpp/rpp/utils/utils.hpp +++ b/src/rpp/rpp/utils/utils.hpp @@ -95,14 +95,14 @@ namespace rpp::utils struct static_mem_fn { template - requires (Inverse == false && std::invocable) + requires (Inverse == false && std::invocable) auto operator()(TT&& d) const { return (std::forward(d).*Fn)(); } template - requires (Inverse == true && std::invocable) + requires (Inverse == true && std::invocable) auto operator()(TT&& d) const { return !(std::forward(d).*Fn)();