Lines Matching refs:Search
423 def Search(pattern, s): function
1456 if Search('(^|[^:]):($|[^:])', clean_lines.elided[linenum]):
1815 if Search(r'printf\s*\(.*".*%[-+ ]?\d*q', line):
1819 if Search(r'printf\s*\(.*".*%\d+\$', line):
1826 if Search(r'("|\').*\\(%|\[|\(|{)', line):
1833 if Search(r'\b(const|volatile|void|char|short|int|long'
1849 if Search(r'(\w+|[+-]?\d+(\.\d*)?)\s*(<|>)\?=?\s*(\w+|[+-]?\d+)(\.\d*)?',
1854 if Search(r'^\s*const\s*string\s*&\s*\w+\s*;', line):
1909 match = Search(pattern, line)
1930 not Search(r'\b(if|for|while|switch|return|delete|new)\b', fncall) and
1933 not Search(r' \([^)]+\)\([^)]*(\)|,$)', fncall) and
1935 not Search(r' \([^)]+\)\[[^\]]+\]', fncall)):
1936 if Search(r'\w\s*\(\s(?!\s*\\$)', fncall): # a ( used for a fn call
1939 elif Search(r'\(\s+(?!(\s*\\)|\()', fncall):
1942 if (Search(r'\w\s+\(', fncall) and
1943 not Search(r'#\s*define|typedef', fncall) and
1944 not Search(r'\w\s+\((\w+::)?\*\w+\)\(', fncall)):
1949 if Search(r'[^)]\s+\)\s*[^{\s]', fncall):
1952 if Search(r'^\s+\)', fncall):
2020 if Search(r'(;|})', start_line): # Declarations and trivial functions
2023 elif Search(r'{', start_line):
2025 function = Search(r'((\w|:)*)\(', line).group(1)
2027 parameter_regexp = Search(r'(\(.*\))', joined_line)
2131 match = Search(r'^[^<>(),;\[\]]*([<>(),;\[\]])(.*)$', line)
2193 match = Search(r'^(.*)([<>(),;\[\]])[^<>(),;\[\]]*$', line)
2354 match = (Search(r'[=/-]{4,}\s*$', line[commentend:]) or
2355 Search(r'^/$', line[commentend:]) or
2356 Search(r'^/+ ', line[commentend:]))
2371 if Search(r'[\w.]=[\w.]', line) and not Search(r'\b(if|while) ', line):
2383 match = Search(r'[^<>=!\s](==|!=|<=|>=)[^<>=!\s]', line)
2389 match = Search(r'(\S)(?:L|UL|ULL|l|ul|ull)?<<(\S)', line)
2401 match = Search(r'[^\s<]<([^\s=<].*)', reduced_line)
2410 match = Search(r'^(.*[^\s>])>[^\s=>]', reduced_line)
2429 match = Search(r'>>[a-zA-Z_]', line)
2435 match = Search(r'(!\s|~\s|[\s]--[\s;]|[\s]\+\+[\s;])', line)
2441 match = Search(r' (if\(|for\(|while\(|switch\()', line)
2451 match = Search(r'\b(if|for|while|switch)\s*'
2458 not match.group(2) and Search(r'\bfor\s*\(.*; \)', line)):
2467 if Search(r',[^\s]', line):
2475 if Search(r';[^\s};\\)/]', line):
2486 if Search(r'[^ ({]{', line):
2491 if Search(r'}else', line):
2497 if Search(r'\w\s+\[', line) and not Search(r'delete\s+\[', line):
2504 if Search(r':\s*;\s*$', line):
2507 elif Search(r'^\s*;\s*$', line):
2511 elif (Search(r'\s+;\s*$', line) and
2512 not Search(r'\bfor\b', line)):
2519 if (Search('for *\(.*[^:]:[^: ]', line) or
2520 Search('for *\(.*[^: ]:[^:]', line)):
2564 not Search(r'\b(class|struct)\b', prev_line) and
2565 not Search(r'\\$', prev_line)):
2572 if Search(r'\{\s*$', clean_lines.lines[i]):
2624 if (not Search(r'[;:}{]\s*$', prevline) and
2638 if Search(r'}\s*else[^{]*$', line) or Match(r'[^}]*else\s*{', line):
2639 if Search(r'}\s*else if([^{]*)$', line): # could be multi-line if
2653 if Search(r'\belse [^\s{]', line) and not Search(r'\belse if\b', line):
2672 if (Search(r'{.*}\s*;', line) and
2674 not Search(r'struct|class|enum|\s*=\s*{', line)):
2738 return Match(match_this, line) and not Search(r'NULL|&&|\|\|', line)
2879 elif not initial_spaces and line[:2] != '//' and Search(r'[^:]:\s*$',
3235 if not Search(
3247 match = Search(
3299 if Search(
3323 if Search(r'\bdynamic_cast<', line) and not _IsTestFilename(filename):
3329 if Search(r'\b([A-Za-z0-9_]*_)\(\1\)', line):
3343 if Search(r'\bshort port\b', line):
3344 if not Search(r'\bunsigned short port\b', line):
3348 match = Search(r'\b(short|long(?! +double)|long long)\b', line)
3354 match = Search(r'snprintf\s*\(([^,]*),\s*([0-9]*)\s*,', line)
3362 if Search(r'\bsprintf\b', line):
3365 match = Search(r'\b(strcpy|strcat)\b', line)
3370 if Search(r'\bsscanf\b', line):
3380 if Search(r'\boperator\s*&\s*\(\s*\)', line):
3386 if Search(r'\}\s*if\s*\(', line):
3408 match = Search(r'memset\s*\(([^,]*),\s*([^,]*),\s*0\s*\)', line)
3414 if Search(r'\busing namespace\b', line):
3434 if Search(r'sizeof\(.+\)', tok): continue
3435 if Search(r'arraysize\(\w+\)', tok): continue
3474 if not Search(r'^\s*}[\w\*,\s]*;', next_line):
3482 and Search(r'\bnamespace\s*{', line)
3510 match = Search(pattern, line)