aboutsummaryrefslogtreecommitdiff
path: root/clang-format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clang-format.sh')
-rw-r--r--clang-format.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang-format.sh b/clang-format.sh
new file mode 100644
index 0000000..3af256e
--- /dev/null
+++ b/clang-format.sh
@@ -0,0 +1,6 @@
+#/usr/bin/env bash
+
+echo "\n\nFormatting openvic-simulation with clang-format:\n"
+find ./src/ -iname *.hpp -o -iname *.cpp | xargs clang-format --verbose -i
+
+exit 0