From: Frantisek Sumsal Date: Sat, 18 Mar 2023 12:52:28 +0000 (+0100) Subject: coccinelle: respect spacing from the semantic patch X-Git-Tag: v254-rc1~985^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d3a2a25fb417183de82a0d2335db8cdcce605a55;p=thirdparty%2Fsystemd.git coccinelle: respect spacing from the semantic patch --- diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh index 3249722863d..cd951790b9d 100755 --- a/coccinelle/run-coccinelle.sh +++ b/coccinelle/run-coccinelle.sh @@ -42,7 +42,7 @@ for script in "${SCRIPTS[@]}"; do TMPFILE="$(mktemp)" echo "+ spatch --sp-file $script ${ARGS[*]} ..." parallel --halt now,fail=1 --keep-order --noswap --max-args=20 \ - spatch --macro-file="$TOP_DIR/coccinelle/macros.h" --sp-file "$script" "${ARGS[@]}" ::: "${FILES[@]}" \ + spatch --macro-file="$TOP_DIR/coccinelle/macros.h" --smpl-spacing --sp-file "$script" "${ARGS[@]}" ::: "${FILES[@]}" \ 2>"$TMPFILE" || cat "$TMPFILE" echo -e "--x-- Processed $script --x--\n" done