Home | History | Annotate | Download | only in checkers

Lines Matching defs:string

46 import string
79 'stdiostream.h', 'streambuf.h', 'stream.h', 'strfile.h', 'string',
138 """Matches the string with the pattern, caching the compiled regexp."""
145 """Searches the string for the pattern, caching the compiled regexp."""
166 """Returns the string with replacement done.
182 s: The string on which to do the replacements.
251 """Splits a string into two parts up to first unmatched ')'.
254 s: a string which is a substring of line after '('
326 The empty string if the header is in the right order, or an
719 """Does line terminate so, that the next symbol is in string constant.
728 string constant.
1042 'Multi-line string ("...") found. This lint script doesn\'t '
1413 line: A line of a string.
1739 and ((line[comment_position - 1] not in string.whitespace)
1741 and line[comment_position - 2] in string.whitespace)))):
1912 non-blank line before the current line, or the empty string if this is the
2384 line: A string, which may be a Unicode string.
2602 """Return a primary header file name for a file, or empty string
2750 # where type may be float(), int(string), etc. Without context they are
2780 r'((?:|static +)(?:|const +))string +([a-zA-Z0-9_:]+)\b(.*)',
2783 # Function template specialization looks like: "string foo<Type>(...".
2784 # Class template definitions look like: "string Foo<Type>::Method(...".
2787 error(line_number, 'runtime/string', 4,
2788 'For a static/global string constant, use a C style string instead: '
2842 # Check for potential format string bugs like printf(foo).
2845 matched = re.search(r'\b((?:string)?printf)\s*\(([\w.\->()]+)\)', line, re.I)
2848 'Potential format string bug. Do %s("%%s", %s) instead.'
3050 cast_type: The string for the C++ cast to recommend. This is either
3120 ('<string>', ('char_traits', 'basic_string',)),
3182 Tuple with a bool and a string:
3184 string: the additional prefix needed to open the header file.
3265 # String is special -- it is a non-templatized type in STL.
3267 required['<string>'] = (line_number, 'string')
3461 'runtime/string',
3487 file_extension: A string that is the file extension, without