Run parallel clang-format tasks (#2740)

Adds xargs arguments to enable running clang-format in parallel
This commit is contained in:
Dana Robinson 2023-04-14 18:14:50 -07:00 committed by GitHub
parent f9c16de8a7
commit afc2281bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,6 @@ find . \( -type d -path ./config -prune -and -not -path ./config \) \
-or -name H5overflow.h \
\) \) \
-and \( -iname *.h -or -iname *.c -or -iname *.cpp -or -iname *.hpp -or -iname *.java \) \) \
| xargs clang-format -style=file -i -fallback-style=none
| xargs -P0 -n1 clang-format -style=file -i -fallback-style=none
exit 0