aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-03-02 20:37:24 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-03-02 20:37:24 -0800
commitc4f4f7ede962358c2216123ca44b7a9616f53d71 (patch)
treea47f26631023fc2df26075ef6dfcaf9de83c899b
parent94c80d838963b634ff8c1a81e89a661e7f07faaa (diff)
clang-format
-rw-r--r--include/grpc++/impl/codegen/proto_utils.h13
-rw-r--r--src/cpp/proto/proto_serializer.cc3
2 files changed, 9 insertions, 7 deletions
diff --git a/include/grpc++/impl/codegen/proto_utils.h b/include/grpc++/impl/codegen/proto_utils.h
index 489293d25b..05321619ac 100644
--- a/include/grpc++/impl/codegen/proto_utils.h
+++ b/include/grpc++/impl/codegen/proto_utils.h
@@ -75,15 +75,14 @@ class ProtoSerializer : public ProtoSerializerInterface {
// fails,
// false is returned and buffer is left unchanged.
Status SerializeProto(const grpc::protobuf::Message& msg,
- grpc_byte_buffer** buffer) override;
+ grpc_byte_buffer** buffer) override;
// The caller keeps ownership of buffer and msg.
Status DeserializeProto(grpc_byte_buffer* buffer,
- grpc::protobuf::Message* msg,
- int max_message_size) override;
+ grpc::protobuf::Message* msg,
+ int max_message_size) override;
};
-
template <class T>
class SerializationTraits<T, typename std::enable_if<std::is_base_of<
grpc::protobuf::Message, T>::value>::type> {
@@ -92,14 +91,16 @@ class SerializationTraits<T, typename std::enable_if<std::is_base_of<
grpc_byte_buffer** buffer, bool* own_buffer) {
*own_buffer = true;
GPR_ASSERT(g_proto_serializer != nullptr &&
- "No ProtoSerializer instance registered. Make sure grpc++ is being initialized.");
+ "No ProtoSerializer instance registered. Make sure grpc++ is "
+ "being initialized.");
return g_proto_serializer->SerializeProto(msg, buffer);
}
static Status Deserialize(grpc_byte_buffer* buffer,
grpc::protobuf::Message* msg,
int max_message_size) {
GPR_ASSERT(g_proto_serializer != nullptr &&
- "No ProtoSerializer instance registered. Make sure grpc++ is being initialized.");
+ "No ProtoSerializer instance registered. Make sure grpc++ is "
+ "being initialized.");
auto status =
g_proto_serializer->DeserializeProto(buffer, msg, max_message_size);
grpc_byte_buffer_destroy(buffer);
diff --git a/src/cpp/proto/proto_serializer.cc b/src/cpp/proto/proto_serializer.cc
index 4e46e989aa..5100141dc5 100644
--- a/src/cpp/proto/proto_serializer.cc
+++ b/src/cpp/proto/proto_serializer.cc
@@ -31,7 +31,8 @@
*
*/
-// TODO(dgq): This file is part of a temporary fix to work around codegen issues related to
+// TODO(dgq): This file is part of a temporary fix to work around codegen issues
+// related to
// a certain sharp-sounding build system.
// This whole file will be removed in the future.