|
|
@ -237,10 +237,8 @@ inline void GetComment(const grpc::protobuf::FileDescriptor *desc, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
namespace { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Prefix comment line with "// " and concatenate them into a string.
|
|
|
|
// 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; |
|
|
|
std::ostringstream oss; |
|
|
|
for (const grpc::string &elem : in) { |
|
|
|
for (const grpc::string &elem : in) { |
|
|
|
if (elem.empty()) { |
|
|
|
if (elem.empty()) { |
|
|
@ -254,8 +252,6 @@ grpc::string GenerateComments(const std::vector<grpc::string> &in) { |
|
|
|
return oss.str(); |
|
|
|
return oss.str(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Get leading or trailing comments in a string. Comment lines start with "// ".
|
|
|
|
// Get leading or trailing comments in a string. Comment lines start with "// ".
|
|
|
|
// Leading detached comments are put in in front of leading comments.
|
|
|
|
// Leading detached comments are put in in front of leading comments.
|
|
|
|
template <typename DescriptorType> |
|
|
|
template <typename DescriptorType> |
|
|
|