tools/format-cpp: exclude generated `parser.*` and `lexer.*` files
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 26 Oct 2023 15:36:56 +0000 (11:36 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 30 Oct 2023 18:15:46 +0000 (14:15 -0400)
We don't need to format them because they're not tracked.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I0df8ffe9cef64b62b9327ee05acc2f4c5d48401b
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11150
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
tools/format-cpp

index 8094f13518990af8ce268630e85f2ca8cdc730f5..364dafe17afc46304ae0c22c4057ce75a6261b90 100755 (executable)
@@ -47,6 +47,8 @@ format_cpp() {
                ! -path '*/src/cpp-common/optional.hpp' \
                ! -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[@]}"
 }
 
This page took 0.024287 seconds and 4 git commands to generate.