aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2017-11-13 16:31:27 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2017-11-13 16:31:27 -0800
commit248c4f5848c8761fc16352e1f2f1e6d047780b4e (patch)
treedb3bc383eeccf2599a2c3ddae821ad363c74515a /tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh
parent3f6b10afba43e2855efd2fbeb3f1f4ea6c2a9657 (diff)
parente52772451a7bbf4f3f7b72cfc369781fd74a6930 (diff)
Merge remote-tracking branch 'upstream/master' into pass_args_to_tsi
Diffstat (limited to 'tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh')
-rwxr-xr-xtools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh b/tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh
index c471344157..72471994ee 100755
--- a/tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh
+++ b/tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh
@@ -16,20 +16,20 @@
set -e
# directories to run against
-DIRS="src/core/lib src/core/tsi src/core/ext src/cpp test/core test/cpp include src/compiler src/node src/csharp src/ruby"
+DIRS="src/core/lib src/core/tsi src/core/ext src/cpp test/core test/cpp include src/compiler src/csharp src/ruby"
# file matching patterns to check
GLOB="*.h *.c *.cc"
# clang format command
-CLANG_FORMAT=clang-format-3.8
+CLANG_FORMAT=${CLANG_FORMAT:-clang-format-5.0}
files=
for dir in $DIRS
do
for glob in $GLOB
do
- files="$files `find ${CLANG_FORMAT_ROOT}/$dir -name $glob -and -not -name *.generated.* -and -not -name *.pb.h -and -not -name *.pb.c -and -not -name *.pb.cc -and -not -name end2end_tests.c -and -not -name end2end_nosec_tests.c`"
+ files="$files `find ${CLANG_FORMAT_ROOT}/$dir -name $glob -and -not -name '*.generated.*' -and -not -name '*.pb.h' -and -not -name '*.pb.c' -and -not -name '*.pb.cc' -and -not -name end2end_tests.cc -and -not -name end2end_nosec_tests.cc -and -not -name public_headers_must_be_c89.c`"
done
done