diff --git a/include/grpcpp/.clang-format b/include/grpcpp/.clang-format index 64387e9e515..5f150ef6edb 100644 --- a/include/grpcpp/.clang-format +++ b/include/grpcpp/.clang-format @@ -5,9 +5,6 @@ DerivePointerAlignment: false PointerAlignment: Left IncludeBlocks: Regroup IncludeCategories: - # port_platform.h is before almost everything - - Regex: '^' - Priority: -100 # ruby.h is even more first if it's included - Regex: '^' Priority: -200 diff --git a/include/grpcpp/create_channel_posix.h b/include/grpcpp/create_channel_posix.h index 651471da017..c4eb30c8d87 100644 --- a/include/grpcpp/create_channel_posix.h +++ b/include/grpcpp/create_channel_posix.h @@ -19,10 +19,9 @@ #ifndef GRPCPP_CREATE_CHANNEL_POSIX_H #define GRPCPP_CREATE_CHANNEL_POSIX_H -#include - #include +#include #include #include diff --git a/include/grpcpp/ext/channelz_service_plugin.h b/include/grpcpp/ext/channelz_service_plugin.h index 23882abb50f..c048fce28fc 100644 --- a/include/grpcpp/ext/channelz_service_plugin.h +++ b/include/grpcpp/ext/channelz_service_plugin.h @@ -20,7 +20,6 @@ #define GRPCPP_EXT_CHANNELZ_SERVICE_PLUGIN_H #include - #include #include #include diff --git a/include/grpcpp/ext/csm_observability.h b/include/grpcpp/ext/csm_observability.h index dcb7bd8c29c..af7b42f4d1b 100644 --- a/include/grpcpp/ext/csm_observability.h +++ b/include/grpcpp/ext/csm_observability.h @@ -19,8 +19,6 @@ #ifndef GRPCPP_EXT_CSM_OBSERVABILITY_H #define GRPCPP_EXT_CSM_OBSERVABILITY_H -#include - #include #include "absl/functional/any_invocable.h" @@ -28,6 +26,7 @@ #include "absl/strings/string_view.h" #include "opentelemetry/metrics/meter_provider.h" +#include #include namespace grpc { diff --git a/include/grpcpp/ext/gcp_observability.h b/include/grpcpp/ext/gcp_observability.h index b215312c68a..df270bec887 100644 --- a/include/grpcpp/ext/gcp_observability.h +++ b/include/grpcpp/ext/gcp_observability.h @@ -17,11 +17,10 @@ #ifndef GRPCPP_EXT_GCP_OBSERVABILITY_H #define GRPCPP_EXT_GCP_OBSERVABILITY_H -#include - #include "absl/status/status.h" #include "absl/status/statusor.h" +#include #include namespace grpc { diff --git a/include/grpcpp/ext/otel_plugin.h b/include/grpcpp/ext/otel_plugin.h index c35f02dcb04..c9327d68d09 100644 --- a/include/grpcpp/ext/otel_plugin.h +++ b/include/grpcpp/ext/otel_plugin.h @@ -19,8 +19,6 @@ #ifndef GRPCPP_EXT_OTEL_PLUGIN_H #define GRPCPP_EXT_OTEL_PLUGIN_H -#include - #include #include @@ -32,6 +30,7 @@ #include "opentelemetry/metrics/meter_provider.h" #include +#include namespace grpc { diff --git a/include/grpcpp/ext/server_load_reporting.h b/include/grpcpp/ext/server_load_reporting.h index 8b4e7e371fa..416e9548fba 100644 --- a/include/grpcpp/ext/server_load_reporting.h +++ b/include/grpcpp/ext/server_load_reporting.h @@ -19,9 +19,8 @@ #ifndef GRPCPP_EXT_SERVER_LOAD_REPORTING_H #define GRPCPP_EXT_SERVER_LOAD_REPORTING_H -#include - #include +#include #include #include #include diff --git a/include/grpcpp/generic/async_generic_service.h b/include/grpcpp/generic/async_generic_service.h index cd9d43dfe31..77525d13b2a 100644 --- a/include/grpcpp/generic/async_generic_service.h +++ b/include/grpcpp/generic/async_generic_service.h @@ -20,7 +20,6 @@ #define GRPCPP_GENERIC_ASYNC_GENERIC_SERVICE_H #include - #include #include #include diff --git a/include/grpcpp/server.h b/include/grpcpp/server.h index 63ae1c69d61..3c56b6a06a2 100644 --- a/include/grpcpp/server.h +++ b/include/grpcpp/server.h @@ -19,14 +19,13 @@ #ifndef GRPCPP_SERVER_H #define GRPCPP_SERVER_H -#include - #include #include #include #include #include +#include #include #include #include diff --git a/include/grpcpp/server_builder.h b/include/grpcpp/server_builder.h index 9f5e2cc7dc2..e6266a90d98 100644 --- a/include/grpcpp/server_builder.h +++ b/include/grpcpp/server_builder.h @@ -19,8 +19,6 @@ #ifndef GRPCPP_SERVER_BUILDER_H #define GRPCPP_SERVER_BUILDER_H -#include - #include #include #include @@ -28,6 +26,7 @@ #include #include +#include #include #include #include diff --git a/include/grpcpp/server_context.h b/include/grpcpp/server_context.h index d860be16095..eb72e36b4af 100644 --- a/include/grpcpp/server_context.h +++ b/include/grpcpp/server_context.h @@ -19,8 +19,6 @@ #ifndef GRPCPP_SERVER_CONTEXT_H #define GRPCPP_SERVER_CONTEXT_H -#include - #include #include #include @@ -31,6 +29,7 @@ #include #include #include +#include #include #include #include diff --git a/include/grpcpp/server_interface.h b/include/grpcpp/server_interface.h index d990d8c7ace..5f8f8b54b0f 100644 --- a/include/grpcpp/server_interface.h +++ b/include/grpcpp/server_interface.h @@ -19,11 +19,10 @@ #ifndef GRPCPP_SERVER_INTERFACE_H #define GRPCPP_SERVER_INTERFACE_H -#include - #include #include #include +#include #include #include #include diff --git a/include/grpcpp/server_posix.h b/include/grpcpp/server_posix.h index 75ef4470b7c..8132c01cf94 100644 --- a/include/grpcpp/server_posix.h +++ b/include/grpcpp/server_posix.h @@ -19,10 +19,9 @@ #ifndef GRPCPP_SERVER_POSIX_H #define GRPCPP_SERVER_POSIX_H -#include - #include +#include #include namespace grpc { diff --git a/include/grpcpp/xds_server_builder.h b/include/grpcpp/xds_server_builder.h index f51c5260788..27ee76aa7a2 100644 --- a/include/grpcpp/xds_server_builder.h +++ b/include/grpcpp/xds_server_builder.h @@ -20,7 +20,6 @@ #define GRPCPP_XDS_SERVER_BUILDER_H #include - #include namespace grpc {