From: Philippe Proulx Date: Thu, 26 Oct 2023 15:36:56 +0000 (-0400) Subject: tools/format-cpp: exclude generated `parser.*` and `lexer.*` files X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=6bb5283aa0757004e0fce3ac7cd7674ec9cdc69b tools/format-cpp: exclude generated `parser.*` and `lexer.*` files We don't need to format them because they're not tracked. Signed-off-by: Philippe Proulx Change-Id: I0df8ffe9cef64b62b9327ee05acc2f4c5d48401b Reviewed-on: https://review.lttng.org/c/babeltrace/+/11150 Reviewed-by: Simon Marchi --- diff --git a/tools/format-cpp b/tools/format-cpp index 8094f135..364dafe1 100755 --- a/tools/format-cpp +++ b/tools/format-cpp @@ -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[@]}" }