aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNebula Moe <nebula_moe@outlook.com>2023-07-24 19:47:03 +0800
committerNebula Moe <nebula_moe@outlook.com>2023-07-28 22:30:22 +0800
commit2161797b19b068622a692628f352c78254d8a354 (patch)
tree146272037ff9a79dbd3903dd9471a7713469419d /scripts
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/format.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/format.sh b/scripts/format.sh
new file mode 100755
index 0000000..6dade1b
--- /dev/null
+++ b/scripts/format.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+clang-format -i $(find . -name '*.c' -or -name '*.h')