Lines Matching refs:group

593     if matched.group(1):
597 category = matched.group(2)
1314 line = leading_space.group(1) + '""' + line[end + len(delimiter):]
1337 matched.group(1))):
1338 delimiter = ')' + matched.group(2) + '"'
1340 end = matched.group(3).find(delimiter)
1343 line = (matched.group(1) + '""' +
1344 matched.group(3)[end + len(delimiter):])
1348 line = matched.group(1) + '""'
1499 collapsed += head + match_literal.group(1).replace("'", '')
1500 elided = match_literal.group(2)
1775 return len(indent.group(1))
1948 if match.group(1) == '_':
1967 if match.group(1) == '_':
2307 match.group(1) + ' should be the last thing in the class')
2317 if indent and len(indent.group(1)) != self.class_indent:
2486 token = match.group(1)
2487 pos += len(match.group(0))
2636 new_namespace = _NamespaceInfo(namespace_decl_match.group(1), linenum)
2639 line = namespace_decl_match.group(2)
2664 end_declaration = len(class_decl_match.group(1))
2667 class_decl_match.group(3), class_decl_match.group(2),
2669 line = class_decl_match.group(4)
2684 classinfo.access = access_match.group(2)
2688 indent = access_match.group(1)
2696 if access_match.group(3):
2697 slots = access_match.group(3)
2700 access_match.group(2), slots, parent))
2709 token = matched.group(1)
2739 line = matched.group(2)
2880 is_marked_explicit = explicit_constructor_match.group(1)
2882 if not explicit_constructor_match.group(2):
2885 constructor_args = explicit_constructor_match.group(2).split(',')
2957 fncall = match.group(1) # look inside the parens for function calls
3074 function_name = match_result.group(1).split()[-1]
3089 function = Search(r'((\w|:)*)\(', line).group(1)
3093 function += parameter_regexp.group(1)
3140 leading_whitespace = match.group(1)
3145 username = match.group(2)
3151 middle_whitespace = match.group(3)
3268 'Do not leave a blank line after "%s:"' % matched.group(1))
3314 line = match.group(1) + ('_' * len(match.group(2))) + match.group(3)
3349 'Missing spaces around %s' % match.group(1))
3358 clean_lines, linenum, len(match.group(1)))
3369 clean_lines, linenum, len(match.group(1)))
3380 if (match and not (match.group(1).isdigit() and match.group(2).isdigit()) and
3381 not (match.group(1) == 'operator' and match.group(2) == ';')):
3406 'Extra space for operator %s' % match.group(1))
3424 'Missing space before ( in %s' % match.group(1))
3435 if len(match.group(2)) != len(match.group(4)):
3436 if not (match.group(3) == ';' and
3437 len(match.group(2)) == 1 + len(match.group(4)) or
3438 not match.group(2) and Search(r'\bfor\s*\(.*; \)', line)):
3440 'Mismatching spaces inside () in %s' % match.group(1))
3441 if len(match.group(2)) not in [0, 1]:
3444 match.group(1))
3497 token = last_word.group(1)
3596 leading_text = match.group(1)
3598 clean_lines, linenum, len(match.group(1)))
3705 '"%s:" should be preceded by a blank line' % matched.group(1))
3934 closing_brace_pos = match.group(1).rfind(')')
3942 macro.group(1) not in (
3946 (func and not Search(r'\boperator\s*\[\s*\]', func.group(1))) or
3976 clean_lines, linenum, len(match.group(1)))
4024 if matched.group(1) == 'if':
4033 if end_pos >= 0 and matched.group(1) == 'if':
4120 return (macro, len(matched.group(1)))
4170 token = matched.group(1)
4173 expression = matched.group(2)
4189 expression = matched.group(2)
4193 rhs = matched.group(2)
4206 lhs += matched.group(1)
4207 expression = matched.group(2)
4271 _ALT_TOKEN_REPLACEMENT[match.group(1)], match.group(1)))
4503 target_first_component.group(0) ==
4504 include_first_component.group(0)):
4536 if match and not _THIRD_PARTY_HEADERS_PATTERN.match(match.group(1)):
4545 include = match.group(2)
4546 is_system = (match.group(1) == '<')
4702 include_state.ResetSection(match.group(1))
4730 'Use int16/int64/etc, rather than the C type %s' % match.group(1))
4758 if match and match.group(1) != '__VA_ARGS__':
4760 line, re.I).group(1)
4763 % (function_name, match.group(1)))
4767 if match and not Match(r"^''|-?[0-9]+|0x[0-9A-Fa-f]$", match.group(2)):
4770 % (match.group(1), match.group(2)))
4779 if (match and match.group(2) != 'return' and match.group(2) != 'delete' and
4780 match.group(3).find(']') == -1):
4784 tokens = re.split(r'\s|\+|\-|\*|\/|<<|>>]', match.group(3))
4873 not Match(r'\s*(<.*>)?(::[a-zA-Z0-9_]+)*\s*\(([^"]|$)', match.group(4))):
4878 (match.group(1), match.group(2) or '', match.group(3)))
4902 if match and match.group(2) != '0':
4906 'to snprintf.' % (match.group(1), match.group(2)))
4915 'Almost always, snprintf is better than %s' % match.group(1))
4934 clean_lines, i, len(match.group(1)))
4971 line = remove_function_body.group(1)
5056 line = previous.group(1) + line.lstrip()
5158 matched_type = match.group(2)
5172 matched_new_or_template = match.group(1)
5176 if Match(r'\([^()]+\)\s*\[', match.group(3)):
5184 matched_funcptr = match.group(3)
5234 _, y1, x1 = CloseExpression(clean_lines, linenum, len(match.group(1)))
5304 (cast_type, match.group(1)))
5437 filename_cc = filename_cc[:-len(matched_test_suffix.group(1))]
5478 include = match.group(2)
5623 if (Search(r'\b(public|protected|private)\s+$', virtual.group(1)) or
5624 Match(r'^\s+(public|protected|private)\b', virtual.group(3))):
5639 start_col = len(virtual.group(2))
5646 clean_lines, start_line, start_col + len(parameter_list.group(1)))
5661 'already declared as "%s"' % match.group(1)))
5823 if include and include.group(1).startswith('tr1/'):
5825 ('C++ TR1 headers such as <%s> are unapproved.') % include.group(1))
5828 if include and include.group(1) in ('cfenv',
5840 ('<%s> is an unapproved C++11 header.') % include.group(1))
5875 if include and include.group(1) in ('scoped_allocator', 'shared_mutex'):
5877 ('<%s> is an unapproved C++14 header.') % include.group(1))