From 78a59d6f32d9c308c21ccb9e5c5ffa3ce89d2c60 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 18:40:03 +0000 Subject: [PATCH 1/2] chore: update pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-clang-format: v17.0.4 → v17.0.5](https://github.com/pre-commit/mirrors-clang-format/compare/v17.0.4...v17.0.5) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8a3bcc10..ce0d874b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,7 +65,7 @@ repos: # clang-format - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v17.0.4 + rev: v17.0.5 hooks: - id: clang-format exclude: ^external/.* From b74865f196cd2ed96377eab35dfb33b2fa1f9c8c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Nov 2023 18:40:15 +0000 Subject: [PATCH 2/2] style: pre-commit fixes --- include/slang/util/Iterator.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/slang/util/Iterator.h b/include/slang/util/Iterator.h index 427107602..f01e97d7c 100644 --- a/include/slang/util/Iterator.h +++ b/include/slang/util/Iterator.h @@ -349,8 +349,8 @@ class iterator_facade { /// requires Derived::distance_to() template T> [[nodiscard]] friend constexpr decltype(auto) operator-( - const T & left, - const self_type & right) noexcept(detail::has_nothrow_distance_to) { + const T& left, + const self_type& right) noexcept(detail::has_nothrow_distance_to) { return right.distance_to(left); } @@ -358,8 +358,8 @@ class iterator_facade { /// requires Derived::distance_to() template Sentinel> [[nodiscard]] friend constexpr decltype(auto) operator-( - const self_type & left, - const Sentinel & right) noexcept(detail::has_nothrow_distance_to) { + const self_type& left, + const Sentinel& right) noexcept(detail::has_nothrow_distance_to) { return -(right - left); }