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)
89 comment = re.sub(r'\\see', r'See also:', comment)
92 comment = re.sub(r'\\[^\s]+\s+', r'', comment)
97 args = re.sub(r'internal::', r'', args)
98 args = re.sub(r'const\s+(.*)&', r'\1 ', args)
99 args = re.sub(r'&', r' ', args)
100 args = re.sub(r'(^|\s)M\d?(\s)', r'\1Matcher<*>\2', args)
141 m = re.match(r""".*Variadic(?:DynCast)?AllOfMatcher\s*<
144 \s*([^\s;]+)\s*;\s*$""", declaration, flags=re.X)
154 m = re.match(""".*AST_TYPE_MATCHER\(
157 \)\s*;\s*$""", declaration, flags=re.X)
168 m = re.match(""".*AST_TYPE(LOC)?_TRAVERSE_MATCHER\(
172 \)\s*;\s*$""", declaration, flags=re.X)
188 m = re.match(r"""^\s*AST_POLYMORPHIC_MATCHER(_P)?(.?)(?:_OVERLOAD)?\(
196 \)\s*{\s*$""", declaration, flags=re.X)
212 m = re.match(r"""^\s*AST_MATCHER_FUNCTION(_P)?(.?)(?:_OVERLOAD)?\(
220 \)\s*{\s*$""", declaration, flags=re.X)
231 m = re.match(r"""^\s*AST_MATCHER(_P)?(.?)(?:_OVERLOAD)?\(
239 \)\s*{\s*$""", declaration, flags=re.X)
258 m = re.match(
261 declaration, flags=re.X)
268 m = re.match(
271 declaration, flags=re.X)
278 m = re.match(
281 declaration, flags=re.X)
294 m = re.match(r"""^\s*(.*)\s+
297 \)\s*{""", declaration, re.X)
301 m = re.match(r'.*\s+internal::(Bindable)?Matcher<([^>]+)>$', result)
351 m = re.search(r'is_base_of<([^,]+), NodeType>', line)
356 comment += re.sub(r'/+\s?', '', line) + '\n'
375 reference = re.sub(r'<!-- START_DECL_MATCHERS.*END_DECL_MATCHERS -->',
376 node_matcher_table, reference, flags=re.S)
377 reference = re.sub(r'<!-- START_NARROWING_MATCHERS.*END_NARROWING_MATCHERS -->',
378 narrowing_matcher_table, reference, flags=re.S)
379 reference = re.sub(r'<!-- START_TRAVERSAL_MATCHERS.*END_TRAVERSAL_MATCHERS -->',
380 traversal_matcher_table, reference, flags=re.S)