Add scripts/format.sh
Runs clang-format on all our C code
This commit is contained in:
parent
ff266c8862
commit
32c77aefbc
|
@ -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
|
Loading…
Reference in New Issue