mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
scripts/cocci: Remove unused arguments from try_parse.sh spatch
Part of 31919.
This commit is contained in:
@@ -24,16 +24,18 @@ for fn in "$@"; do
|
||||
fi
|
||||
fi
|
||||
|
||||
if spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \
|
||||
-I "$top" -I "$top"/src -I "$top"/ext --defined COCCI \
|
||||
if spatch --macro-file-builtins \
|
||||
"$top"/scripts/coccinelle/tor-coccinelle.h \
|
||||
--defined COCCI \
|
||||
--parse-c "$fn" \
|
||||
2>/dev/null | grep "perfect = 1" > /dev/null; then
|
||||
: # it's perfect
|
||||
else
|
||||
echo "$fn"
|
||||
if test "${VERBOSE}" != ""; then
|
||||
spatch -macro_file_builtins "$top"/scripts/coccinelle/tor-coccinelle.h \
|
||||
-I "$top" -I "$top"/src -I "$top"/ext --defined COCCI \
|
||||
spatch --macro-file-builtins \
|
||||
"$top"/scripts/coccinelle/tor-coccinelle.h \
|
||||
--defined COCCI \
|
||||
--parse-c "$fn"
|
||||
fi
|
||||
exitcode=1
|
||||
|
||||
Reference in New Issue
Block a user