From 25bdced182beeb7c2c92aa93bef1ba9383f36c0e Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Sun, 28 Jul 2024 13:18:19 -0700 Subject: [PATCH] maint: Fix apply-format script to work with clang-format 18.x See https://github.com/barisione/clang-format-hooks/pull/35 --- tools/apply-format | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/apply-format b/tools/apply-format index a14b76e17..fa3ddbe7e 100755 --- a/tools/apply-format +++ b/tools/apply-format @@ -305,8 +305,7 @@ else # Diff-only. -p1 \ -style="$style" \ -iregex='^.*\.(c|cpp|cxx|cc|h|m|mm|js|java)$' \ - > "$patch_dest" \ - || exit 1 + > "$patch_dest" if [ "$apply_to_staged" = true ]; then if [ ! -s "$patch_dest" ]; then