fsfw/scripts/apply-clang-format.sh

9 lines
280 B
Bash
Executable File

#!/bin/bash
if [[ ! -f README.md ]]; then
cd ..
fi
find ./src -iname *.h -o -iname *.cpp | xargs clang-format --style=file -i
find ./hal -iname *.h -o -iname *.cpp | xargs clang-format --style=file -i
find ./tests -iname *.h -o -iname *.cpp | xargs clang-format --style=file -i