diff options
author | yang-g <yangg@google.com> | 2016-04-25 15:31:39 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-04-25 15:31:39 -0700 |
commit | 57d1e082689c96e2721122748b08583d6b63d394 (patch) | |
tree | a1f2527f4c732453d85310a511d686a3537af7a3 /src/compiler/cpp_plugin.cc | |
parent | c3e1f6368354c1b9af02e29cf5e5bc9d90b4eb57 (diff) |
resolve comments
Diffstat (limited to 'src/compiler/cpp_plugin.cc')
-rw-r--r-- | src/compiler/cpp_plugin.cc | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/compiler/cpp_plugin.cc b/src/compiler/cpp_plugin.cc index f1a1d80939..a4c6f011c7 100644 --- a/src/compiler/cpp_plugin.cc +++ b/src/compiler/cpp_plugin.cc @@ -43,7 +43,7 @@ #include "src/compiler/cpp_generator_helpers.h" #include "src/compiler/generator_helpers.h" -using grpc_generator::GetComments; +using grpc_generator::GetCppComments; class ProtoBufMethod : public grpc_cpp_generator::Method { public: @@ -75,10 +75,12 @@ class ProtoBufMethod : public grpc_cpp_generator::Method { return method_->client_streaming() && method_->server_streaming(); } - grpc::string GetLeadingComments() const { return GetComments(method_, true); } + grpc::string GetLeadingComments() const { + return GetCppComments(method_, true); + } grpc::string GetTrailingComments() const { - return GetComments(method_, false); + return GetCppComments(method_, false); } private: @@ -99,11 +101,11 @@ class ProtoBufService : public grpc_cpp_generator::Service { }; grpc::string GetLeadingComments() const { - return GetComments(service_, true); + return GetCppComments(service_, true); } grpc::string GetTrailingComments() const { - return GetComments(service_, false); + return GetCppComments(service_, false); } private: @@ -154,9 +156,13 @@ class ProtoBufFile : public grpc_cpp_generator::File { new ProtoBufPrinter(str)); } - grpc::string GetLeadingComments() const { return GetComments(file_, true); } + grpc::string GetLeadingComments() const { + return GetCppComments(file_, true); + } - grpc::string GetTrailingComments() const { return GetComments(file_, false); } + grpc::string GetTrailingComments() const { + return GetCppComments(file_, false); + } private: const grpc::protobuf::FileDescriptor *file_; |