finally works
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
2023-04-04 14:01:13 +02:00
parent 8d1db69e0d
commit e10359077c
7 changed files with 9 additions and 9 deletions

View File

@ -30,12 +30,12 @@ else
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_selectors="( -iname *.h -o -iname *.cpp -o -iname *.c -o -iname *.tpp )"
file_excludes="( -not -iname translateObjects.cpp -not -iname 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_excludes} ${file_selectors} | xargs ${cpp_format} --style=file -i
find ${dir} ${file_excludes} -and ${file_selectors} | xargs ${cpp_format} --style=file -i
done
find ./unittest ${file_selectors} -o -type d -name build -prune | \
xargs ${cpp_format} --style=file -i