Update FSFW from Upstream #27

Merged
muellerr merged 523 commits from mueller/update-from-upstream into develop 2022-05-17 10:06:59 +02:00
Showing only changes of commit cfa6843c8f - Show all commits

View File

@ -7,8 +7,15 @@ cmake_fmt="cmake-format"
if command -v ${cmake_fmt} &> /dev/null; then if command -v ${cmake_fmt} &> /dev/null; then
cmake_fmt_cmd="${cmake_fmt} -i CMakeLists.txt" cmake_fmt_cmd="${cmake_fmt} -i CMakeLists.txt"
eval ${cmake_fmt_cmd} eval ${cmake_fmt_cmd}
else
echo "No cmake-format tool found, not formatting CMake files"
fi fi
find ./src -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i cpp_format="clang-format"
find ./hal -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i if command -v ${clang-format} &> /dev/null; then
find ./tests -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i find ./src -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i
find ./hal -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i
find ./tests -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i
else
echo "No clang-format tool found, not formatting C++/C files"
fi