WIP: develop_update #706

Draft
muellerr wants to merge 710 commits from eive/fsfw:develop_update into development
1 changed files with 8 additions and 7 deletions
Showing only changes of commit e8023886f6 - Show all commits

View File

@ -3,6 +3,12 @@ if [[ ! -f README.md ]]; then
cd ..
fi
folder_list=(
"./src"
"./hal"
"./tests"
)
cmake_fmt="cmake-format"
if command -v ${cmake_fmt} &> /dev/null; then
cmake_fmt_cmd="${cmake_fmt} -i CMakeLists.txt"
@ -12,15 +18,10 @@ else
fi
cpp_format="clang-format"
folder_list=(
"./src"
"./hal"
"./tests"
)
file_selectors="-iname *.h -o -iname *.cpp -o -iname *.c -o -iname *.tpp"
if command -v ${cpp_format} &> /dev/null; then
echo "Auto-formatting ${dir} recursively"
for dir in ${allThreads[@]}; do
for dir in ${folder_list[@]}; do
echo "Auto-formatting ${dir} recursively"
find ${dir} ${file_selectors} | xargs clang-format --style=file -i
done
else