diff --git a/src/compiler/generator_helpers.h b/src/compiler/generator_helpers.h index 6b02b37d4f6..8aa875f9596 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 &in) { +inline grpc::string GenerateComments(const std::vector &in) { std::ostringstream oss; for (const grpc::string &elem : in) { if (elem.empty()) { @@ -254,8 +252,6 @@ grpc::string GenerateComments(const std::vector &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