Home | History | Annotate | Download | only in checkers

Lines Matching refs:re

44 import re
697 _RE_PATTERN_CLEANSE_LINE_ESCAPES = re.compile(
700 _RE_PATTERN_CLEANSE_LINE_DOUBLE_QUOTES = re.compile(r'"[^"]*"')
702 _RE_PATTERN_CLEANSE_LINE_SINGLE_QUOTES = re.compile(r"'.'")
704 # This RE is a little bit more complicated than one might expect, because we
707 # The current rule is: We only clear spaces from both sides when we're at the
711 _RE_PATTERN_CLEANSE_LINE_C_COMMENTS = re.compile(
715 /\*.*\*/)""", re.VERBOSE)
822 We nix strings first so we're not fooled by text like '"http://"'
899 if re.search(r'Copyright', lines[line], re.I):
921 filename = re.sub(r'_flymake\.h$', '.h', filename)
1043 'do well with such strings, and may give bogus warnings. They\'re '
1092 _RE_PATTERN_INVALID_INCREMENT = re.compile(
1307 % re.escape(base_classname),
1311 and not match(r'(const\s+)?%s\s*&' % re.escape(base_classname),
1375 # a function name (alnum + _) and we're not starting a macro. Also ignore
1376 # pointers and references to arrays and functions coz they're too tricky:
1439 # If we're in a function, don't try to detect a new one.
1747 # but some lines are exceptions -- e.g. if they're big
1778 # Alas, we can't test < or > because they're legitimately used sans spaces
2058 # that we're currently testing. We'll need to track the extent of
2159 # Braces shouldn't be followed by a ; unless they're defining a struct
2221 # As we're going up the lines, the first real statement to encounter
2500 _RE_PATTERN_INCLUDE_NEW_STYLE = re.compile(r'#include +"[^/]+\.h"')
2501 _RE_PATTERN_INCLUDE = re.compile(r'^\s*#\s*include\s*([<"])([^>"]*)[>"].*$')
2507 _RE_FIRST_COMPONENT = re.compile(r'^[^-_.]+')
2579 # If the target file basename starts with the include we're checking
2740 # FIXME: figure out if they're using default arguments in fn proto.
2742 # Check to see if they're using an conversion function cast.
2792 # Check that we're not using RTTI outside of testing code.
2845 matched = re.search(r'\b((?:string)?printf)\s*\(([\w.\->()]+)\)', line, re.I)
2865 tokens = re.split(r'\s|\+|\-|\*|\/|<<|>>]', matched.group(3))
3136 _RE_PATTERN_STRING = re.compile(r'\bstring\b')
3144 (re.compile(r'[^>.]\b' + _template + r'(<.*?>)?\([^\)]'),
3152 (re.compile(r'(\<|\b)' + _template + r'\s*\<'),
3299 abs_filename = re.sub(r'_flymake\.cpp$', '.cpp', abs_filename)
3310 # know where to look. In that case we'll give up as we're not sure they