From 4b5441382dea5bb3088329a66ba0bbd0d92e33e4 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Sun, 1 May 2022 19:04:18 -0700 Subject: [PATCH] [iwyu] uri (#29547) * [iwyu] uri * fix --- BUILD | 1 + src/core/lib/uri/uri_parser.cc | 14 +++++++++++--- tools/dockerfile/grpc_iwyu/iwyu.sh | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/BUILD b/BUILD index c03a89cf1f0..e9f56995410 100644 --- a/BUILD +++ b/BUILD @@ -1842,6 +1842,7 @@ grpc_cc_library( "src/core/lib/uri/uri_parser.h", ], external_deps = [ + "absl/status", "absl/status:statusor", "absl/strings", "absl/strings:str_format", diff --git a/src/core/lib/uri/uri_parser.cc b/src/core/lib/uri/uri_parser.cc index 8a794aedc6c..22782fcff3f 100644 --- a/src/core/lib/uri/uri_parser.cc +++ b/src/core/lib/uri/uri_parser.cc @@ -18,19 +18,27 @@ #include "src/core/lib/uri/uri_parser.h" -#include +#include +#include +#include +#include #include #include +#include +#include "absl/status/status.h" +#include "absl/strings/ascii.h" #include "absl/strings/escaping.h" +#include "absl/strings/match.h" +#include "absl/strings/str_cat.h" #include "absl/strings/str_format.h" +#include "absl/strings/str_join.h" #include "absl/strings/str_split.h" +#include "absl/strings/strip.h" #include -#include "src/core/lib/gpr/string.h" - namespace grpc_core { namespace { diff --git a/tools/dockerfile/grpc_iwyu/iwyu.sh b/tools/dockerfile/grpc_iwyu/iwyu.sh index 4f61cfb05fd..16132304ba3 100755 --- a/tools/dockerfile/grpc_iwyu/iwyu.sh +++ b/tools/dockerfile/grpc_iwyu/iwyu.sh @@ -30,7 +30,7 @@ cat compile_commands.json | sed "s,\"file\": \",\"file\": \"${IWYU_ROOT}/,g" > c # figure out which files to include cat compile_commands.json | jq -r '.[].file' \ - | grep -E "^src/core/lib/promise/" \ + | grep -E "^src/core/lib/(promise|uri)/" \ | grep -v -E "/upb-generated/|/upbdefs-generated/" \ | sort \ | tee iwyu_files.txt