Run clang-format-all.sh
diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc
index 41adb81..94e56d7 100644
--- a/src/compiler/cpp_generator.cc
+++ b/src/compiler/cpp_generator.cc
@@ -182,11 +182,12 @@
"::grpc::ServerContext* context, const $Request$* request, "
"::grpc::ServerWriter< $Response$>* writer);\n");
} else if (BidiStreaming(method)) {
- printer->Print(*vars,
- "virtual ::grpc::Status $Method$("
- "::grpc::ServerContext* context, "
- "::grpc::ServerReaderWriter< $Response$, $Request$>* stream);"
- "\n");
+ printer->Print(
+ *vars,
+ "virtual ::grpc::Status $Method$("
+ "::grpc::ServerContext* context, "
+ "::grpc::ServerReaderWriter< $Response$, $Request$>* stream);"
+ "\n");
}
}
@@ -269,9 +270,10 @@
"context, request, response);\n"
"}\n\n");
} else if (ClientOnlyStreaming(method)) {
- printer->Print(*vars,
- "::grpc::ClientWriter< $Request$>* $Service$::Stub::$Method$("
- "::grpc::ClientContext* context, $Response$* response) {\n");
+ printer->Print(
+ *vars,
+ "::grpc::ClientWriter< $Request$>* $Service$::Stub::$Method$("
+ "::grpc::ClientContext* context, $Response$* response) {\n");
printer->Print(*vars,
" return new ::grpc::ClientWriter< $Request$>("
"channel()->CreateStream("
@@ -361,13 +363,14 @@
const google::protobuf::ServiceDescriptor* service,
map<string, string>* vars) {
(*vars)["Service"] = service->name();
- printer->Print(*vars,
- "$Service$::Stub* $Service$::NewStub("
- "const std::shared_ptr< ::grpc::ChannelInterface>& channel) {\n"
- " $Service$::Stub* stub = new $Service$::Stub();\n"
- " stub->set_channel(channel);\n"
- " return stub;\n"
- "};\n\n");
+ printer->Print(
+ *vars,
+ "$Service$::Stub* $Service$::NewStub("
+ "const std::shared_ptr< ::grpc::ChannelInterface>& channel) {\n"
+ " $Service$::Stub* stub = new $Service$::Stub();\n"
+ " stub->set_channel(channel);\n"
+ " return stub;\n"
+ "};\n\n");
for (int i = 0; i < service->method_count(); ++i) {
PrintSourceClientMethod(printer, service->method(i), vars);
}
diff --git a/src/core/support/log_posix.c b/src/core/support/log_posix.c
index 55a38b1..ee2705a 100644
--- a/src/core/support/log_posix.c
+++ b/src/core/support/log_posix.c
@@ -31,7 +31,6 @@
*
*/
-
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200112L
#endif
diff --git a/test/core/util/test_config.c b/test/core/util/test_config.c
index 94245d8..44ab35f 100644
--- a/test/core/util/test_config.c
+++ b/test/core/util/test_config.c
@@ -39,16 +39,12 @@
#if GPR_GETPID_IN_UNISTD_H
#include <unistd.h>
-static int seed() {
- return getpid();
-}
+static int seed() { return getpid(); }
#endif
#if GPR_GETPID_IN_PROCESS_H
#include <process.h>
-static int seed(void) {
- return _getpid();
-}
+static int seed(void) { return _getpid(); }
#endif
void grpc_test_init(int argc, char **argv) {