From fe30ef5489ffcec00ec529569aca1c88ebfaf88c Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Thu, 17 Oct 2019 09:03:48 -0700 Subject: [PATCH] clang-format --- src/cpp/common/tls_credentials_options_util.cc | 6 ++---- src/cpp/ext/proto_server_reflection_plugin.cc | 4 ++-- src/cpp/server/channelz/channelz_service_plugin.cc | 4 ++-- src/cpp/server/server_cc.cc | 9 ++++----- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/cpp/common/tls_credentials_options_util.cc b/src/cpp/common/tls_credentials_options_util.cc index 927474f3bae..25dfd67a65b 100644 --- a/src/cpp/common/tls_credentials_options_util.cc +++ b/src/cpp/common/tls_credentials_options_util.cc @@ -101,8 +101,7 @@ void TlsCredentialReloadArgDestroyContext(void* context) { * config. They populate a C server authorization check arg with the result * of a C++ server authorization check schedule/cancel API. **/ int TlsServerAuthorizationCheckConfigCSchedule( - void* /*config_user_data*/, - grpc_tls_server_authorization_check_arg* arg) { + void* /*config_user_data*/, grpc_tls_server_authorization_check_arg* arg) { if (arg == nullptr || arg->config == nullptr || arg->config->context() == nullptr) { gpr_log(GPR_ERROR, @@ -118,8 +117,7 @@ int TlsServerAuthorizationCheckConfigCSchedule( } void TlsServerAuthorizationCheckConfigCCancel( - void* /*config_user_data*/, - grpc_tls_server_authorization_check_arg* arg) { + void* /*config_user_data*/, grpc_tls_server_authorization_check_arg* arg) { if (arg == nullptr || arg->config == nullptr || arg->config->context() == nullptr) { gpr_log(GPR_ERROR, diff --git a/src/cpp/ext/proto_server_reflection_plugin.cc b/src/cpp/ext/proto_server_reflection_plugin.cc index 6f61853416e..306e96a4464 100644 --- a/src/cpp/ext/proto_server_reflection_plugin.cc +++ b/src/cpp/ext/proto_server_reflection_plugin.cc @@ -41,8 +41,8 @@ void ProtoServerReflectionPlugin::Finish(grpc::ServerInitializer* si) { reflection_service_->SetServiceList(si->GetServiceList()); } -void ProtoServerReflectionPlugin::ChangeArguments( - const grpc::string& /*name*/, void* /*value*/) {} +void ProtoServerReflectionPlugin::ChangeArguments(const grpc::string& /*name*/, + void* /*value*/) {} bool ProtoServerReflectionPlugin::has_sync_methods() const { if (reflection_service_) { diff --git a/src/cpp/server/channelz/channelz_service_plugin.cc b/src/cpp/server/channelz/channelz_service_plugin.cc index cbc485d759a..5892b9b8eed 100644 --- a/src/cpp/server/channelz/channelz_service_plugin.cc +++ b/src/cpp/server/channelz/channelz_service_plugin.cc @@ -41,8 +41,8 @@ class ChannelzServicePlugin : public ::grpc::ServerBuilderPlugin { void Finish(grpc::ServerInitializer* /*si*/) override {} - void ChangeArguments(const grpc::string& /*name*/, - void* /*value*/) override {} + void ChangeArguments(const grpc::string& /*name*/, void* /*value*/) override { + } bool has_sync_methods() const override { if (channelz_service_) { diff --git a/src/cpp/server/server_cc.cc b/src/cpp/server/server_cc.cc index e2061939246..a767e686126 100644 --- a/src/cpp/server/server_cc.cc +++ b/src/cpp/server/server_cc.cc @@ -185,11 +185,10 @@ void ServerInterface::BaseAsyncRequest:: // Queue a tag which will be returned immediately grpc_core::ExecCtx exec_ctx; grpc_cq_begin_op(notification_cq_->cq(), this); - grpc_cq_end_op(notification_cq_->cq(), this, GRPC_ERROR_NONE, - [](void* /*arg*/, grpc_cq_completion* completion) { - delete completion; - }, - nullptr, new grpc_cq_completion()); + grpc_cq_end_op( + notification_cq_->cq(), this, GRPC_ERROR_NONE, + [](void* /*arg*/, grpc_cq_completion* completion) { delete completion; }, + nullptr, new grpc_cq_completion()); } ServerInterface::RegisteredAsyncRequest::RegisteredAsyncRequest(