Lines Matching refs:comment
57 def extract_result_types(comment): argument
69 m = re.search(r'Usable as: Any Matcher[\s\n]*$', comment, re.S)
73 m = re.match(r'^(.*)Matcher<([^>]+)>\s*,?[\s\n]*$', comment, re.S)
75 if re.search(r'Usable as:\s*$', comment):
80 comment = m.group(1)
82 def strip_doxygen(comment): argument
85 comment = re.sub(r'^\\[^\s]+\n', r'', comment, flags=re.M)
87 comment = re.sub(r'\\[^\s]+\s+', r'', comment)
88 return comment
98 def add_matcher(result_type, name, args, comment, is_dyncast=False): argument
110 'comment': esc(strip_doxygen(comment)),
126 def act_on_decl(declaration, comment, allowed_types): argument
145 comment, is_dyncast=True)
156 comment, is_dyncast=True)
172 comment_result_types = extract_result_types(comment)
177 add_matcher(result_type, name, 'Matcher<Type>', comment)
180 comment)
204 add_matcher(result_type, name, args, comment)
230 add_matcher(result_type, name, args, comment)
246 result_types = extract_result_types(comment)
248 if not comment:
255 add_matcher(result_type, name, args, comment)
278 comment = '' variable
286 act_on_decl(declaration, comment, allowed_types)
287 comment = '' variable
297 comment += re.sub(r'/+\s?', '', line) + '\n'
306 act_on_decl(declaration, comment, allowed_types)
307 comment = '' variable