Add scripts/format.sh

Runs clang-format on all our C code
This commit is contained in:
Lassi Kortela 2019-08-09 13:35:44 +03:00
parent ff266c8862
commit 32c77aefbc
1 changed files with 6 additions and 0 deletions

6
scripts/format.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")"/..
echo "Entering directory '$PWD'"
set -x
find . -name "[^.]*.[ch]" | sort | xargs clang-format -verbose -i