#
# Copyright (C) 2020-2022 Philippe Proulx <pproulx@efficios.com>
-expected_formatter_major_version=13
+expected_formatter_major_version=15
# Runs the formatter, making sure it's the expected version.
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