• Home
  • Raw
  • Download

Lines Matching refs:re

7 import re
39 text = re.sub(r'&', '&', text)
40 text = re.sub(r'<', '&lt;', text)
41 text = re.sub(r'>', '&gt;', text)
56 text = re.sub(
72 m = re.search(r'Usable as: Any Matcher[\s\n]*$', comment, re.S)
76 m = re.match(r'^(.*)Matcher<([^>]+)>\s*,?[\s\n]*$', comment, re.S)
78 if re.search(r'Usable as:\s*$', comment):
88 comment = re.sub(r'^\\[^\s]+\n', r'', comment, flags=re.M)
92 comment = re.sub(r'\\see', r'See also:', comment)
95 comment = re.sub(r'\\[^\s]+\s+', r'', comment)
100 args = re.sub(r'internal::', r'', args)
101 args = re.sub(r'extern const\s+(.*)&', r'\1 ', args)
102 args = re.sub(r'&', r' ', args)
103 args = re.sub(r'(^|\s)M\d?(\s)', r'\1Matcher<*>\2', args)
104 args = re.sub(r'BindableMatcher', r'Matcher', args)
105 args = re.sub(r'const Matcher', r'Matcher', args)
110 …result_type = re.sub(r'^internal::(Bindable)?Matcher<([a-zA-Z_][a-zA-Z0-9_]*)>$', r'\2', result_ty…
157 if re.match(r'^\s?(#|namespace|using)', declaration): return
161 m = re.match(r""".*Variadic(?:DynCast)?AllOfMatcher\s*<
164 \s*([^\s;]+)\s*;\s*$""", declaration, flags=re.X)
175 m = re.match(r""".*AstTypeMatcher\s*<
177 \s*([^\s;]+)\s*;\s*$""", declaration, flags=re.X)
189 m = re.match(""".*AST_TYPE(LOC)?_TRAVERSE_MATCHER(?:_DECL)?\(
193 \)\s*;\s*$""", declaration, flags=re.X)
209 m = re.match(r"""^\s*AST_POLYMORPHIC_MATCHER(_P)?(.?)(?:_OVERLOAD)?\(
217 \)\s*{\s*$""", declaration, flags=re.X)
233 m = re.match(r"""^\s*AST_POLYMORPHIC_MATCHER_REGEX(?:_OVERLOAD)?\(
238 \)\s*{\s*$""", declaration, flags=re.X)
255 m = re.match(r"""^\s*AST_MATCHER_FUNCTION(_P)?(.?)(?:_OVERLOAD)?\(
263 \)\s*{\s*$""", declaration, flags=re.X)
274 m = re.match(r"""^\s*AST_MATCHER(_P)?(.?)(?:_OVERLOAD)?\(
282 \)\s*{""", declaration, flags=re.X)
300 m = re.match(r"""^\s*AST_MATCHER_REGEX(?:_OVERLOAD)?\(
305 \)\s*{""", declaration, flags=re.X)
326 m = re.match(
329 declaration, flags=re.X)
336 m = re.match(
339 declaration, flags=re.X)
345 m = re.match(
350 declaration, flags=re.X)
362 m = re.match(
365 declaration, flags=re.X)
378 m = re.match(r"""^\s*(?:template\s+<\s*(?:class|typename)\s+(.+)\s*>\s+)?
382 \)\s*{""", declaration, re.X)
386 matcherTemplateArgs = re.findall(r'Matcher<\s*(%s)\s*>' % template_name, args)
387 templateArgs = re.findall(r'(?:^|[\s,<])(%s)(?:$|[\s,>])' % template_name, args)
392 args = re.sub(r'(^|[\s,<])%s($|[\s,>])' % template_name, r'\1*\2', args)
394 m = re.match(r'(?:^|.*\s+)internal::(?:Bindable)?Matcher<([^>]+)>$', result)
446 m = re.search(r'is_base_of<([^,]+), NodeType>', line)
451 comment += re.sub(r'^/+\s?', '', line) + '\n'
470 reference = re.sub(r'<!-- START_DECL_MATCHERS.*END_DECL_MATCHERS -->',
471 node_matcher_table, reference, flags=re.S)
472 reference = re.sub(r'<!-- START_NARROWING_MATCHERS.*END_NARROWING_MATCHERS -->',
473 narrowing_matcher_table, reference, flags=re.S)
474 reference = re.sub(r'<!-- START_TRAVERSAL_MATCHERS.*END_TRAVERSAL_MATCHERS -->',
475 traversal_matcher_table, reference, flags=re.S)