Home | History | Annotate | Download | only in tools

Lines Matching refs:clean_lines

1061 def CloseExpression(clean_lines, linenum, pos):
1068 clean_lines: A CleansedLines instance containing the file.
1079 line = clean_lines.elided[linenum]
1082 return (line, clean_lines.NumLines(), -1)
1093 while linenum < clean_lines.NumLines() - 1:
1095 line = clean_lines.elided[linenum]
1103 return (line, clean_lines.NumLines(), -1)
1254 def CheckForMultilineCommentsAndStrings(filename, clean_lines, linenum, error):
1267 clean_lines: A CleansedLines instance containing the file.
1271 line = clean_lines.elided[linenum]
1309 def CheckPosixThreading(filename, clean_lines, linenum, error):
1320 clean_lines: A CleansedLines instance containing the file.
1324 line = clean_lines.elided[linenum]
1342 def CheckInvalidIncrement(filename, clean_lines, linenum, error):
1354 clean_lines: A CleansedLines instance containing the file.
1358 line = clean_lines
1372 def CheckBegin(self, filename, clean_lines, linenum, error):
1381 clean_lines: A CleansedLines instance containing the file.
1387 def CheckEnd(self, filename, clean_lines, linenum, error):
1394 clean_lines: A CleansedLines instance containing the file.
1404 def __init__(self, name, class_or_struct, clean_lines, linenum):
1421 for i in range(linenum, clean_lines.NumLines()):
1422 line = clean_lines.elided[i]
1428 def CheckBegin(self, filename, clean_lines, linenum, error):
1430 if Search('(^|[^:]):($|[^:])', clean_lines.elided[linenum]):
1442 def CheckEnd(self, filename, clean_lines, linenum, error):
1444 line = clean_lines.raw_lines[linenum]
1591 def Update(self, filename, clean_lines, linenum, error):
1596 clean_lines: A CleansedLines instance containing the file.
1600 line = clean_lines.elided[linenum]
1677 clean_lines, linenum))
1683 self.stack[-1].CheckBegin(filename, clean_lines, linenum, error)
1723 self.stack[-1].CheckEnd(filename, clean_lines, linenum, error)
1757 def CheckForNonStandardConstructs(filename, clean_lines, linenum,
1778 clean_lines: A CleansedLines instance containing the file.
1787 line = clean_lines.lines[linenum]
1805 line = clean_lines.elided[linenum]
1949 def CheckForFunctionLengths(filename, clean_lines, linenum,
1967 clean_lines: A CleansedLines instance containing the file.
1972 lines = clean_lines.lines
1974 raw = clean_lines.raw_lines
1991 for start_linenum in xrange(linenum, clean_lines.NumLines()):
2051 def CheckAccess(filename, clean_lines, linenum, nesting_state, error):
2056 clean_lines: A CleansedLines instance containing the file.
2062 line = clean_lines.elided[linenum] # get rid of comments and strings
2082 def FindNextMatchingAngleBracket(clean_lines, linenum, init_suffix):
2086 clean_lines: A CleansedLines instance containing the file.
2142 if linenum >= len(clean_lines.elided):
2144 line = clean_lines.elided[linenum]
2152 def FindPreviousMatchingAngleBracket(clean_lines, linenum, init_prefix):
2156 clean_lines: A CleansedLines instance containing the file.
2203 line = clean_lines.elided[linenum]
2209 def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
2220 clean_lines: A CleansedLines instance containing the file.
2227 raw = clean_lines.raw_lines
2243 elided = clean_lines.elided
2290 if linenum + 1 < clean_lines.NumLines():
2336 line = clean_lines.elided[linenum] # get rid of comments and strings
2377 not FindNextMatchingAngleBracket(clean_lines, linenum, match.group(1))):
2386 not FindPreviousMatchingAngleBracket(clean_lines, linenum,
2499 def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error):
2506 clean_lines: A CleansedLines instance containing the file.
2526 matched = Match(r'\s*(public|protected|private):', clean_lines.lines[linenum])
2536 prev_line = clean_lines.lines[linenum - 1]
2546 if Search(r'\{\s*$', clean_lines.lines[i]):
2554 def GetPreviousNonBlankLine(clean_lines, linenum):
2558 clean_lines: A CleansedLines instance containing the file contents.
2570 prevline = clean_lines.elided[prevlinenum]
2577 def CheckBraces(filename, clean_lines, linenum, error):
2582 clean_lines: A CleansedLines instance containing the file.
2587 line = clean_lines.elided[linenum] # get rid of comments and strings
2597 prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0]
2605 prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0]
2618 (endline, _, endpos) = CloseExpression(clean_lines, linenum, pos)
2641 (prevline, prevlinenum) = GetPreviousNonBlankLine(clean_lines, prevlinenum)
2653 def CheckEmptyLoopBody(filename, clean_lines, linenum, error):
2658 clean_lines: A CleansedLines instance containing the file.
2666 line = clean_lines.elided[linenum]
2670 clean_lines, linenum, line.find('('))
2715 def CheckCheck(filename, clean_lines, linenum, error):
2720 clean_lines: A CleansedLines instance containing the file.
2726 raw_lines = clean_lines.raw_lines
2736 line = clean_lines.elided[linenum] # get rid of comments and strings
2748 def CheckAltTokens(filename, clean_lines, linenum, error):
2753 clean_lines: A CleansedLines instance containing the file.
2757 line = clean_lines.elided[linenum]
2802 def CheckStyle(filename, clean_lines, linenum, file_extension, nesting_state,
2812 clean_lines: A CleansedLines instance containing the file.
2820 raw_lines = clean_lines.raw_lines
2840 cleansed_line = clean_lines.elided[linenum]
2892 (GetPreviousNonBlankLine(clean_lines, linenum)[0].find('for') == -1 or
2893 GetPreviousNonBlankLine(clean_lines, linenum)[0].find(';') != -1) and
2902 CheckBraces(filename, clean_lines, linenum, error)
2903 CheckEmptyLoopBody(filename, clean_lines, linenum, error)
2904 CheckAccess(filename, clean_lines, linenum, nesting_state, error)
2905 CheckSpacing(filename, clean_lines, linenum, nesting_state, error)
2906 CheckCheck(filename, clean_lines, linenum, error)
2907 CheckAltTokens(filename, clean_lines, linenum, error)
2910 CheckSectionSpacing(filename, clean_lines, classinfo, linenum, error)
3028 def CheckIncludeLine(filename, clean_lines, linenum, include_state, error):
3037 clean_lines: A CleansedLines instance containing the file.
3044 line = clean_lines.lines[linenum]
3153 def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state,
3162 clean_lines: A CleansedLines instance containing the file.
3170 line = clean_lines.elided[linenum]
3176 CheckIncludeLine(filename, clean_lines, linenum, include_state, error)
3182 if linenum + 1 < clean_lines.NumLines():
3183 extended_line = line + clean_lines.elided[linenum + 1]
3241 clean_lines.elided[linenum - 1])):
3247 CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3255 if CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3260 CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3433 if match and linenum + 1 < clean_lines.NumLines():
3434 next_line = clean_lines.elided[linenum + 1]
3667 def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error,
3679 clean_lines: A CleansedLines instance containing the file.
3688 for linenum in xrange(clean_lines.NumLines()):
3689 line = clean_lines.elided[linenum]
3763 def CheckMakePairUsesDeduction(filename, clean_lines, linenum, error):
3771 clean_lines: A CleansedLines instance containing the file.
3775 raw = clean_lines.raw_lines
3785 def ProcessLine(filename, file_extension, clean_lines, line,
3793 clean_lines: An array of strings, each representing a line of the file,
3804 arguments: filename, clean_lines, line, error
3806 raw_lines = clean_lines.raw_lines
3808 nesting_state.Update(filename, clean_lines, line, error)
3811 CheckForFunctionLengths(filename, clean_lines, line, function_state, error)
3812 CheckForMultilineCommentsAndStrings(filename, clean_lines, line, error)
3813 CheckStyle(filename, clean_lines, line, file_extension, nesting_state, error)
3814 CheckLanguage(filename, clean_lines, line, file_extension, include_state,
3816 CheckForNonStandardConstructs(filename, clean_lines, line,
3818 CheckPosixThreading(filename, clean_lines, line, error)
3819 CheckInvalidIncrement(filename, clean_lines, line, error)
3820 CheckMakePairUsesDeduction(filename, clean_lines, line, error)
3822 check_fn(filename, clean_lines, line, error)
3837 arguments: filename, clean_lines, line, error
3854 clean_lines = CleansedLines(lines)
3855 for line in xrange(clean_lines.NumLines()):
3856 ProcessLine(filename, file_extension, clean_lines, line,
3861 CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error)
3880 arguments: filename, clean_lines, line, error