Lines Matching refs:Match

652 def Match(pattern, s):  function
799 Match(r'^\s*#\s*include\b', clean_lines.elided[linenum - 1])):
1065 if Match(r'T(EST|est)', self.current_function):
1313 leading_space = Match(r'^(\s*)\S', line)
1334 matched = Match(r'^(.*?)\b(?:R|u8R|uR|UR|LR)"([^\s\\()]*)\((.*)$', line)
1336 not Match(r'^([^\'"]|\'(\\.|[^\'])*\'|"(\\.|[^"])*")*//',
1472 match = Match(r'^([^\'"]*)([\'"])(.*)$', elided)
1498 match_literal = Match(r'^((?:\'?[0-9a-zA-Z_])*)(.*)$', "'" + tail)
1616 if (line[pos] not in '({[<') or Match(r'<[<=]', line[pos:]):
1664 Match(r'\s>=\s', line[i - 1:]) or
1773 indent = Match(r'^( *)\S', line)
1946 match = Match(r'#endif\s*//\s*' + cppvar + r'(_)?\b', endif)
1960 if Match(r'^(?:(?:\'(?:\.|[^\'])*\')|(?:"(?:\.|[^"])*")|[^\'"])*//', line):
1965 match = Match(r'#endif\s*/\*\s*' + cppvar + r'(_)?\s*\*/', endif)
2197 return Match(r'^\s*(\btemplate\b)*.*class\s+\w+;\s*$', clean_lines[linenum])
2310 if not Match(r'^\s*$', clean_lines.elided[i]):
2316 indent = Match(r'^( *)\}', clean_lines.elided[linenum])
2350 and not Match(r'^\s*};*\s*(//|/\*).*\bnamespace\b', line)):
2367 if not Match((r'^\s*};*\s*(//|/\*).*\bnamespace\s+' +
2375 if not Match(r'^\s*};*\s*(//|/\*).*\bnamespace[\*/\.\\\s]*$', line):
2378 if Match(r'^\s*}.*\b(namespace anonymous|anonymous namespace)\b', line):
2481 match = Match(r'^[^{};=\[\]\.<>]*(.)', line[pos:])
2541 if Match(r'^\s*#\s*(if|ifdef|ifndef)\b', line):
2545 elif Match(r'^\s*#\s*(else|elif)\b', line):
2560 elif Match(r'^\s*#\s*endif\b', line):
2632 namespace_decl_match = Match(r'^\s*namespace\b\s*([:\w]+)?(.*)$', line)
2649 class_decl_match = Match(
2679 access_match = Match(
2690 Match(r'^\s*$', indent)):
2705 matched = Match(r'^[^{;)}]*([{;)}])(.*)$', line)
2716 elif Match(r'^extern\s*"[^"]*"\s*\{', line):
2834 if Match(r'\s*#\s*endif\s*[^/\s]+', line):
2838 if Match(r'\s*class\s+(\w+\s*::\s*)+\w+\s*;', line):
2872 explicit_constructor_match = Match(
2915 Match(r'(const\s+)?%s(\s*<[^>]*>)?(\s+const)?\s*(?:<\w+>\s*)?&'
3070 match_result = Match(regexp, line)
3076 not Match(r'[A-Z_]+$', function_name)):
3090 if Match(r'TEST', function): # Handle TEST... macros
3102 elif Match(r'^\}\s*$', line): # function end
3105 elif not Match(r'^\s*$', line):
3127 if (not (Match(r'^.*{ *//', line) and next_line_start == commentpos) and
3160 if (Match(r'//[^ ]*\w', comment) and
3161 not Match(r'(///|//\!)(\s+|$)', comment)):
3224 if Match(r' {6}\w', prev_line): # Initializer list?
3229 and Match(r' {6}\w', elided[search_position])):
3240 exception = (Match(r' {4}\w[^\(]*\)\s*(const\s*)?(\{\s*$|:)',
3242 or Match(r' {4}:', prev_line))
3259 and Match(r'\s*}', next_line)
3265 matched = Match(r'\s*(public|protected|private):', prev_line)
3312 match = Match(r'^(.*\boperator\b)(\S+)(\s*\(.*)$', line)
3350 elif not Match(r'#.*include', line):
3355 match = Match(r'^(.*[^\s<])<[^\s=<,]', line)
3366 match = Match(r'^(.*[^-\s>])>[^\s=>,]', line)
3495 last_word = Match(r'^.*(\b\S+)$', expr)
3565 match = Match(r'^(.*[^ ({>]){', line)
3608 if (not Match(r'^[\s}]*[{.;,)<>\]:]', trailing_text)
3680 matched = Match(r'\s*(public|protected|private):', clean_lines.lines[linenum])
3743 if Match(r'\s*{\s*$', line):
3755 not Match(r'\s*#', prevline) and
3761 if Match(r'\s*else\b\s*(?:if\b|\{|$)', line):
3763 if Match(r'\s*}\s*$', prevline):
3780 elif Search(r'}\s*else[^{]*$', line) or Match(r'[^}]*else\s*{', line):
3790 if Match(r'\s*do [^\s{]', line):
3802 if if_else_match and not Match(r'\s*#', line):
3812 if (not Match(r'\s*{', endline[endpos:])
3813 and not (Match(r'\s*$', endline[endpos:])
3815 and Match(r'\s*{', clean_lines.elided[endlinenum + 1]))):
3825 if not Match(r';[\s}]*(\\?)$', endline[endpos:]):
3829 if not Match(r'^[^{};]*\[[^\[\]]*\][^{}]*\{[^{}]*\}\s*\)*[;,]\s*$',
3840 if (if_match and Match(r'\s*else\b', next_line)
3906 match = Match(r'^(.*\)\s*)\{', line)
3940 func = Match(r'^(.*\])\s*$', line_prefix)
3959 match = Match(r'^(.*(?:else|\)\s*const)\s*)\{', line)
3971 match = Match(r'^(\s*)\{', line)
3977 if endpos > -1 and Match(r'^\s*;', endline[endpos:]):
4014 matched = Match(r'\s*(for|while|if)\s*\(', line)
4023 if end_pos >= 0 and Match(r';', end_line[end_pos:]):
4117 matched = Match(r'^(.*\b' + macro + r'\s*)\(', line)
4149 if not Match(r'\s*;', last_line[end_pos:]):
4167 matched = Match(r'^\s*(<<|<<=|>>|>>=|->\*|->|&&|\|\||'
4201 matched = Match(r'^([^-=!<>()&|]+)(.*)$', expression)
4203 matched = Match(r'^(\s*\S)(.*)$', expression)
4227 if Match(match_constant, lhs) or Match(match_constant, rhs):
4254 if Match(r'^\s*#', line):
4350 not Match(scope_or_label_pattern, cleansed_line) and
4352 Match(r'^\s*""', line))):
4378 not Match(r'^\s*//.*http(s?)://\S*$', line) and
4379 not Match(r'^\s*//\s*[^\s]*$', line) and
4380 not Match(r'^// \$Id:.*#[0-9]+ \$$', line)):
4535 match = Match(r'#include\s*"([^/]+\.h)"', line)
4700 match = Match(r'^\s*#\s*(if|ifdef|ifndef|elif|else|endif)\b', line)
4757 match = Match(r'([\w.\->()]+)$', printf_args)
4767 if match and not Match(r"^''|-?[0-9]+|0x[0-9A-Fa-f]$", match.group(2)):
4778 match = Match(r'\s*(.+::)?(\w+) [a-z]\w*\[(.+)];', line)
4798 if Match(r'\d+', tok): continue
4799 if Match(r'0[xX][0-9a-fA-F]+', tok): continue
4800 if Match(r'k[A-Z0-9]\w*', tok): continue
4801 if Match(r'(.+::)?k[A-Z0-9]\w*', tok): continue
4802 if Match(r'(.+::)?[A-Z][A-Z0-9_]*', tok): continue
4849 match = Match(
4873 not Match(r'\s*(<.*>)?(::[a-zA-Z0-9_]+)*\s*\(([^"]|$)', match.group(4))):
4930 match = Match(r'^([^()]*\w+)\(', clean_lines.elided[i])
4951 if Match(r'^([^()]*\w+)\(', clean_lines.elided[i]):
4952 return Match(r'^[^()]*\w+::\w+\(', clean_lines.elided[i]) is not None
4969 remove_function_body = Match(r'^(.*)\{\s*$', line)
5047 if Match(r'\s*::(?:[\w<>]|::)+\s*&\s*\S', line):
5051 elif Match(r'\s*[a-zA-Z_]([\w<>]|::)+\s*&\s*\S', line):
5095 if Match(r'^\s*:\s+\S', previous_line):
5129 if (not Match(_RE_PATTERN_CONST_REF_PARAM, parameter) and
5130 not Match(_RE_PATTERN_REF_STREAM_PARAM, parameter)):
5176 if Match(r'\([^()]+\)\s*\[', match.group(3)):
5187 (Match(r'\((?:[^() ]+::\s*\*\s*)?[^() ]+\)\s*\(',
5190 not Match(r'\s*using\s+\S+\s*=\s*' + matched_type, line) and
5232 match = Match(r'^(.*&(?:static|dynamic|down|reinterpret)_cast\b)<', line)
5241 if Match(r'\s*(?:->|\[)', extended_line):
5279 if Match(r'.*\b(?:sizeof|alignof|alignas|[_A-Z][_A-Z0-9]*)\s*$', context):
5287 if Match(r'.*\b[_A-Z][_A-Z0-9]*\s*\((?:\([^()]*\)|[^()])*$', context):
5297 if Match(r'^\s*(?:;|const\b|throw\b|final\b|override\b|[=>{),]|->)',
5321 return (Match(r'^\s*MOCK_(CONST_)?METHOD\d+(_T)?\(', line) or
5323 (Match(r'^\s*MOCK_(?:CONST_)?METHOD\d+(?:_T)?\((?:\S+,)?\s*$',
5325 Match(r'^\s*MOCK_(?:CONST_)?METHOD\d+(?:_T)?\(\s*$',
5617 virtual = Match(r'^(.*)(\bvirtual\b)(.*)$', line)
5624 Match(r'^\s+(public|protected|private)\b', virtual.group(3))):
5630 if Match(r'^.*[^:]:[^:].*$', line): return
5642 parameter_list = Match(r'^([^(]*)\(', line)
5760 if Match(r'^\s+', line):
5820 include = Match(r'\s*#\s*include\s+[<"]([^<"]+)[">]', line)
5844 if Match(r'\s*#', line) and not Match(r'\s*#\s*define\b', line): return
5872 include = Match(r'\s*#\s*include\s+[<"]([^<"]+)[">]', line)