Skip to content

Commit 25bdced

Browse files
committed
maint: Fix apply-format script to work with clang-format 18.x
See barisione/clang-format-hooks#35
1 parent 379a670 commit 25bdced

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/apply-format

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ else # Diff-only.
305305
-p1 \
306306
-style="$style" \
307307
-iregex='^.*\.(c|cpp|cxx|cc|h|m|mm|js|java)$' \
308-
> "$patch_dest" \
309-
|| exit 1
308+
> "$patch_dest"
310309

311310
if [ "$apply_to_staged" = true ]; then
312311
if [ ! -s "$patch_dest" ]; then

0 commit comments

Comments
 (0)