Exclude cmake build directories from format-code

This commit is contained in:
Jay Berkenbilt 2024-02-24 10:29:20 -05:00
parent 609a271952
commit 54d8e920f1
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ else
fi
cd $(dirname $0)
for i in $(find . -name 'build*' -prune -o '(' \
for i in $(find . -name '*build*' -prune -o '(' \
-name '*.hh' -o -name '*.h' -o -name '*.cc' -o -name '*.c' \
')' -print); do
if $clang_format < $i >| $i.new; then