From 6bb5283aa0757004e0fce3ac7cd7674ec9cdc69b Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 26 Oct 2023 11:36:56 -0400 Subject: [PATCH] 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 --- tools/format-cpp | 2 ++ 1 file changed, 2 insertions(+) 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[@]}" } -- 2.34.1