aboutsummaryrefslogtreecommitdiff
path: root/scripts/clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/clang-format')
-rwxr-xr-xscripts/clang-format3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/clang-format b/scripts/clang-format
new file mode 100755
index 0000000..d46056c
--- /dev/null
+++ b/scripts/clang-format
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+find . -type f -a '(' -name '*.c' -o -name '*.h' ')' | xargs clang-format -i