summaryrefslogtreecommitdiffstats
path: root/scripts/run_clang_format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run_clang_format.sh')
-rwxr-xr-xscripts/run_clang_format.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/run_clang_format.sh b/scripts/run_clang_format.sh
new file mode 100755
index 0000000..9a2d397
--- /dev/null
+++ b/scripts/run_clang_format.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+find . -path ./3rd_party -prune -o \( -name '*.h' -or -name '*.cpp' \) \
+ -exec clang-format -i {} \;