From 0abd3444344ea134b0593fcaaf428e82cd190e12 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Thu, 27 Jul 2017 11:02:39 -0700 Subject: Add clang-format options and script; apply to FirebaseCore (#151) --- scripts/style.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/style.sh (limited to 'scripts') diff --git a/scripts/style.sh b/scripts/style.sh new file mode 100755 index 0000000..48a1587 --- /dev/null +++ b/scripts/style.sh @@ -0,0 +1,13 @@ +#!/bin/bash +find . \ + -name 'third_party' -prune -o \ + -name 'Auth' -prune -o \ + -name 'AuthSamples' -prune -o \ + -name 'Database' -prune -o \ + -name 'FirebaseCommunity.h' -prune -o \ + -name 'Messaging' -prune -o \ + -name 'Storage' -prune -o \ + -name 'Pods' -prune -o \ + -name '*.[mh]' \ + -not -name '*.pbobjc.*' \ + -print0 | xargs -0 clang-format -style=file -i -- cgit v1.2.3