diff --git a/tools/run_tests/sanity/cpp_banned_constructs.sh b/tools/run_tests/sanity/cpp_banned_constructs.sh index 2318fd95b71..b0535b18244 100755 --- a/tools/run_tests/sanity/cpp_banned_constructs.sh +++ b/tools/run_tests/sanity/cpp_banned_constructs.sh @@ -24,7 +24,7 @@ cd "$(dirname "$0")/../../.." # grep -EIrn \ - 'std::(mutex|condition_variable|lock_guard|unique_lock|thread)' \ + '\bstd::(mutex|condition_variable|lock_guard|unique_lock|thread|string_view)' \ include/grpc include/grpcpp src/core src/cpp | \ grep -Ev 'include/grpcpp/impl/sync.h|src/core/util/work_serializer.cc' | \ diff - /dev/null