X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=tools%2Fformat-cpp.sh;h=c0a9583a163cce8c513379938485a5e542407dc8;hb=e0f8968a1182ea437ee4db0abc4043ba1dc286a2;hp=364dafe17afc46304ae0c22c4057ce75a6261b90;hpb=ac4d5cf0acd3b2c10f82da788ddc0ab08f13c138;p=babeltrace.git diff --git a/tools/format-cpp.sh b/tools/format-cpp.sh index 364dafe1..c0a9583a 100755 --- a/tools/format-cpp.sh +++ b/tools/format-cpp.sh @@ -44,9 +44,8 @@ format_cpp() { # We want an absolute starting directory because find(1) excludes # files in specific subdirectories. find "$(realpath "$root_dir")" \( -name '*.cpp' -o -name '*.hpp' \) \ - ! -path '*/src/cpp-common/optional.hpp' \ - ! -path '*/src/cpp-common/string_view.hpp' \ - ! -path '*/src/cpp-common/nlohmann/json.hpp' \ + ! -path '*/.git/*' \ + ! -path '*/src/cpp-common/vendor/*' \ ! -path '*/src/plugins/ctf/common/metadata/parser.*' \ ! -path '*/src/plugins/ctf/common/metadata/lexer.*' \ -print0 | xargs -P"$(nproc)" -n1 -t -0 "${formatter[@]}"