aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/protobuf_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/protobuf_plugin.h')
-rw-r--r--src/compiler/protobuf_plugin.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/compiler/protobuf_plugin.h b/src/compiler/protobuf_plugin.h
index e14740cc0c..1551908156 100644
--- a/src/compiler/protobuf_plugin.h
+++ b/src/compiler/protobuf_plugin.h
@@ -29,14 +29,14 @@
// Get leading or trailing comments in a string.
template <typename DescriptorType>
-inline grpc::string GetCommentsHelper(const DescriptorType *desc, bool leading,
- const grpc::string &prefix) {
+inline grpc::string GetCommentsHelper(const DescriptorType* desc, bool leading,
+ const grpc::string& prefix) {
return grpc_generator::GetPrefixedComments(desc, leading, prefix);
}
class ProtoBufMethod : public grpc_generator::Method {
public:
- ProtoBufMethod(const grpc::protobuf::MethodDescriptor *method)
+ ProtoBufMethod(const grpc::protobuf::MethodDescriptor* method)
: method_(method) {}
grpc::string name() const { return method_->name(); }
@@ -55,7 +55,7 @@ class ProtoBufMethod : public grpc_generator::Method {
return method_->output_type()->file()->name();
}
- bool get_module_and_message_path_input(grpc::string *str,
+ bool get_module_and_message_path_input(grpc::string* str,
grpc::string generator_file_name,
bool generate_in_pb2_grpc,
grpc::string import_prefix) const {
@@ -64,7 +64,7 @@ class ProtoBufMethod : public grpc_generator::Method {
import_prefix);
}
- bool get_module_and_message_path_output(grpc::string *str,
+ bool get_module_and_message_path_output(grpc::string* str,
grpc::string generator_file_name,
bool generate_in_pb2_grpc,
grpc::string import_prefix) const {
@@ -98,12 +98,12 @@ class ProtoBufMethod : public grpc_generator::Method {
}
private:
- const grpc::protobuf::MethodDescriptor *method_;
+ const grpc::protobuf::MethodDescriptor* method_;
};
class ProtoBufService : public grpc_generator::Service {
public:
- ProtoBufService(const grpc::protobuf::ServiceDescriptor *service)
+ ProtoBufService(const grpc::protobuf::ServiceDescriptor* service)
: service_(service) {}
grpc::string name() const { return service_->name(); }
@@ -127,20 +127,20 @@ class ProtoBufService : public grpc_generator::Service {
}
private:
- const grpc::protobuf::ServiceDescriptor *service_;
+ const grpc::protobuf::ServiceDescriptor* service_;
};
class ProtoBufPrinter : public grpc_generator::Printer {
public:
- ProtoBufPrinter(grpc::string *str)
+ ProtoBufPrinter(grpc::string* str)
: output_stream_(str), printer_(&output_stream_, '$') {}
- void Print(const std::map<grpc::string, grpc::string> &vars,
- const char *string_template) {
+ void Print(const std::map<grpc::string, grpc::string>& vars,
+ const char* string_template) {
printer_.Print(vars, string_template);
}
- void Print(const char *string) { printer_.Print(string); }
+ void Print(const char* string) { printer_.Print(string); }
void Indent() { printer_.Indent(); }
void Outdent() { printer_.Outdent(); }
@@ -151,7 +151,7 @@ class ProtoBufPrinter : public grpc_generator::Printer {
class ProtoBufFile : public grpc_generator::File {
public:
- ProtoBufFile(const grpc::protobuf::FileDescriptor *file) : file_(file) {}
+ ProtoBufFile(const grpc::protobuf::FileDescriptor* file) : file_(file) {}
grpc::string filename() const { return file_->name(); }
grpc::string filename_without_ext() const {
@@ -172,7 +172,7 @@ class ProtoBufFile : public grpc_generator::File {
}
std::unique_ptr<grpc_generator::Printer> CreatePrinter(
- grpc::string *str) const {
+ grpc::string* str) const {
return std::unique_ptr<grpc_generator::Printer>(new ProtoBufPrinter(str));
}
@@ -189,7 +189,7 @@ class ProtoBufFile : public grpc_generator::File {
}
private:
- const grpc::protobuf::FileDescriptor *file_;
+ const grpc::protobuf::FileDescriptor* file_;
};
#endif // GRPC_INTERNAL_COMPILER_PROTOBUF_PLUGIN_H