X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tools%2Fformat-cpp;h=0a165a8f2b18e03953120bf81ab5ec4030ec52a1;hb=66c3bce11973e6e96a3791c378a9e5f98ddaa280;hp=370baef9553dabf2aefce9d08e5bd89cc56d4d87;hpb=9021ae77076ea1805eb09d0d93f8d1a4081b633c;p=babeltrace.git diff --git a/tools/format-cpp b/tools/format-cpp index 370baef9..0a165a8f 100755 --- a/tools/format-cpp +++ b/tools/format-cpp @@ -4,7 +4,7 @@ # # Copyright (C) 2020-2022 Philippe Proulx -expected_formatter_major_version=13 +expected_formatter_major_version=15 # Runs the formatter, making sure it's the expected version. format_cpp() { @@ -39,7 +39,7 @@ format_cpp() { find "$root_dir" \( -name '*.cpp' -o -name '*.hpp' \) \ ! -wholename '*/cpp-common/optional.hpp' \ ! -wholename '*/cpp-common/string_view.hpp' \ - -print0 | xargs -n1 -0 $formatter + -print0 | xargs -P$(nproc) -n1 -0 $formatter } if [[ -n "$FORMATTER" ]]; then