• Home
  • Raw
  • Download

Lines Matching refs:Search

419 def Search(pattern, s):  function
1423 if Search('(^|[^:]):($|[^:])', clean_lines.elided[linenum]):
1782 if Search(r'printf\s*\(.*".*%[-+ ]?\d*q', line):
1786 if Search(r'printf\s*\(.*".*%\d+\$', line):
1793 if Search(r'("|\').*\\(%|\[|\(|{)', line):
1800 if Search(r'\b(const|volatile|void|char|short|int|long'
1816 if Search(r'(\w+|[+-]?\d+(\.\d*)?)\s*(<|>)\?=?\s*(\w+|[+-]?\d+)(\.\d*)?',
1821 if Search(r'^\s*const\s*string\s*&\s*\w+\s*;', line):
1876 match = Search(pattern, line)
1895 not Search(r'\b(if|for|while|switch|return|delete)\b', fncall) and
1897 not Search(r' \([^)]+\)\([^)]*(\)|,$)', fncall) and
1899 not Search(r' \([^)]+\)\[[^\]]+\]', fncall)):
1900 if Search(r'\w\s*\(\s(?!\s*\\$)', fncall): # a ( used for a fn call
1903 elif Search(r'\(\s+(?!(\s*\\)|\()', fncall):
1906 if (Search(r'\w\s+\(', fncall) and
1907 not Search(r'#\s*define|typedef', fncall) and
1908 not Search(r'\w\s+\((\w+::)?\*\w+\)\(', fncall)):
1913 if Search(r'[^)]\s+\)\s*[^{\s]', fncall):
1916 if Search(r'^\s+\)', fncall):
1984 if Search(r'(;|})', start_line): # Declarations and trivial functions
1987 elif Search(r'{', start_line):
1989 function = Search(r'((\w|:)*)\(', line).group(1)
1991 parameter_regexp = Search(r'(\(.*\))', joined_line)
2095 match = Search(r'^[^<>(),;\[\]]*([<>(),;\[\]])(.*)$', line)
2157 match = Search(r'^(.*)([<>(),;\[\]])[^<>(),;\[\]]*$', line)
2318 match = (Search(r'[=/-]{4,}\s*$', line[commentend:]) or
2319 Search(r'^/$', line[commentend:]) or
2320 Search(r'^/+ ', line[commentend:]))
2335 if Search(r'[\w.]=[\w.]', line) and not Search(r'\b(if|while) ', line):
2347 match = Search(r'[^<>=!\s](==|!=|<=|>=)[^<>=!\s]', line)
2353 match = Search(r'(\S)(?:L|UL|ULL|l|ul|ull)?<<(\S)', line)
2365 match = Search(r'[^\s<]<([^\s=<].*)', reduced_line)
2374 match = Search(r'^(.*[^\s>])>[^\s=>]', reduced_line)
2393 match = Search(r'>>[a-zA-Z_]', line)
2399 match = Search(r'(!\s|~\s|[\s]--[\s;]|[\s]\+\+[\s;])', line)
2405 match = Search(r' (if\(|for\(|while\(|switch\()', line)
2415 match = Search(r'\b(if|for|while|switch)\s*'
2422 not match.group(2) and Search(r'\bfor\s*\(.*; \)', line)):
2431 if Search(r',[^\s]', line):
2439 if Search(r';[^\s};\\)/]', line):
2450 if Search(r'[^ ({]{', line):
2455 if Search(r'}else', line):
2461 if Search(r'\w\s+\[', line) and not Search(r'delete\s+\[', line):
2468 if Search(r':\s*;\s*$', line):
2471 elif Search(r'^\s*;\s*$', line):
2475 elif (Search(r'\s+;\s*$', line) and
2476 not Search(r'\bfor\b', line)):
2483 if (Search('for *\(.*[^:]:[^: ]', line) or
2484 Search('for *\(.*[^: ]:[^:]', line)):
2528 not Search(r'\b(class|struct)\b', prev_line) and
2529 not Search(r'\\$', prev_line)):
2536 if Search(r'\{\s*$', clean_lines.lines[i]):
2588 if (not Search(r'[;:}{]\s*$', prevline) and
2602 if Search(r'}\s*else[^{]*$', line) or Match(r'[^}]*else\s*{', line):
2603 if Search(r'}\s*else if([^{]*)$', line): # could be multi-line if
2617 if Search(r'\belse [^\s{]', line) and not Search(r'\belse if\b', line):
2636 if (Search(r'{.*}\s*;', line) and
2638 not Search(r'struct|class|enum|\s*=\s*{', line)):
2702 return Match(match_this, line) and not Search(r'NULL|&&|\|\|', line)
2843 elif not initial_spaces and line[:2] != '//' and Search(r'[^:]:\s*$',
3199 if not Search(
3211 match = Search(
3256 if Search(
3280 if Search(r'\bdynamic_cast<', line) and not _IsTestFilename(filename):
3286 if Search(r'\b([A-Za-z0-9_]*_)\(\1\)', line):
3300 if Search(r'\bshort port\b', line):
3301 if not Search(r'\bunsigned short port\b', line):
3305 match = Search(r'\b(short|long(?! +double)|long long)\b', line)
3311 match = Search(r'snprintf\s*\(([^,]*),\s*([0-9]*)\s*,', line)
3319 if Search(r'\bsprintf\b', line):
3322 match = Search(r'\b(strcpy|strcat)\b', line)
3327 if Search(r'\bsscanf\b', line):
3337 if Search(r'\boperator\s*&\s*\(\s*\)', line):
3343 if Search(r'\}\s*if\s*\(', line):
3365 match = Search(r'memset\s*\(([^,]*),\s*([^,]*),\s*0\s*\)', line)
3371 if Search(r'\busing namespace\b', line):
3391 if Search(r'sizeof\(.+\)', tok): continue
3392 if Search(r'arraysize\(\w+\)', tok): continue
3431 if not Search(r'^\s*}[\w\*,\s]*;', next_line):
3439 and Search(r'\bnamespace\s*{', line)
3467 match = Search(pattern, line)