tools: Add shellcheck.sh
[babeltrace.git] / tools / format-cpp.sh
index 364dafe17afc46304ae0c22c4057ce75a6261b90..be9ef74c41a260a7e8dd36ec95d21ea2e9732f3c 100755 (executable)
@@ -44,9 +44,7 @@ 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 '*/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[@]}"
This page took 0.024993 seconds and 4 git commands to generate.