mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Treefmt config
This commit is contained in:
parent
9b394b8677
commit
c536a39f0a
1
.github/workflows/clang-format.yaml
vendored
1
.github/workflows/clang-format.yaml
vendored
@ -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
|
||||
|
||||
@ -29,7 +29,8 @@ excludes = [
|
||||
"*.yml",
|
||||
"docker/**",
|
||||
"scripts/clang-format-wrapper",
|
||||
"include/etl/generators/**"
|
||||
"include/etl/generators/**",
|
||||
"include/etl/private/*_cpp03.h"
|
||||
]
|
||||
|
||||
[formatter.cpp]
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user