another test

This commit is contained in:
Robin Müller 2023-04-04 13:45:12 +02:00
parent 143fb44037
commit e47ba65550
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -31,11 +31,11 @@ fi
cpp_format="clang-format"
file_selectors="-iname *.h -o -iname *.cpp -o -iname *.c -o -iname *.tpp"
file_excludes="-not -path '*translateObjects.cpp' -not -path '*translateEvents.cpp'"
file_excludes="-not -path '*translateObjects.cpp' - -not -path '*translateEvents.cpp'"
if command -v ${cpp_format} &> /dev/null; then
for dir in ${folder_list[@]}; do
echo "Auto-formatting C/C++ files in ${dir} recursively"
find ${dir} ${file_selectors} ${file_excludes} | xargs ${cpp_format} --style=file -i
find ${dir} ${file_excludes} ${file_selectors} | xargs ${cpp_format} --style=file -i
done
find ./unittest ${file_selectors} -o -type d -name build -prune | \
xargs clang-format --style=file -i