apply-clang-format.sh: Support formatting only selected files

This commit is contained in:
Sebastian Pipping 2021-04-30 20:54:28 +02:00
parent ab8830f72c
commit 8755b82355

View file

@ -40,6 +40,10 @@ clang_format_args=(
-verbose
)
if [[ $# -ge 1 ]]; then
exec clang-format "${clang_format_args[@]}" "$@"
fi
expand --tabs=2 --initial lib/siphash.h | sponge lib/siphash.h
find \