aboutsummaryrefslogtreecommitdiff
path: root/format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'format.sh')
-rwxr-xr-xformat.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/format.sh b/format.sh
new file mode 100755
index 0000000..82ed3f5
--- /dev/null
+++ b/format.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+cd $(dirname -- "$0")
+
+SRC="$(find src_c -name '*.c' -o -name '*.h') $(find test_c -name '*.c')"
+
+clang-format -style=file -i $SRC