From 6dd92a462e92023ad6474059e6e4255fccba10c2 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Fri, 15 Nov 2019 09:50:35 -0800 Subject: [PATCH] Update by review --- tools/run_tests/sanity/cpp_banned_constructs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/run_tests/sanity/cpp_banned_constructs.sh b/tools/run_tests/sanity/cpp_banned_constructs.sh index 55cf252d827..14716f01467 100755 --- a/tools/run_tests/sanity/cpp_banned_constructs.sh +++ b/tools/run_tests/sanity/cpp_banned_constructs.sh @@ -29,3 +29,12 @@ egrep -Irn \ egrep -v include/grpcpp/impl/codegen/sync.h | \ diff - /dev/null +# +# Prevent the include of disallowed C++ headers. +# + +egrep -Irn \ + '^#include (||||||)' \ + include/grpc include/grpcpp src/core src/cpp | \ + egrep -v include/grpcpp/impl/codegen/sync.h | \ + diff - /dev/null