From c536a39f0a10e826bc2fc4c4d8e73f56a00212b4 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Wed, 1 Apr 2026 17:53:29 +0200 Subject: [PATCH] Treefmt config --- .github/workflows/clang-format.yaml | 1 + .treefmt.toml | 3 ++- docs/source-formatting.md | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clang-format.yaml b/.github/workflows/clang-format.yaml index 9eb77ab9..083f265f 100644 --- a/.github/workflows/clang-format.yaml +++ b/.github/workflows/clang-format.yaml @@ -39,4 +39,5 @@ jobs: '*.h' '*.hh' '*.hpp' '*.hxx' \ '*.ipp' '*.inl' \ ':(exclude)include/etl/generators/*' \ + ':(exclude)include/etl/private/*_cpp03.h' \ | xargs -0 --no-run-if-empty clang-format --Werror -n --style=file diff --git a/.treefmt.toml b/.treefmt.toml index 1dbcf80d..8ae8c023 100644 --- a/.treefmt.toml +++ b/.treefmt.toml @@ -29,7 +29,8 @@ excludes = [ "*.yml", "docker/**", "scripts/clang-format-wrapper", - "include/etl/generators/**" + "include/etl/generators/**", + "include/etl/private/*_cpp03.h" ] [formatter.cpp] diff --git a/docs/source-formatting.md b/docs/source-formatting.md index 4c353c05..37c18c6e 100644 --- a/docs/source-formatting.md +++ b/docs/source-formatting.md @@ -31,7 +31,8 @@ Format every tracked source file in the repository: git ls-files -z \ '*.c' '*.cc' '*.cpp' \ '*.h' '*.hh' '*.hpp' \ - ':(exclude)include/etl/generators/*' | xargs -0 scripts/clang-format-wrapper -i --verbose --style=file + ':(exclude)include/etl/generators/*' \ + ':(exclude)include/etl/private/*_cpp03.h' | xargs -0 scripts/clang-format-wrapper -i --verbose --style=file ``` You can also format individual files directly: