diff options
author | yang-g <yangg@google.com> | 2016-04-21 10:03:21 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-04-21 10:03:21 -0700 |
commit | c3e1f6368354c1b9af02e29cf5e5bc9d90b4eb57 (patch) | |
tree | 06aad8f0e07f444cea30efcfb350718631365179 | |
parent | 6ba96de4fdfeb6db6cdec1e9532462ac7658ea09 (diff) |
Add comments
-rw-r--r-- | src/compiler/generator_helpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/generator_helpers.h b/src/compiler/generator_helpers.h index b8cf5c1e14..4e32e76a05 100644 --- a/src/compiler/generator_helpers.h +++ b/src/compiler/generator_helpers.h @@ -184,7 +184,7 @@ enum CommentType { COMMENTTYPE_LEADING_DETACHED }; -// Get all the comments and append each line to out. +// Get all the raw comments and append each line without newline to out. template <typename DescriptorType> inline void GetComment(const DescriptorType *desc, CommentType type, std::vector<grpc::string> *out) { @@ -209,6 +209,7 @@ inline void GetComment(const DescriptorType *desc, CommentType type, } } +// Each raw comment line without newline is appended to out. // For file level leading and detached leading comments, we return comments // above syntax line. Return nothing for trailing comments. template <> |