From c3e1f6368354c1b9af02e29cf5e5bc9d90b4eb57 Mon Sep 17 00:00:00 2001 From: yang-g Date: Thu, 21 Apr 2016 10:03:21 -0700 Subject: Add comments --- src/compiler/generator_helpers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler') 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 inline void GetComment(const DescriptorType *desc, CommentType type, std::vector *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 <> -- cgit v1.2.3