]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coccinelle: respect spacing from the semantic patch
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 18 Mar 2023 12:52:28 +0000 (13:52 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 18 Mar 2023 13:23:11 +0000 (14:23 +0100)
coccinelle/run-coccinelle.sh

index 3249722863dcb16c199e780830b69f751d651544..cd951790b9ddc649b861e24b612714f06150efd9 100755 (executable)
@@ -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