cpp-common: add nlohmann/json header-only dependency
[babeltrace.git] / tools / format-cpp
index 56064ce0c1f7c4acca5329db90a0caf917999d81..7fcf75896e986e4198cbe961ce77d3fa6ceaef9f 100755 (executable)
@@ -4,7 +4,7 @@
 #
 # Copyright (C) 2020-2022 Philippe Proulx <pproulx@efficios.com>
 
-expected_formatter_major_version=14
+expected_formatter_major_version=15
 
 # Runs the formatter, making sure it's the expected version.
 format_cpp() {
@@ -39,7 +39,8 @@ 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
+               ! -wholename '*/cpp-common/nlohmann/json.hpp' \
+               -print0 | xargs -P$(nproc) -n1 -0 $formatter
 }
 
 if [[ -n "$FORMATTER" ]]; then
This page took 0.023441 seconds and 4 git commands to generate.