diff options
author | yang-g <yangg@google.com> | 2016-04-21 00:03:58 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-04-21 00:09:04 -0700 |
commit | d8887c061c90cf055a25cc80fc134da6e9f436ae (patch) | |
tree | 49e07902734deffb1f0feab00d18d48ff39c5f41 /src/compiler/generator_helpers.h | |
parent | e2914023068da2ded0f825cd1790b1c70f14e0a5 (diff) |
Fix compilation error.
Diffstat (limited to 'src/compiler/generator_helpers.h')
-rw-r--r-- | src/compiler/generator_helpers.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compiler/generator_helpers.h b/src/compiler/generator_helpers.h index 6b02b37d4f..8aa875f959 100644 --- a/src/compiler/generator_helpers.h +++ b/src/compiler/generator_helpers.h @@ -237,10 +237,8 @@ inline void GetComment(const grpc::protobuf::FileDescriptor *desc, } } -namespace { - // Prefix comment line with "// " and concatenate them into a string. -grpc::string GenerateComments(const std::vector<grpc::string> &in) { +inline grpc::string GenerateComments(const std::vector<grpc::string> &in) { std::ostringstream oss; for (const grpc::string &elem : in) { if (elem.empty()) { @@ -254,8 +252,6 @@ grpc::string GenerateComments(const std::vector<grpc::string> &in) { return oss.str(); } -} // namespace - // Get leading or trailing comments in a string. Comment lines start with "// ". // Leading detached comments are put in in front of leading comments. template <typename DescriptorType> |