# We want an absolute starting directory because find(1) excludes
# files in specific subdirectories.
find "$(realpath "$root_dir")" \( -name '*.cpp' -o -name '*.hpp' \) \
+ ! -path '*/.git/*' \
! -path '*/src/cpp-common/vendor/*' \
- ! -path '*/src/cpp-common/string_view.hpp' \
- ! -path '*/src/cpp-common/nlohmann/json.hpp' \
! -path '*/src/plugins/ctf/common/metadata/parser.*' \
! -path '*/src/plugins/ctf/common/metadata/lexer.*' \
-print0 | xargs -P"$(nproc)" -n1 -t -0 "${formatter[@]}"