summaryrefslogtreecommitdiff
path: root/coccinelle/run-coccinelle.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-03-18 13:52:28 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-03-18 14:23:11 +0100
commitd3a2a25fb417183de82a0d2335db8cdcce605a55 (patch)
tree6f49d573cbed0be0ef5fad1932e086e6b8a2cb42 /coccinelle/run-coccinelle.sh
parente0b8bbbdbece50e7c58b09c633e0ebe6e47c99e7 (diff)
downloadsystemd-d3a2a25fb417183de82a0d2335db8cdcce605a55.tar.gz
coccinelle: respect spacing from the semantic patch
Diffstat (limited to 'coccinelle/run-coccinelle.sh')
-rwxr-xr-xcoccinelle/run-coccinelle.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/coccinelle/run-coccinelle.sh b/coccinelle/run-coccinelle.sh
index 3249722863..cd951790b9 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