aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-06-05 15:28:10 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-06-05 15:28:10 -0700
commit732498b9111e1fd8604e45ca6877147d86302715 (patch)
treeedc674384b506df192edc83a67244188877d3833 /src/compiler
parent28dbc84a53c13f0159b65ce9c5008b0e4f3798f7 (diff)
clang-format
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/objective_c_generator_helpers.h3
-rw-r--r--src/compiler/objective_c_plugin.cc7
2 files changed, 6 insertions, 4 deletions
diff --git a/src/compiler/objective_c_generator_helpers.h b/src/compiler/objective_c_generator_helpers.h
index 3048fe273a..6fdb942387 100644
--- a/src/compiler/objective_c_generator_helpers.h
+++ b/src/compiler/objective_c_generator_helpers.h
@@ -46,7 +46,8 @@ using ::grpc::protobuf::FileDescriptor;
using ::grpc::protobuf::ServiceDescriptor;
using ::grpc::string;
-inline string MessageHeaderName(const FileDescriptor *file, bool dash_as_separator) {
+inline string MessageHeaderName(const FileDescriptor *file,
+ bool dash_as_separator) {
if (dash_as_separator) {
return google::protobuf::compiler::objectivec::FilePath(file) + ".pbobjc.h";
} else {
diff --git a/src/compiler/objective_c_plugin.cc b/src/compiler/objective_c_plugin.cc
index aeaf743c63..6fc612018b 100644
--- a/src/compiler/objective_c_plugin.cc
+++ b/src/compiler/objective_c_plugin.cc
@@ -63,7 +63,8 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
// Simple parameter parsing as we have only one parameter.
// TODO(mxyan): Complete parameter parsing.
- bool dash_as_separator = (0 == parameter.compare("filename-dash-as-separator"));
+ bool dash_as_separator =
+ (0 == parameter.compare("filename-dash-as-separator"));
if (dash_as_separator) {
file_name = google::protobuf::compiler::objectivec::FilePath(file);
} else {
@@ -85,8 +86,8 @@ class ObjectiveCGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
// and import the files in the .pbrpc.m
::grpc::string proto_imports;
for (int i = 0; i < file->dependency_count(); i++) {
- ::grpc::string header =
- grpc_objective_c_generator::MessageHeaderName(file->dependency(i), dash_as_separator);
+ ::grpc::string header = grpc_objective_c_generator::MessageHeaderName(
+ file->dependency(i), dash_as_separator);
const grpc::protobuf::FileDescriptor *dependency = file->dependency(i);
if (IsProtobufLibraryBundledProtoFile(dependency)) {
::grpc::string base_name = header;