mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 08:02:56 +00:00
apply-clang-format.sh: Extract variable clang_format_args
This commit is contained in:
parent
af6bb52c7d
commit
ab8830f72c
1 changed files with 7 additions and 1 deletions
|
@ -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, @$,@,' \
|
||||
|
|
Loading…
Add table
Reference in a new issue