fsfw/scripts/apply-clang-format.sh

9 lines
322 B
Bash
Raw Normal View History

#!/bin/bash
if [[ ! -f README.md ]]; then
cd ..
fi
2021-12-07 13:14:57 +01:00
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