Home | History | Annotate | Download | only in tools

Lines Matching full:comments

210   'whitespace/comments',
320 # False positives include C-style multi-line comments (http://go/nsiut )
363 Parses any NOLINT comments on the current line, updating the global
369 raw_line: str, the line of input text, with comments.
867 "cpplint(category)" comments on the offending line. These are
901 # Matches multi-line C++ comments.
903 # have to take care of space removals tools so we can handle comments inside
919 This function does not consider single-line nor multi-line comments.
954 """Clears a range of lines for multi-line comments."""
955 # Having // dummy comments makes the lines non-empty, so we will not get
962 """Removes multiline (c-style) comments from lines."""
978 """Removes //-comments and single-line C-style /* */ comments.
984 The line with single-line comments removed.
996 1) elided member contains lines without strings and comments,
997 2) lines member contains lines without comments, and
1075 strings and comments when matching; and the line we return is the
1257 /* ... */ comments are legit inside macros, for one line.
1258 Otherwise, we prefer // comments, so it's ok to warn about the
1281 'Consider replacing these with //-style comments, '
1283 'or with more clearly structured multi-line comments.')
1390 This is mostly used for checking end of namespace comments.
1443 """Check end of namespace comments."""
1447 # warning for missing namespace comments if there aren't enough
1451 # TODO(unknown): We always want to check end of namespace comments
1463 # Note that we accept C style "/* */" comments for terminating
1786 # Remove comments
1804 # For the rest, work with both comments and strings removed.
1962 of vertical space and comments just to get through a lint check.
2023 """Checks for common mistakes in TODO comments.
2062 line = clean_lines.elided[linenum] # get rid of comments and strings
2230 # Before nixing comments, check if the line is blank for no good
2241 # A warning about missing end of namespace comments will be issued instead.
2316 error(filename, linenum, 'whitespace/comments', 2,
2317 'At least two spaces is best between code and comments')
2332 error(filename, linenum, 'whitespace/comments', 4,
2336 line = clean_lines.elided[linenum] # get rid of comments and strings
2587 line = clean_lines.elided[linenum] # get rid of comments and strings
2736 line = clean_lines.elided[linenum] # get rid of comments and strings
2763 # Last ditch effort to avoid multi-line comments. This will not help
2767 # multi-line comments in preprocessor macros.
2770 # multi-line comments.
3109 text: The lines to extract text. Its comments and strings must be elided.
3467 raw_line: The raw line of code to check, with comments.
3794 with comments stripped.