Home | History | Annotate | Download | only in tools

Lines Matching refs:re

7 import re
36 text = re.sub(r'&', '&', text)
37 text = re.sub(r'<', '&lt;', text)
38 text = re.sub(r'>', '&gt;', text)
53 text = re.sub(
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):
85 comment = re.sub(r'^\\[^\s]+\n', r'', comment, flags=re.M)
87 comment = re.sub(r'\\[^\s]+\s+', r'', comment)
92 args = re.sub(r'internal::', r'', args)
93 args = re.sub(r'const\s+', r'', args)
94 args = re.sub(r'&', r' ', args)
95 args = re.sub(r'(^|\s)M\d?(\s)', r'\1Matcher<*>\2', args)
136 m = re.match(r""".*Variadic(?:DynCast)?AllOfMatcher\s*<
139 \s*([^\s;]+)\s*;\s*$""", declaration, flags=re.X)
149 m = re.match(""".*AST_TYPE_MATCHER\(
152 \)\s*;\s*$""", declaration, flags=re.X)
157 # FIXME: re-enable once we have implemented casting on the TypeLoc
163 m = re.match(""".*AST_TYPE(LOC)?_TRAVERSE_MATCHER\(
167 \)\s*;\s*$""", declaration, flags=re.X)
183 m = re.match(r"""^\s*AST_POLYMORPHIC_MATCHER(_P)?(.?)(?:_OVERLOAD)?\(
191 \)\s*{\s*$""", declaration, flags=re.X)
207 m = re.match(r"""^\s*AST_MATCHER(_P)?(.?)(?:_OVERLOAD)?\(
215 \)\s*{\s*$""", declaration, flags=re.X)
235 m = re.match(r"""^\s*(.*)\s+
238 \)\s*{""", declaration, re.X)
242 m = re.match(r'.*\s+internal::(Bindable)?Matcher<([^>]+)>$', result)
292 m = re.search(r'is_base_of<([^,]+), NodeType>', line)
297 comment += re.sub(r'/+\s?', '', line) + '\n'
316 reference = re.sub(r'<!-- START_DECL_MATCHERS.*END_DECL_MATCHERS -->',
317 '%s', reference, flags=re.S) % node_matcher_table
318 reference = re.sub(r'<!-- START_NARROWING_MATCHERS.*END_NARROWING_MATCHERS -->',
319 '%s', reference, flags=re.S) % narrowing_matcher_table
320 reference = re.sub(r'<!-- START_TRAVERSAL_MATCHERS.*END_TRAVERSAL_MATCHERS -->',
321 '%s', reference, flags=re.S) % traversal_matcher_table