[clang-format] run for everything under src/core (#36381)

Looks like this has been broken for things we've moved out of lib and ext.

Closes #36381

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36381 from markdroth:clang_format_fix 41f0283c42
PiperOrigin-RevId: 626137779
pull/36401/head
Mark D. Roth 7 months ago committed by Copybara-Service
parent 108848ae20
commit 17984c10e1
  1. 2
      src/core/client_channel/client_channel_filter.h
  2. 2
      src/core/client_channel/client_channel_internal.h
  3. 2
      src/core/client_channel/client_channel_service_config.h
  4. 2
      src/core/client_channel/config_selector.h
  5. 2
      src/core/client_channel/retry_filter.cc
  6. 4
      src/core/load_balancing/address_filtering.cc
  7. 4
      src/core/load_balancing/address_filtering.h
  8. 4
      src/core/load_balancing/backend_metric_data.h
  9. 4
      src/core/load_balancing/backend_metric_parser.cc
  10. 4
      src/core/load_balancing/backend_metric_parser.h
  11. 5
      src/core/load_balancing/child_policy_handler.cc
  12. 4
      src/core/load_balancing/child_policy_handler.h
  13. 5
      src/core/load_balancing/delegating_helper.h
  14. 5
      src/core/load_balancing/endpoint_list.cc
  15. 3
      src/core/load_balancing/endpoint_list.h
  16. 3
      src/core/load_balancing/grpclb/grpclb.cc
  17. 4
      src/core/load_balancing/grpclb/grpclb_balancer_addresses.cc
  18. 3
      src/core/load_balancing/grpclb/grpclb_balancer_addresses.h
  19. 3
      src/core/load_balancing/grpclb/grpclb_client_stats.cc
  20. 3
      src/core/load_balancing/grpclb/grpclb_client_stats.h
  21. 3
      src/core/load_balancing/grpclb/load_balancer_api.cc
  22. 5
      src/core/load_balancing/grpclb/load_balancer_api.h
  23. 3
      src/core/load_balancing/health_check_client.cc
  24. 4
      src/core/load_balancing/health_check_client.h
  25. 3
      src/core/load_balancing/health_check_client_internal.h
  26. 4
      src/core/load_balancing/lb_policy.cc
  27. 3
      src/core/load_balancing/lb_policy.h
  28. 4
      src/core/load_balancing/lb_policy_factory.h
  29. 3
      src/core/load_balancing/lb_policy_registry.cc
  30. 4
      src/core/load_balancing/lb_policy_registry.h
  31. 3
      src/core/load_balancing/oob_backend_metric.cc
  32. 4
      src/core/load_balancing/oob_backend_metric.h
  33. 3
      src/core/load_balancing/oob_backend_metric_internal.h
  34. 3
      src/core/load_balancing/outlier_detection/outlier_detection.cc
  35. 4
      src/core/load_balancing/outlier_detection/outlier_detection.h
  36. 45
      src/core/load_balancing/pick_first/pick_first.cc
  37. 7
      src/core/load_balancing/priority/priority.cc
  38. 5
      src/core/load_balancing/ring_hash/ring_hash.cc
  39. 4
      src/core/load_balancing/ring_hash/ring_hash.h
  40. 3
      src/core/load_balancing/rls/rls.cc
  41. 3
      src/core/load_balancing/round_robin/round_robin.cc
  42. 3
      src/core/load_balancing/subchannel_interface.h
  43. 3
      src/core/load_balancing/weighted_round_robin/static_stride_scheduler.cc
  44. 4
      src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h
  45. 3
      src/core/load_balancing/weighted_round_robin/weighted_round_robin.cc
  46. 7
      src/core/load_balancing/weighted_target/weighted_target.cc
  47. 2
      src/core/load_balancing/weighted_target/weighted_target.h
  48. 3
      src/core/load_balancing/xds/cds.cc
  49. 5
      src/core/load_balancing/xds/xds_cluster_manager.cc
  50. 3
      src/core/load_balancing/xds/xds_override_host.cc
  51. 4
      src/core/load_balancing/xds/xds_override_host.h
  52. 3
      src/core/load_balancing/xds/xds_wrr_locality.cc
  53. 3
      src/core/plugin_registry/grpc_plugin_registry.cc
  54. 3
      src/core/plugin_registry/grpc_plugin_registry_extra.cc
  55. 3
      src/core/plugin_registry/grpc_plugin_registry_noextra.cc
  56. 8
      src/core/resolver/binder/binder_resolver.cc
  57. 11
      src/core/resolver/dns/c_ares/dns_resolver_ares.cc
  58. 4
      src/core/resolver/dns/c_ares/dns_resolver_ares.h
  59. 6
      src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h
  60. 4
      src/core/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc
  61. 4
      src/core/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc
  62. 7
      src/core/resolver/dns/c_ares/grpc_ares_wrapper.cc
  63. 3
      src/core/resolver/dns/c_ares/grpc_ares_wrapper.h
  64. 2
      src/core/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc
  65. 2
      src/core/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc
  66. 9
      src/core/resolver/dns/dns_resolver_plugin.cc
  67. 7
      src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.cc
  68. 6
      src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h
  69. 4
      src/core/resolver/dns/event_engine/service_config_helper.cc
  70. 4
      src/core/resolver/dns/event_engine/service_config_helper.h
  71. 7
      src/core/resolver/dns/native/dns_resolver.cc
  72. 3
      src/core/resolver/endpoint_addresses.cc
  73. 4
      src/core/resolver/endpoint_addresses.h
  74. 5
      src/core/resolver/fake/fake_resolver.cc
  75. 3
      src/core/resolver/fake/fake_resolver.h
  76. 9
      src/core/resolver/google_c2p/google_c2p_resolver.cc
  77. 5
      src/core/resolver/polling_resolver.cc
  78. 3
      src/core/resolver/polling_resolver.h
  79. 4
      src/core/resolver/resolver.cc
  80. 4
      src/core/resolver/resolver.h
  81. 6
      src/core/resolver/resolver_factory.h
  82. 3
      src/core/resolver/resolver_registry.cc
  83. 6
      src/core/resolver/resolver_registry.h
  84. 5
      src/core/resolver/sockaddr/sockaddr_resolver.cc
  85. 4
      src/core/resolver/xds/xds_dependency_manager.cc
  86. 4
      src/core/resolver/xds/xds_dependency_manager.h
  87. 3
      src/core/resolver/xds/xds_resolver.cc
  88. 4
      src/core/resolver/xds/xds_resolver_attributes.h
  89. 4
      src/core/resolver/xds/xds_resolver_trace.cc
  90. 3
      src/core/service_config/service_config.h
  91. 4
      src/core/service_config/service_config_call_data.h
  92. 4
      src/core/service_config/service_config_impl.cc
  93. 3
      src/core/service_config/service_config_impl.h
  94. 3
      src/core/service_config/service_config_parser.cc
  95. 4
      src/core/service_config/service_config_parser.h
  96. 2
      tools/dockerfile/grpc_clang_format/clang_format_all_the_things.sh

@ -63,7 +63,6 @@
#include "src/core/lib/promise/activity.h"
#include "src/core/lib/promise/arena_promise.h"
#include "src/core/lib/resource_quota/arena.h"
#include "src/core/service_config/service_config.h"
#include "src/core/lib/slice/slice.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/lib/transport/metadata_batch.h"
@ -71,6 +70,7 @@
#include "src/core/load_balancing/backend_metric_data.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/resolver/resolver.h"
#include "src/core/service_config/service_config.h"
//
// Client channel filter

@ -29,8 +29,8 @@
#include "src/core/lib/channel/context.h"
#include "src/core/lib/gprpp/unique_type_name.h"
#include "src/core/lib/resource_quota/arena.h"
#include "src/core/service_config/service_config_call_data.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/service_config/service_config_call_data.h"
//
// This file contains internal interfaces used to allow various plugins

@ -35,8 +35,8 @@
#include "src/core/lib/json/json.h"
#include "src/core/lib/json/json_args.h"
#include "src/core/lib/json/json_object_loader.h"
#include "src/core/service_config/service_config_parser.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/service_config/service_config_parser.h"
namespace grpc_core {
namespace internal {

@ -36,9 +36,9 @@
#include "src/core/lib/gprpp/ref_counted.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/resource_quota/arena.h"
#include "src/core/service_config/service_config.h"
#include "src/core/lib/slice/slice.h"
#include "src/core/lib/transport/metadata_batch.h"
#include "src/core/service_config/service_config.h"
// Channel arg key for ConfigSelector.
#define GRPC_ARG_CONFIG_SELECTOR "grpc.internal.config_selector"

@ -35,9 +35,9 @@
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/service_config/service_config.h"
#include "src/core/service_config/service_config_call_data.h"
#include "src/core/lib/uri/uri_parser.h"
//
// Retry filter

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/address_filtering.h"
#include <stddef.h>
@ -24,6 +22,8 @@
#include "absl/functional/function_ref.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/iomgr/resolved_address.h"

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_ADDRESS_FILTERING_H
#define GRPC_SRC_CORE_LOAD_BALANCING_ADDRESS_FILTERING_H
#include <grpc/support/port_platform.h>
#include <map>
#include <memory>
#include <utility>
@ -27,6 +25,8 @@
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/ref_counted.h"
#include "src/core/lib/gprpp/ref_counted_string.h"
#include "src/core/resolver/endpoint_addresses.h"

@ -17,12 +17,12 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_BACKEND_METRIC_DATA_H
#define GRPC_SRC_CORE_LOAD_BALANCING_BACKEND_METRIC_DATA_H
#include <grpc/support/port_platform.h>
#include <map>
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
namespace grpc_core {
// Represents backend metrics reported by the backend to the client.

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/backend_metric_parser.h"
#include <string.h>
@ -28,6 +26,8 @@
#include "upb/message/map.h"
#include "xds/data/orca/v3/orca_load_report.upb.h"
#include <grpc/support/port_platform.h>
namespace grpc_core {
namespace {

@ -17,12 +17,12 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_BACKEND_METRIC_PARSER_H
#define GRPC_SRC_CORE_LOAD_BALANCING_BACKEND_METRIC_PARSER_H
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/backend_metric_data.h"
namespace grpc_core {

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/child_policy_handler.h"
#include <memory>
@ -27,16 +25,17 @@
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/iomgr/pollset_set.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/load_balancing/delegating_helper.h"
#include "src/core/load_balancing/lb_policy_registry.h"
#include "src/core/load_balancing/subchannel_interface.h"
#include "src/core/lib/transport/connectivity_state.h"
namespace grpc_core {

@ -16,13 +16,13 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_CHILD_POLICY_HANDLER_H
#define GRPC_SRC_CORE_LOAD_BALANCING_CHILD_POLICY_HANDLER_H
#include <grpc/support/port_platform.h>
#include <utility>
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/orphanable.h"

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_DELEGATING_HELPER_H
#define GRPC_SRC_CORE_LOAD_BALANCING_DELEGATING_HELPER_H
#include <grpc/support/port_platform.h>
#include <utility>
#include "absl/status/status.h"
@ -27,14 +25,15 @@
#include <grpc/event_engine/event_engine.h>
#include <grpc/grpc.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/security/credentials/credentials.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/load_balancing/subchannel_interface.h"
#include "src/core/lib/security/credentials/credentials.h"
namespace grpc_core {

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/endpoint_list.h"
#include <stdlib.h>
@ -31,8 +29,8 @@
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/json.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/pick_first/pick_first.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/gprpp/debug_location.h"
@ -43,6 +41,7 @@
#include "src/core/load_balancing/delegating_helper.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/load_balancing/lb_policy_registry.h"
#include "src/core/load_balancing/pick_first/pick_first.h"
#include "src/core/resolver/endpoint_addresses.h"
namespace grpc_core {

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_ENDPOINT_LIST_H
#define GRPC_SRC_CORE_LOAD_BALANCING_ENDPOINT_LIST_H
#include <grpc/support/port_platform.h>
#include <stdlib.h>
#include <memory>
@ -30,6 +28,7 @@
#include "absl/types/optional.h"
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/debug_location.h"

@ -49,13 +49,12 @@
/// \see https://github.com/grpc/grpc/blob/master/doc/load-balancing.md for the
/// high level design and details.
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/grpclb/grpclb.h"
#include <grpc/event_engine/event_engine.h>
#include <grpc/impl/channel_arg_names.h>
#include <grpc/support/json.h>
#include <grpc/support/port_platform.h>
// IWYU pragma: no_include <sys/socket.h>

@ -14,14 +14,14 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/grpclb/grpclb_balancer_addresses.h"
#include <stddef.h>
#include <utility>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gpr/useful.h"

@ -17,9 +17,8 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_GRPCLB_GRPCLB_BALANCER_ADDRESSES_H
#define GRPC_SRC_CORE_LOAD_BALANCING_GRPCLB_GRPCLB_BALANCER_ADDRESSES_H
#include <grpc/support/port_platform.h>
#include <grpc/grpc.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/resolver/endpoint_addresses.h"

@ -16,13 +16,12 @@
//
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/grpclb/grpclb_client_stats.h"
#include <string.h>
#include <grpc/support/atm.h>
#include <grpc/support/port_platform.h>
#include <grpc/support/string_util.h>
#include "src/core/lib/gprpp/sync.h"

@ -19,8 +19,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_GRPCLB_GRPCLB_CLIENT_STATS_H
#define GRPC_SRC_CORE_LOAD_BALANCING_GRPCLB_GRPCLB_CLIENT_STATS_H
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <memory>
@ -30,6 +28,7 @@
#include "absl/container/inlined_vector.h"
#include <grpc/support/atm.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/memory.h"
#include "src/core/lib/gprpp/ref_counted.h"

@ -16,8 +16,6 @@
//
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/grpclb/load_balancer_api.h"
#include <string.h>
@ -29,6 +27,7 @@
#include "upb/base/string_view.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include <grpc/support/time.h>
#include "src/core/lib/gprpp/memory.h"

@ -18,8 +18,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_GRPCLB_LOAD_BALANCER_API_H
#define GRPC_SRC_CORE_LOAD_BALANCING_GRPCLB_LOAD_BALANCER_API_H
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <vector>
@ -28,9 +26,10 @@
#include "upb/mem/arena.h"
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/grpclb/grpclb_client_stats.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/load_balancing/grpclb/grpclb_client_stats.h"
#define GRPC_GRPCLB_SERVICE_NAME_MAX_LENGTH 128
#define GRPC_GRPCLB_SERVER_IP_ADDRESS_MAX_SIZE 16

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <string.h>
@ -39,6 +37,7 @@
#include <grpc/slice.h>
#include <grpc/status.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/client_channel_channelz.h"
#include "src/core/client_channel/client_channel_internal.h"

@ -17,10 +17,10 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_HEALTH_CHECK_CLIENT_H
#define GRPC_SRC_CORE_LOAD_BALANCING_HEALTH_CHECK_CLIENT_H
#include <grpc/support/port_platform.h>
#include <memory>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/work_serializer.h"
#include "src/core/load_balancing/subchannel_interface.h"

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_HEALTH_CHECK_CLIENT_INTERNAL_H
#define GRPC_SRC_CORE_LOAD_BALANCING_HEALTH_CHECK_CLIENT_INTERNAL_H
#include <grpc/support/port_platform.h>
#include <map>
#include <memory>
#include <set>
@ -31,6 +29,7 @@
#include "absl/types/optional.h"
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/subchannel.h"
#include "src/core/client_channel/subchannel_interface_internal.h"

@ -16,10 +16,10 @@
//
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/lb_policy.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/exec_ctx.h"

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_LB_POLICY_H
#define GRPC_SRC_CORE_LOAD_BALANCING_LB_POLICY_H
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <stdint.h>
@ -37,6 +35,7 @@
#include <grpc/event_engine/event_engine.h>
#include <grpc/grpc.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/channel/metrics.h"

@ -17,11 +17,11 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_LB_POLICY_FACTORY_H
#define GRPC_SRC_CORE_LOAD_BALANCING_LB_POLICY_FACTORY_H
#include <grpc/support/port_platform.h>
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/json/json.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/lb_policy_registry.h"
#include <algorithm>
@ -32,6 +30,7 @@
#include <grpc/support/json.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/lb_policy.h"

@ -17,14 +17,14 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_LB_POLICY_REGISTRY_H
#define GRPC_SRC_CORE_LOAD_BALANCING_LB_POLICY_REGISTRY_H
#include <grpc/support/port_platform.h>
#include <map>
#include <memory>
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/json/json.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/oob_backend_metric.h"
#include <string.h>
@ -36,6 +34,7 @@
#include <grpc/status.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include <grpc/support/time.h>
#include "src/core/client_channel/client_channel_channelz.h"

@ -17,10 +17,10 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_OOB_BACKEND_METRIC_H
#define GRPC_SRC_CORE_LOAD_BALANCING_OOB_BACKEND_METRIC_H
#include <grpc/support/port_platform.h>
#include <memory>
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/time.h"
#include "src/core/load_balancing/backend_metric_data.h"
#include "src/core/load_balancing/subchannel_interface.h"

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_OOB_BACKEND_METRIC_INTERNAL_H
#define GRPC_SRC_CORE_LOAD_BALANCING_OOB_BACKEND_METRIC_INTERNAL_H
#include <grpc/support/port_platform.h>
#include <memory>
#include <set>
#include <utility>
@ -27,6 +25,7 @@
#include "absl/strings/string_view.h"
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/subchannel.h"
#include "src/core/client_channel/subchannel_interface_internal.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/outlier_detection/outlier_detection.h"
#include <inttypes.h>
@ -43,6 +41,7 @@
#include <grpc/event_engine/event_engine.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/subchannel_interface_internal.h"
#include "src/core/lib/address_utils/sockaddr_utils.h"

@ -17,12 +17,12 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_OUTLIER_DETECTION_OUTLIER_DETECTION_H
#define GRPC_SRC_CORE_LOAD_BALANCING_OUTLIER_DETECTION_OUTLIER_DETECTION_H
#include <grpc/support/port_platform.h>
#include <stdint.h> // for uint32_t
#include "absl/types/optional.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/gprpp/validation_errors.h"
#include "src/core/lib/json/json.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/pick_first/pick_first.h"
#include <inttypes.h>
@ -40,8 +38,8 @@
#include <grpc/impl/channel_arg_names.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/health_check_client.h"
#include "src/core/lib/address_utils/sockaddr_utils.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/channel/metrics.h"
@ -62,6 +60,7 @@
#include "src/core/lib/json/json_args.h"
#include "src/core/lib/json/json_object_loader.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/load_balancing/health_check_client.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/load_balancing/lb_policy_factory.h"
#include "src/core/load_balancing/subchannel_interface.h"
@ -89,14 +88,14 @@ const auto kMetricDisconnections =
const auto kMetricConnectionAttemptsSucceeded =
GlobalInstrumentsRegistry::RegisterUInt64Counter(
"grpc.lb.pick_first.connection_attempts_succeeded",
"EXPERIMENTAL. Number of successful connection attempts.",
"{attempt}", {kMetricLabelTarget}, {}, false);
"EXPERIMENTAL. Number of successful connection attempts.", "{attempt}",
{kMetricLabelTarget}, {}, false);
const auto kMetricConnectionAttemptsFailed =
GlobalInstrumentsRegistry::RegisterUInt64Counter(
"grpc.lb.pick_first.connection_attempts_failed",
"EXPERIMENTAL. Number of failed connection attempts.",
"{attempt}", {kMetricLabelTarget}, {}, false);
"EXPERIMENTAL. Number of failed connection attempts.", "{attempt}",
{kMetricLabelTarget}, {}, false);
class PickFirstConfig final : public LoadBalancingPolicy::Config {
public:
@ -777,9 +776,9 @@ void PickFirst::SubchannelList::SubchannelData::SubchannelState::
// connection. Report the failure.
auto& stats_plugins =
pick_first_->channel_control_helper()->GetStatsPluginGroup();
stats_plugins.AddCounter(
kMetricDisconnections, 1,
{pick_first_->channel_control_helper()->GetTarget()}, {});
stats_plugins.AddCounter(kMetricDisconnections, 1,
{pick_first_->channel_control_helper()->GetTarget()},
{});
// Report IDLE.
pick_first_->GoIdle();
}
@ -874,9 +873,8 @@ void PickFirst::SubchannelList::SubchannelData::OnConnectivityStateChange(
// We've already started trying to connect. Any subchannel that
// reports TF is a connection attempt failure.
if (new_state == GRPC_CHANNEL_TRANSIENT_FAILURE) {
auto& stats_plugins =
subchannel_list_->policy_->channel_control_helper()
->GetStatsPluginGroup();
auto& stats_plugins = subchannel_list_->policy_->channel_control_helper()
->GetStatsPluginGroup();
stats_plugins.AddCounter(
kMetricConnectionAttemptsFailed, 1,
{subchannel_list_->policy_->channel_control_helper()->GetTarget()}, {});
@ -1551,8 +1549,8 @@ absl::Status OldPickFirst::UpdateLocked(UpdateArgs args) {
}
void OldPickFirst::UpdateState(grpc_connectivity_state state,
const absl::Status& status,
RefCountedPtr<SubchannelPicker> picker) {
const absl::Status& status,
RefCountedPtr<SubchannelPicker> picker) {
state_ = state;
channel_control_helper()->UpdateState(state, status, std::move(picker));
}
@ -1665,9 +1663,8 @@ void OldPickFirst::SubchannelList::SubchannelData::OnConnectivityStateChange(
p->latest_pending_subchannel_list_.get());
}
if (subchannel_list_->shutting_down_ || pending_watcher_ == nullptr) return;
auto& stats_plugins =
subchannel_list_->policy_->channel_control_helper()
->GetStatsPluginGroup();
auto& stats_plugins = subchannel_list_->policy_->channel_control_helper()
->GetStatsPluginGroup();
// The notification must be for a subchannel in either the current or
// latest pending subchannel lists.
GPR_ASSERT(subchannel_list_ == p->subchannel_list_.get() ||
@ -1851,7 +1848,8 @@ void OldPickFirst::SubchannelList::SubchannelData::OnConnectivityStateChange(
}
}
void OldPickFirst::SubchannelList::SubchannelData::RequestConnectionWithTimer() {
void OldPickFirst::SubchannelList::SubchannelData::
RequestConnectionWithTimer() {
GPR_ASSERT(connectivity_state_.has_value());
if (connectivity_state_ == GRPC_CHANNEL_IDLE) {
subchannel_->RequestConnection();
@ -1898,7 +1896,8 @@ void OldPickFirst::SubchannelList::SubchannelData::RequestConnectionWithTimer()
}
}
void OldPickFirst::SubchannelList::SubchannelData::ProcessUnselectedReadyLocked() {
void OldPickFirst::SubchannelList::SubchannelData::
ProcessUnselectedReadyLocked() {
OldPickFirst* p = subchannel_list_->policy_.get();
// Cancel Happy Eyeballs timer, if any.
if (subchannel_list_->timer_handle_.has_value()) {
@ -1965,9 +1964,9 @@ void OldPickFirst::SubchannelList::SubchannelData::ProcessUnselectedReadyLocked(
// OldPickFirst::SubchannelList
//
OldPickFirst::SubchannelList::SubchannelList(RefCountedPtr<OldPickFirst> policy,
EndpointAddressesIterator* addresses,
const ChannelArgs& args)
OldPickFirst::SubchannelList::SubchannelList(
RefCountedPtr<OldPickFirst> policy, EndpointAddressesIterator* addresses,
const ChannelArgs& args)
: InternallyRefCounted<SubchannelList>(
GRPC_TRACE_FLAG_ENABLED(grpc_lb_pick_first_trace) ? "SubchannelList"
: nullptr),

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <inttypes.h>
#include <algorithm>
@ -38,9 +36,8 @@
#include <grpc/impl/channel_arg_names.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/address_filtering.h"
#include "src/core/load_balancing/child_policy_handler.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/debug/trace.h"
@ -57,6 +54,8 @@
#include "src/core/lib/json/json_args.h"
#include "src/core/lib/json/json_object_loader.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/load_balancing/address_filtering.h"
#include "src/core/load_balancing/child_policy_handler.h"
#include "src/core/load_balancing/delegating_helper.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/load_balancing/lb_policy_factory.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/ring_hash/ring_hash.h"
#include <inttypes.h>
@ -41,9 +39,9 @@
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/json.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/client_channel_internal.h"
#include "src/core/load_balancing/pick_first/pick_first.h"
#include "src/core/lib/address_utils/sockaddr_utils.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
@ -67,6 +65,7 @@
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/load_balancing/lb_policy_factory.h"
#include "src/core/load_balancing/lb_policy_registry.h"
#include "src/core/load_balancing/pick_first/pick_first.h"
#include "src/core/resolver/endpoint_addresses.h"
namespace grpc_core {

@ -17,10 +17,10 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_RING_HASH_RING_HASH_H
#define GRPC_SRC_CORE_LOAD_BALANCING_RING_HASH_RING_HASH_H
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/unique_type_name.h"
#include "src/core/lib/gprpp/validation_errors.h"
#include "src/core/lib/json/json.h"

@ -20,8 +20,6 @@
// to use. A child policy that recognizes the name as a field of its
// configuration will take further load balancing action on the request.
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/rls/rls.h"
#include <inttypes.h>
@ -65,6 +63,7 @@
#include <grpc/status.h>
#include <grpc/support/json.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/client_channel_filter.h"
#include "src/core/lib/backoff/backoff.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <inttypes.h>
#include <stdlib.h>
@ -36,6 +34,7 @@
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"

@ -17,14 +17,13 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_SUBCHANNEL_INTERFACE_H
#define GRPC_SRC_CORE_LOAD_BALANCING_SUBCHANNEL_INTERFACE_H
#include <grpc/support/port_platform.h>
#include <memory>
#include <utility>
#include "absl/status/status.h"
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/dual_ref_counted.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/weighted_round_robin/static_stride_scheduler.h"
#include <algorithm>
@ -27,6 +25,7 @@
#include "absl/functional/any_invocable.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
namespace grpc_core {

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_WEIGHTED_ROUND_ROBIN_STATIC_STRIDE_SCHEDULER_H
#define GRPC_SRC_CORE_LOAD_BALANCING_WEIGHTED_ROUND_ROBIN_STATIC_STRIDE_SCHEDULER_H
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <stdint.h>
@ -28,6 +26,8 @@
#include "absl/types/optional.h"
#include "absl/types/span.h"
#include <grpc/support/port_platform.h>
namespace grpc_core {
// StaticStrideScheduler implements a stride scheduler without the ability to

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <inttypes.h>
#include <stdlib.h>
@ -43,6 +41,7 @@
#include <grpc/event_engine/event_engine.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/channel/metrics.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/weighted_target/weighted_target.h"
#include <string.h>
@ -41,9 +39,8 @@
#include <grpc/event_engine/event_engine.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/address_filtering.h"
#include "src/core/load_balancing/child_policy_handler.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/debug/trace.h"
@ -60,6 +57,8 @@
#include "src/core/lib/json/json_args.h"
#include "src/core/lib/json/json_object_loader.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/load_balancing/address_filtering.h"
#include "src/core/load_balancing/child_policy_handler.h"
#include "src/core/load_balancing/delegating_helper.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/load_balancing/lb_policy_factory.h"

@ -23,6 +23,6 @@
// Channel arg key indicating the weighted_target child name.
#define GRPC_ARG_LB_WEIGHTED_TARGET_CHILD \
GRPC_ARG_NO_SUBCHANNEL_PREFIX "lb_weighted_target_child"
GRPC_ARG_NO_SUBCHANNEL_PREFIX "lb_weighted_target_child"
#endif // GRPC_SRC_CORE_LOAD_BALANCING_WEIGHTED_TARGET_WEIGHTED_TARGET_H

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <algorithm>
#include <map>
#include <memory>
@ -36,6 +34,7 @@
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/json.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/ext/xds/xds_cluster.h"
#include "src/core/ext/xds/xds_common_types.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <algorithm>
@ -37,9 +35,9 @@
#include <grpc/event_engine/event_engine.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/client_channel_internal.h"
#include "src/core/load_balancing/child_policy_handler.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/debug/trace.h"
@ -55,6 +53,7 @@
#include "src/core/lib/json/json_args.h"
#include "src/core/lib/json/json_object_loader.h"
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/load_balancing/child_policy_handler.h"
#include "src/core/load_balancing/delegating_helper.h"
#include "src/core/load_balancing/lb_policy.h"
#include "src/core/load_balancing/lb_policy_factory.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/load_balancing/xds/xds_override_host.h"
#include <stddef.h>
@ -46,6 +44,7 @@
#include <grpc/event_engine/event_engine.h>
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/client_channel_internal.h"
#include "src/core/ext/filters/stateful_session/stateful_session_filter.h"

@ -17,10 +17,10 @@
#ifndef GRPC_SRC_CORE_LOAD_BALANCING_XDS_XDS_OVERRIDE_HOST_H
#define GRPC_SRC_CORE_LOAD_BALANCING_XDS_XDS_OVERRIDE_HOST_H
#include <grpc/support/port_platform.h>
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/validation_errors.h"
#include "src/core/lib/json/json.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <cstdint>
#include <map>
#include <memory>
@ -31,6 +29,7 @@
#include <grpc/impl/connectivity_state.h>
#include <grpc/support/json.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/ext/xds/xds_client_stats.h"
#include "src/core/lib/channel/channel_args.h"

@ -16,9 +16,8 @@
//
//
#include <grpc/support/port_platform.h>
#include <grpc/grpc.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/server_call_tracer_filter.h"
#include "src/core/lib/config/core_configuration.h"

@ -14,9 +14,8 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <grpc/grpc.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/config/core_configuration.h"

@ -14,9 +14,8 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <grpc/grpc.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/config/core_configuration.h"

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#include <grpc/support/port_platform.h>
#include <algorithm>
#include "absl/status/status.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/status_helper.h"
#include "src/core/lib/iomgr/port.h" // IWYU pragma: keep
@ -32,7 +32,7 @@
#else
#include <sys/socket.h>
#include <sys/un.h>
#endif // GPR_WINDOWS
#endif // GPR_WINDOWS
#include <memory>
#include <utility>
@ -49,10 +49,10 @@
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/endpoint_addresses.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/lib/uri/uri_parser.h"
namespace grpc_core {
namespace {

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <algorithm>
@ -36,8 +34,8 @@
#include <grpc/impl/channel_arg_names.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/resolver/dns/event_engine/service_config_helper.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/debug_location.h"
@ -51,10 +49,11 @@
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/lib/iomgr/pollset_set.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/dns/event_engine/service_config_helper.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/service_config/service_config.h"
#include "src/core/lib/uri/uri_parser.h"
#if GRPC_ARES == 1
@ -66,12 +65,12 @@
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/config_vars.h"
#include "src/core/lib/iomgr/resolve_address.h"
#include "src/core/resolver/endpoint_addresses.h"
#include "src/core/service_config/service_config_impl.h"
#include "src/core/lib/transport/error_utils.h"
#include "src/core/load_balancing/grpclb/grpclb_balancer_addresses.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
#include "src/core/resolver/endpoint_addresses.h"
#include "src/core/resolver/polling_resolver.h"
#include "src/core/service_config/service_config_impl.h"
#define GRPC_DNS_INITIAL_CONNECT_BACKOFF_SECONDS 1
#define GRPC_DNS_RECONNECT_BACKOFF_MULTIPLIER 1.6

@ -14,10 +14,10 @@
#ifndef GRPC_SRC_CORE_RESOLVER_DNS_C_ARES_DNS_RESOLVER_ARES_H
#define GRPC_SRC_CORE_RESOLVER_DNS_C_ARES_DNS_RESOLVER_ARES_H
#include <grpc/support/port_platform.h>
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/config/core_configuration.h"
namespace grpc_core {

@ -19,19 +19,19 @@
#ifndef GRPC_SRC_CORE_RESOLVER_DNS_C_ARES_GRPC_ARES_EV_DRIVER_H
#define GRPC_SRC_CORE_RESOLVER_DNS_C_ARES_GRPC_ARES_EV_DRIVER_H
#include <grpc/support/port_platform.h>
#include <memory>
#include <ares.h>
#include "absl/base/thread_annotations.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
namespace grpc_core {

@ -40,14 +40,14 @@
#include <grpc/support/log.h>
#include "src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/ev_posix.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/lib/iomgr/socket_utils_posix.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
namespace grpc_core {

@ -37,8 +37,6 @@
#include <grpc/support/string_util.h>
#include <grpc/support/time.h>
#include "src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
#include "src/core/lib/address_utils/sockaddr_utils.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gprpp/crash.h"
@ -49,6 +47,8 @@
#include "src/core/lib/iomgr/tcp_windows.h"
#include "src/core/lib/slice/slice.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
// TODO(apolcyn): remove this hack after fixing upstream.
// Our grpc/c-ares code on Windows uses the ares_set_socket_functions API,

@ -16,14 +16,13 @@
//
//
#include <grpc/support/port_platform.h>
#include <algorithm>
#include <vector>
#include "absl/strings/string_view.h"
#include <grpc/impl/channel_arg_names.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/status_helper.h"
#include "src/core/lib/iomgr/sockaddr.h"
@ -57,8 +56,6 @@
#include <grpc/support/string_util.h>
#include <grpc/support/sync.h>
#include "src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
#include "src/core/lib/address_utils/parse_address.h"
#include "src/core/lib/address_utils/sockaddr_utils.h"
#include "src/core/lib/channel/channel_args.h"
@ -71,6 +68,8 @@
#include "src/core/lib/iomgr/nameser.h" // IWYU pragma: keep
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/iomgr/timer.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_ev_driver.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
using grpc_core::EndpointAddresses;
using grpc_core::EndpointAddressesList;

@ -19,8 +19,6 @@
#ifndef GRPC_SRC_CORE_RESOLVER_DNS_C_ARES_GRPC_ARES_WRAPPER_H
#define GRPC_SRC_CORE_RESOLVER_DNS_C_ARES_GRPC_ARES_WRAPPER_H
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <memory>
@ -30,6 +28,7 @@
#include "absl/base/thread_annotations.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/sync.h"

@ -21,8 +21,8 @@
#include "src/core/lib/iomgr/port.h"
#if GRPC_ARES == 1 && defined(GRPC_POSIX_SOCKET_ARES_EV_DRIVER)
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
#include "src/core/lib/iomgr/socket_utils_posix.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
bool grpc_ares_query_ipv6() { return grpc_ipv6_loopback_available(); }

@ -24,10 +24,10 @@
#include <grpc/support/string_util.h>
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
#include "src/core/lib/address_utils/parse_address.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/iomgr/socket_windows.h"
#include "src/core/resolver/dns/c_ares/grpc_ares_wrapper.h"
#include "src/core/resolver/endpoint_addresses.h"
bool grpc_ares_query_ipv6() { return grpc_ipv6_loopback_available(); }

@ -11,8 +11,6 @@
// 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 "src/core/resolver/dns/dns_resolver_plugin.h"
#include <memory>
@ -20,13 +18,14 @@
#include "absl/strings/match.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/resolver/dns/c_ares/dns_resolver_ares.h"
#include "src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h"
#include "src/core/resolver/dns/native/dns_resolver.h"
#include "src/core/lib/config/config_vars.h"
#include "src/core/lib/experiments/experiments.h"
#include "src/core/lib/gprpp/crash.h"
#include "src/core/resolver/dns/c_ares/dns_resolver_ares.h"
#include "src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h"
#include "src/core/resolver/dns/native/dns_resolver.h"
#include "src/core/resolver/resolver_factory.h"
namespace grpc_core {

@ -11,8 +11,6 @@
// 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 "src/core/resolver/dns/event_engine/event_engine_client_channel_resolver.h"
#include <inttypes.h>
@ -37,6 +35,7 @@
#include <grpc/event_engine/event_engine.h>
#include <grpc/impl/channel_arg_names.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/backoff/backoff.h"
#include "src/core/lib/channel/channel_args.h"
@ -49,14 +48,14 @@
#include "src/core/lib/gprpp/validation_errors.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/resolve_address.h"
#include "src/core/service_config/service_config.h"
#include "src/core/service_config/service_config_impl.h"
#include "src/core/load_balancing/grpclb/grpclb_balancer_addresses.h"
#include "src/core/resolver/dns/event_engine/service_config_helper.h"
#include "src/core/resolver/endpoint_addresses.h"
#include "src/core/resolver/polling_resolver.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/service_config/service_config.h"
#include "src/core/service_config/service_config_impl.h"
// IWYU pragma: no_include <ratio>

@ -13,14 +13,14 @@
// limitations under the License.
#ifndef GRPC_SRC_CORE_RESOLVER_DNS_EVENT_ENGINE_EVENT_ENGINE_CLIENT_CHANNEL_RESOLVER_H
#define GRPC_SRC_CORE_RESOLVER_DNS_EVENT_ENGINE_EVENT_ENGINE_CLIENT_CHANNEL_RESOLVER_H
#include <grpc/support/port_platform.h>
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/lib/uri/uri_parser.h"
namespace grpc_core {

@ -11,8 +11,6 @@
// 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 "src/core/resolver/dns/event_engine/service_config_helper.h"
#include <stdlib.h>
@ -23,6 +21,8 @@
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/status_helper.h"
#include "src/core/lib/iomgr/gethostname.h"
#include "src/core/lib/json/json.h"

@ -15,13 +15,13 @@
#ifndef GRPC_SRC_CORE_RESOLVER_DNS_EVENT_ENGINE_SERVICE_CONFIG_HELPER_H
#define GRPC_SRC_CORE_RESOLVER_DNS_EVENT_ENGINE_SERVICE_CONFIG_HELPER_H
#include <grpc/support/port_platform.h>
#include <string>
#include "absl/status/statusor.h"
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
namespace grpc_core {
absl::StatusOr<std::string> ChooseServiceConfig(

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <algorithm>
#include <memory>
#include <utility>
@ -31,8 +29,8 @@
#include <grpc/impl/channel_arg_names.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/resolver/polling_resolver.h"
#include "src/core/lib/backoff/backoff.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
@ -43,10 +41,11 @@
#include "src/core/lib/gprpp/time.h"
#include "src/core/lib/iomgr/resolve_address.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/endpoint_addresses.h"
#include "src/core/resolver/polling_resolver.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/lib/uri/uri_parser.h"
#define GRPC_DNS_INITIAL_CONNECT_BACKOFF_SECONDS 1
#define GRPC_DNS_RECONNECT_BACKOFF_MULTIPLIER 1.6

@ -16,8 +16,6 @@
//
//
#include <grpc/support/port_platform.h>
#include "src/core/resolver/endpoint_addresses.h"
#include <string.h>
@ -32,6 +30,7 @@
#include "absl/strings/str_join.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/address_utils/sockaddr_utils.h"
#include "src/core/lib/channel/channel_args.h"

@ -19,8 +19,6 @@
#ifndef GRPC_SRC_CORE_RESOLVER_ENDPOINT_ADDRESSES_H
#define GRPC_SRC_CORE_RESOLVER_ENDPOINT_ADDRESSES_H
#include <grpc/support/port_platform.h>
#include <set>
#include <string>
#include <utility>
@ -28,6 +26,8 @@
#include "absl/functional/function_ref.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/iomgr/resolved_address.h"

@ -17,8 +17,6 @@
// This is similar to the sockaddr resolver, except that it supports a
// bunch of query args that are useful for dependency injection in tests.
#include <grpc/support/port_platform.h>
#include "src/core/resolver/fake/fake_resolver.h"
#include <memory>
@ -28,6 +26,7 @@
#include "absl/strings/string_view.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
@ -35,8 +34,8 @@
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/gprpp/work_serializer.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/resolver_factory.h"
namespace grpc_core {

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_RESOLVER_FAKE_FAKE_RESOLVER_H
#define GRPC_SRC_CORE_RESOLVER_FAKE_FAKE_RESOLVER_H
#include <grpc/support/port_platform.h>
#include <utility>
#include "absl/base/thread_annotations.h"
@ -27,6 +25,7 @@
#include "absl/types/optional.h"
#include <grpc/grpc.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/gprpp/notification.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <cstdint>
#include <memory>
#include <random>
@ -31,6 +29,7 @@
#include <grpc/support/json.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/ext/gcp/metadata_query.h"
#include "src/core/ext/xds/xds_bootstrap.h"
@ -46,12 +45,12 @@
#include "src/core/lib/iomgr/polling_entity.h"
#include "src/core/lib/json/json.h"
#include "src/core/lib/json/json_writer.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/resolver/resolver_registry.h"
#include "src/core/lib/resource_quota/resource_quota.h"
#include "src/core/lib/security/credentials/alts/check_gcp_environment.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/resolver/resolver_registry.h"
namespace grpc_core {

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/resolver/polling_resolver.h"
#include <inttypes.h>
@ -31,6 +29,7 @@
#include "absl/strings/strip.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/backoff/backoff.h"
#include "src/core/lib/channel/channel_args.h"
@ -38,9 +37,9 @@
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/work_serializer.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/endpoint_addresses.h"
#include "src/core/service_config/service_config.h"
#include "src/core/lib/uri/uri_parser.h"
namespace grpc_core {

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_RESOLVER_POLLING_RESOLVER_H
#define GRPC_SRC_CORE_RESOLVER_POLLING_RESOLVER_H
#include <grpc/support/port_platform.h>
#include <memory>
#include <string>
@ -26,6 +24,7 @@
#include "absl/types/optional.h"
#include <grpc/event_engine/event_engine.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/backoff/backoff.h"
#include "src/core/lib/channel/channel_args.h"

@ -16,10 +16,10 @@
//
//
#include <grpc/support/port_platform.h>
#include "src/core/resolver/resolver.h"
#include <grpc/support/port_platform.h>
grpc_core::DebugOnlyTraceFlag grpc_trace_resolver_refcount(false,
"resolver_refcount");

@ -17,14 +17,14 @@
#ifndef GRPC_SRC_CORE_RESOLVER_RESOLVER_H
#define GRPC_SRC_CORE_RESOLVER_RESOLVER_H
#include <grpc/support/port_platform.h>
#include <functional>
#include <string>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/gprpp/orphanable.h"

@ -17,19 +17,19 @@
#ifndef GRPC_SRC_CORE_RESOLVER_RESOLVER_FACTORY_H
#define GRPC_SRC_CORE_RESOLVER_RESOLVER_FACTORY_H
#include <grpc/support/port_platform.h>
#include <memory>
#include <string>
#include "absl/strings/string_view.h"
#include "absl/strings/strip.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/resolver/resolver.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/resolver.h"
namespace grpc_core {

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/resolver/resolver_registry.h"
#include "absl/status/status.h"
@ -25,6 +23,7 @@
#include "absl/strings/str_format.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
namespace grpc_core {

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_RESOLVER_RESOLVER_REGISTRY_H
#define GRPC_SRC_CORE_RESOLVER_RESOLVER_REGISTRY_H
#include <grpc/support/port_platform.h>
#include <map>
#include <memory>
#include <string>
@ -26,12 +24,14 @@
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/lib/uri/uri_parser.h"
namespace grpc_core {

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <algorithm>
#include <memory>
#include <string>
@ -26,6 +24,7 @@
#include "absl/strings/string_view.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/address_utils/parse_address.h"
#include "src/core/lib/channel/channel_args.h"
@ -33,10 +32,10 @@
#include "src/core/lib/gprpp/orphanable.h"
#include "src/core/lib/iomgr/port.h"
#include "src/core/lib/iomgr/resolved_address.h"
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/resolver/endpoint_addresses.h"
#include "src/core/resolver/resolver.h"
#include "src/core/resolver/resolver_factory.h"
#include "src/core/lib/uri/uri_parser.h"
namespace grpc_core {

@ -14,14 +14,14 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/resolver/xds/xds_dependency_manager.h"
#include <set>
#include "absl/strings/str_join.h"
#include <grpc/support/port_platform.h>
#include "src/core/ext/xds/xds_routing.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/gprpp/match.h"

@ -17,12 +17,12 @@
#ifndef GRPC_SRC_CORE_RESOLVER_XDS_XDS_DEPENDENCY_MANAGER_H
#define GRPC_SRC_CORE_RESOLVER_XDS_XDS_DEPENDENCY_MANAGER_H
#include <grpc/support/port_platform.h>
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/ext/xds/xds_client_grpc.h"
#include "src/core/ext/xds/xds_cluster.h"
#include "src/core/ext/xds/xds_endpoint.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include <stdint.h>
#include <string.h>
@ -47,6 +45,7 @@
#include <grpc/slice.h>
#include <grpc/status.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/client_channel/client_channel_internal.h"
#include "src/core/client_channel/config_selector.h"

@ -17,10 +17,10 @@
#ifndef GRPC_SRC_CORE_RESOLVER_XDS_XDS_RESOLVER_ATTRIBUTES_H
#define GRPC_SRC_CORE_RESOLVER_XDS_XDS_RESOLVER_ATTRIBUTES_H
#include <grpc/support/port_platform.h>
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/unique_type_name.h"
#include "src/core/service_config/service_config_call_data.h"

@ -14,10 +14,10 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/resolver/xds/xds_resolver_trace.h"
#include <grpc/support/port_platform.h>
namespace grpc_core {
TraceFlag grpc_xds_resolver_trace(false, "xds_resolver");

@ -17,13 +17,12 @@
#ifndef GRPC_SRC_CORE_SERVICE_CONFIG_SERVICE_CONFIG_H
#define GRPC_SRC_CORE_SERVICE_CONFIG_SERVICE_CONFIG_H
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include "absl/strings/string_view.h"
#include <grpc/slice.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/gprpp/ref_counted.h"

@ -17,13 +17,13 @@
#ifndef GRPC_SRC_CORE_SERVICE_CONFIG_SERVICE_CONFIG_CALL_DATA_H
#define GRPC_SRC_CORE_SERVICE_CONFIG_SERVICE_CONFIG_CALL_DATA_H
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <memory>
#include <utility>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/context.h"
#include "src/core/lib/gprpp/chunked_vector.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/service_config/service_config_impl.h"
#include <string.h>
@ -28,6 +26,8 @@
#include "absl/strings/str_cat.h"
#include "absl/types/optional.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/gprpp/memory.h"
#include "src/core/lib/gprpp/validation_errors.h"

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_SERVICE_CONFIG_SERVICE_CONFIG_IMPL_H
#define GRPC_SRC_CORE_SERVICE_CONFIG_SERVICE_CONFIG_IMPL_H
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <memory>
@ -31,6 +29,7 @@
#include <grpc/slice.h>
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"

@ -14,8 +14,6 @@
// limitations under the License.
//
#include <grpc/support/port_platform.h>
#include "src/core/service_config/service_config_parser.h"
#include <stdlib.h>
@ -25,6 +23,7 @@
#include "absl/strings/str_cat.h"
#include <grpc/support/log.h>
#include <grpc/support/port_platform.h>
namespace grpc_core {

@ -17,8 +17,6 @@
#ifndef GRPC_SRC_CORE_SERVICE_CONFIG_SERVICE_CONFIG_PARSER_H
#define GRPC_SRC_CORE_SERVICE_CONFIG_SERVICE_CONFIG_PARSER_H
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <algorithm>
@ -28,6 +26,8 @@
#include "absl/strings/string_view.h"
#include <grpc/support/port_platform.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gprpp/validation_errors.h"
#include "src/core/lib/json/json.h"

@ -16,7 +16,7 @@
set -e
# directories to run against
DIRS="examples/cpp examples/android/binder src/core/lib src/core/tsi src/core/ext src/cpp test/core test/cpp include src/compiler src/ruby src/objective-c tools/distrib/python src/python/grpcio_observability"
DIRS="examples/cpp examples/android/binder src/core src/cpp test/core test/cpp include src/compiler src/ruby src/objective-c tools/distrib/python src/python/grpcio_observability"
# file matching patterns to check
GLOB="*.h *.c *.cc *.m *.mm"

Loading…
Cancel
Save