X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=format-cpp;h=17275de77c7f4ee7f0d004cab9f94558e9f2c511;hb=cebde614e5805e89341ba75d276b4d3e2da7225f;hp=d7155b21dd329a39a1dc53ea8e8e7715ca0d9185;hpb=78de3202c4229810299157a7b605213f2841ca2c;p=lttng-tools.git diff --git a/format-cpp b/format-cpp index d7155b21d..17275de77 100755 --- a/format-cpp +++ b/format-cpp @@ -38,7 +38,7 @@ format_cpp() { # shellcheck disable=SC2086 find "$root_dir" -path './src/vendor' -prune \ -o -type f \( -name '*\.h' -o -name '*\.hpp' -o -name '*\.c' -o -name '*\.cpp' \) \ - -not -path '*/\.*' -print0 | xargs -n1 -0 $formatter -i --style=file --fallback-style=none + -not -path '*/\.*' -print0 | xargs -P$(nproc) -n1 -0 $formatter -i --style=file --fallback-style=none } if [[ -n "$FORMATTER" ]]; then