aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2016-10-13 14:09:16 -0700
committerGravatar Vijay Pai <vpai@google.com>2016-10-13 14:09:16 -0700
commit96e03110db4d01b09e69f1f275adea6facec6fcb (patch)
tree768755dc8a6051da27c36a3aeb58737249bdbaa0 /src/compiler
parent8d08b1d9ee7d8211fbe2661dc93b37f065db8da8 (diff)
clang-format
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/cpp_generator.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc
index 8525a6a2c9..fa72f9b0d9 100644
--- a/src/compiler/cpp_generator.cc
+++ b/src/compiler/cpp_generator.cc
@@ -605,7 +605,7 @@ void PrintHeaderServerMethodAsync(Printer *printer, const Method *method,
printer->Print(*vars, "};\n");
}
- void PrintHeaderServerMethodStreamedUnary(
+void PrintHeaderServerMethodStreamedUnary(
Printer *printer, const Method *method,
std::map<grpc::string, grpc::string> *vars) {
(*vars)["Method"] = method->name();
@@ -691,7 +691,8 @@ void PrintHeaderServerMethodSplitStreaming(
"// disable regular version of this method\n"
"::grpc::Status $Method$("
"::grpc::ServerContext* context, const $Request$* request, "
- "::grpc::ServerWriter< $Response$>* writer) GRPC_FINAL GRPC_OVERRIDE {\n"
+ "::grpc::ServerWriter< $Response$>* writer) GRPC_FINAL GRPC_OVERRIDE "
+ "{\n"
" abort();\n"
" return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, \"\");\n"
"}\n");
@@ -899,7 +900,7 @@ void PrintHeaderService(Printer *printer, const Service *service,
for (int i = 0; i < service->method_count(); ++i) {
(*vars)["Idx"] = as_string(i);
PrintHeaderServerMethodSplitStreaming(printer, service->method(i).get(),
- vars);
+ vars);
}
printer->Print("typedef ");
@@ -931,7 +932,7 @@ void PrintHeaderService(Printer *printer, const Service *service,
printer->Print("Service");
for (int i = 0; i < service->method_count(); ++i) {
if (service->method(i)->NoStreaming() ||
- service->method(i)->ServerOnlyStreaming()) {
+ service->method(i)->ServerOnlyStreaming()) {
printer->Print(" >");
}
}