Add scripts/format.sh

Runs clang-format on all our C code
This commit is contained in:
2019-08-09 13:47:35 +03:00
parent ff266c8862
commit 32c77aefbc
+6
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