diff --git a/expat/apply-clang-format.sh b/expat/apply-clang-format.sh index f667d60f..6d562a26 100755 --- a/expat/apply-clang-format.sh +++ b/expat/apply-clang-format.sh @@ -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 \