summaryrefslogtreecommitdiffstats
path: root/bin/format_source
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-04-15 01:14:50 (GMT)
committerGitHub <noreply@github.com>2023-04-15 01:14:50 (GMT)
commitafc2281bbfcebebf974b89de77e9990443cbf2dc (patch)
tree1e887d251bb01877ebd0edd6be205ca5817ccc7d /bin/format_source
parentf9c16de8a7f50afd6f5ef14df68074552388dae6 (diff)
downloadhdf5-afc2281bbfcebebf974b89de77e9990443cbf2dc.zip
hdf5-afc2281bbfcebebf974b89de77e9990443cbf2dc.tar.gz
hdf5-afc2281bbfcebebf974b89de77e9990443cbf2dc.tar.bz2
Run parallel clang-format tasks (#2740)
Adds xargs arguments to enable running clang-format in parallel
Diffstat (limited to 'bin/format_source')
-rwxr-xr-xbin/format_source2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/format_source b/bin/format_source
index 227d22a..1d9e88a 100755
--- a/bin/format_source
+++ b/bin/format_source
@@ -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