Write script for formatting code
This commit is contained in:
5
scripts/format.sh
Normal file
5
scripts/format.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
find . -not \( -path './.git' -prune \) \
|
||||
-not \( -path './build' -prune \) \
|
||||
-name '*.c' -o -name '*.h' \
|
||||
| xargs -n 1 clang-format -i
|
||||
Reference in New Issue
Block a user