From afc2281bbfcebebf974b89de77e9990443cbf2dc Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Fri, 14 Apr 2023 18:14:50 -0700 Subject: Run parallel clang-format tasks (#2740) Adds xargs arguments to enable running clang-format in parallel --- bin/format_source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12