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