apply-clang-format.sh: Extract variable clang_format_args

This commit is contained in:
Sebastian Pipping 2021-04-30 20:53:53 +02:00
parent af6bb52c7d
commit ab8830f72c

View File

@ -34,6 +34,12 @@ set -o pipefail
clang-format --version
clang_format_args=(
-i
-style=file
-verbose
)
expand --tabs=2 --initial lib/siphash.h | sponge lib/siphash.h
find \
@ -42,7 +48,7 @@ find \
-o -name '*.cxx' \
-o -name '*.h.cmake' \
| sort \
| xargs clang-format -i -style=file -verbose
| xargs clang-format "${clang_format_args[@]}"
sed \
-e 's, @$,@,' \