Treefmt config

This commit is contained in:
Roland Reichwein 2026-04-01 17:53:29 +02:00 committed by John Wellbelove
parent 9b394b8677
commit c536a39f0a
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -29,7 +29,8 @@ excludes = [
"*.yml",
"docker/**",
"scripts/clang-format-wrapper",
"include/etl/generators/**"
"include/etl/generators/**",
"include/etl/private/*_cpp03.h"
]
[formatter.cpp]

View File

@ -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: