summaryrefslogtreecommitdiffstats
path: root/bin/format_source
diff options
context:
space:
mode:
Diffstat (limited to 'bin/format_source')
-rw-r--r--bin/format_source6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/format_source b/bin/format_source
new file mode 100644
index 0000000..b0b695c
--- /dev/null
+++ b/bin/format_source
@@ -0,0 +1,6 @@
+#!/bin/bash
+find . -type d \( -path ./config \) -prune \
+ -o -iname *.h -o -iname *.c -o -iname *.cpp -o -iname *.hpp \
+ | xargs clang-format -style=file -i -fallback-style=none
+
+exit 0 \ No newline at end of file