From 8ea4e6801a9dfd412e4fea7ba438b698b0ea1538 Mon Sep 17 00:00:00 2001 From: androm3da Date: Fri, 5 Jan 2018 22:33:16 -0600 Subject: [PATCH] Add clang-format-all.sh to format entire repo --- ci/clang-format-all.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 ci/clang-format-all.sh diff --git a/ci/clang-format-all.sh b/ci/clang-format-all.sh new file mode 100755 index 00000000..eb32a84f --- /dev/null +++ b/ci/clang-format-all.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +REPO_ROOT=$(git rev-parse --show-toplevel) +find ${REPO_ROOT}/rai -iname '*.h' -o -iname '*.hpp' -o -iname '*.cpp' | xargs clang-format -i