Lines Matching refs:re
7 import re
36 text = re.sub(r'&', '&', text)
37 text = re.sub(r'<', '<', text)
38 text = re.sub(r'>', '>', 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)
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_FUNCTION(_P)?(.?)(?:_OVERLOAD)?\(
215 \)\s*{\s*$""", declaration, flags=re.X)
226 m = re.match(r"""^\s*AST_MATCHER(_P)?(.?)(?:_OVERLOAD)?\(
234 \)\s*{\s*$""", declaration, flags=re.X)
253 m = re.match(
256 declaration, flags=re.X)
263 m = re.match(
266 declaration, flags=re.X)
279 m = re.match(r"""^\s*(.*)\s+
282 \)\s*{""", declaration, re.X)
286 m = re.match(r'.*\s+internal::(Bindable)?Matcher<([^>]+)>$', result)
336 m = re.search(r'is_base_of<([^,]+), NodeType>', line)
341 comment += re.sub(r'/+\s?', '', line) + '\n'
360 reference = re.sub(r'<!-- START_DECL_MATCHERS.*END_DECL_MATCHERS -->',
361 '%s', reference, flags=re.S) % node_matcher_table
362 reference = re.sub(r'<!-- START_NARROWING_MATCHERS.*END_NARROWING_MATCHERS -->',
363 '%s', reference, flags=re.S) % narrowing_matcher_table
364 reference = re.sub(r'<!-- START_TRAVERSAL_MATCHERS.*END_TRAVERSAL_MATCHERS -->',
365 '%s', reference, flags=re.S) % traversal_matcher_table