[iwyu] event_engine (#29641)

* slartibartfast

* Automated change: Fix sanity tests

* fix

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
pull/29647/head
Craig Tiller 3 years ago committed by GitHub
parent 1494b1ef26
commit da9f98a8bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .gitignore
  2. 1
      BUILD
  3. 6
      src/core/lib/event_engine/channel_args_endpoint_config.cc
  4. 5
      src/core/lib/event_engine/channel_args_endpoint_config.h
  5. 4
      src/core/lib/event_engine/default_event_engine_factory.cc
  6. 5
      src/core/lib/event_engine/event_engine.cc
  7. 2
      src/core/lib/event_engine/event_engine_factory.h
  8. 12
      src/core/lib/event_engine/memory_allocator.cc
  9. 6
      src/core/lib/event_engine/resolved_address.cc
  10. 7
      tools/dockerfile/grpc_iwyu/iwyu.sh

1
.gitignore vendored

@ -170,6 +170,7 @@ compile_commands.json
compile_commands_for_iwyu.json
iwyu.out
iwyu_files.txt
iwyu_files0.txt
iwyu/
iwyu_build/

@ -1834,6 +1834,7 @@ grpc_cc_library(
],
deps = [
"default_event_engine_factory_hdrs",
"event_engine_base_hdrs",
"gpr_base",
],
)

@ -15,12 +15,14 @@
#include "src/core/lib/event_engine/channel_args_endpoint_config.h"
#include <string>
#include "absl/types/variant.h"
#include <grpc/event_engine/endpoint_config.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/impl/codegen/log.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gpr/useful.h"
namespace grpc_event_engine {
namespace experimental {

@ -16,9 +16,10 @@
#include <grpc/support/port_platform.h>
#include <grpc/event_engine/endpoint_config.h>
#include "absl/strings/string_view.h"
#include "src/core/lib/channel/channel_args.h"
#include <grpc/event_engine/endpoint_config.h>
#include <grpc/impl/codegen/grpc_types.h>
namespace grpc_event_engine {
namespace experimental {

@ -13,6 +13,10 @@
// limitations under the License.
#include <grpc/support/port_platform.h>
#include <memory>
#include <grpc/event_engine/event_engine.h>
#include "src/core/lib/event_engine/event_engine_factory.h"
namespace grpc_event_engine {

@ -13,9 +13,10 @@
// limitations under the License.
#include <grpc/support/port_platform.h>
#include <functional>
#include <memory>
#include <grpc/event_engine/event_engine.h>
#include <grpc/event_engine/port.h>
#include <grpc/support/log.h>
#include "src/core/lib/event_engine/event_engine_factory.h"
#include "src/core/lib/gprpp/sync.h"

@ -16,6 +16,8 @@
#include <grpc/support/port_platform.h>
#include <memory>
#include <grpc/event_engine/event_engine.h>
namespace grpc_event_engine {

@ -14,10 +14,18 @@
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <stdlib.h>
#include <memory>
#include <new>
#include <utility>
#include <grpc/event_engine/memory_allocator.h>
#include <grpc/event_engine/memory_request.h>
#include <grpc/slice.h>
#include "src/core/lib/gprpp/ref_counted.h"
#include "src/core/lib/slice/slice_refcount.h"
#include "src/core/lib/slice/slice_refcount_base.h"
namespace grpc_event_engine {
namespace experimental {

@ -11,13 +11,15 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <grpc/support/port_platform.h>
#include <string.h>
#include <grpc/event_engine/event_engine.h>
#include <grpc/event_engine/port.h>
#include <grpc/support/log.h>
#include "src/core/lib/gprpp/sync.h"
// IWYU pragma: no_include <sys/socket.h>
namespace grpc_event_engine {
namespace experimental {

@ -45,6 +45,7 @@ export ENABLED_MODULES='
src/core/lib/avl
src/core/lib/channel
src/core/lib/config
src/core/lib/event_engine
src/core/lib/gprpp
src/core/lib/json
src/core/lib/slice
@ -62,8 +63,12 @@ cat compile_commands.json | jq -r '.[].file' \
| grep -E $INCLUSION_REGEX \
| grep -v -E "/upb-generated/|/upbdefs-generated/" \
| sort \
> iwyu_files0.txt
cat iwyu_files0.txt \
| xargs -d '\n' ls -1df 2> /dev/null \
> iwyu_files.txt
> iwyu_files.txt \
|| true
echo '#!/bin/sh
${IWYU_ROOT}/iwyu/iwyu_tool.py -p compile_commands_for_iwyu.json $1 -- -Xiwyu --no_fwd_decls \

Loading…
Cancel
Save