summaryrefslogtreecommitdiffstats
path: root/web/server/h2o/libh2o/misc/clang-format-all.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xweb/server/h2o/libh2o/misc/clang-format-all.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/server/h2o/libh2o/misc/clang-format-all.sh b/web/server/h2o/libh2o/misc/clang-format-all.sh
new file mode 100755
index 00000000..aaf606c3
--- /dev/null
+++ b/web/server/h2o/libh2o/misc/clang-format-all.sh
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+exec clang-format -i $(git ls-files | egrep -v '(^deps/|/_|^handler/mimemap/defaults\.c\.h)' | egrep '\.(c|h)$')
+exit $?