summaryrefslogtreecommitdiffstats
path: root/coccinelle
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
parentdoc: update ELF_PACKAGE_METADATA to use linker flag instead of manual script (diff)
downloadsystemd-d3a2a25fb417183de82a0d2335db8cdcce605a55.tar.xz
systemd-d3a2a25fb417183de82a0d2335db8cdcce605a55.zip
coccinelle: respect spacing from the semantic patch
Diffstat (limited to 'coccinelle')
-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