Lines Matching refs:clean_lines

1087 def CloseExpression(clean_lines, linenum, pos):  argument
1105 line = clean_lines.elided[linenum]
1108 return (line, clean_lines.NumLines(), -1)
1119 while linenum < clean_lines.NumLines() - 1:
1121 line = clean_lines.elided[linenum]
1129 return (line, clean_lines.NumLines(), -1)
1280 def CheckForMultilineCommentsAndStrings(filename, clean_lines, linenum, error): argument
1297 line = clean_lines.elided[linenum]
1335 def CheckPosixThreading(filename, clean_lines, linenum, error): argument
1350 line = clean_lines.elided[linenum]
1368 def CheckInvalidIncrement(filename, clean_lines, linenum, error): argument
1384 line = clean_lines.elided[linenum]
1398 def CheckBegin(self, filename, clean_lines, linenum, error): argument
1413 def CheckEnd(self, filename, clean_lines, linenum, error): argument
1430 def __init__(self, name, class_or_struct, clean_lines, linenum): argument
1447 for i in range(linenum, clean_lines.NumLines()):
1448 line = clean_lines.elided[i]
1454 def CheckBegin(self, filename, clean_lines, linenum, error): argument
1456 if Search('(^|[^:]):($|[^:])', clean_lines.elided[linenum]):
1468 def CheckEnd(self, filename, clean_lines, linenum, error): argument
1470 line = clean_lines.raw_lines[linenum]
1617 def Update(self, filename, clean_lines, linenum, error): argument
1626 line = clean_lines.elided[linenum]
1703 clean_lines, linenum))
1709 self.stack[-1].CheckBegin(filename, clean_lines, linenum, error)
1749 self.stack[-1].CheckEnd(filename, clean_lines, linenum, error)
1783 def CheckForNonStandardConstructs(filename, clean_lines, linenum, argument
1813 line = clean_lines.lines[linenum]
1831 line = clean_lines.elided[linenum]
1975 def CheckForFunctionLengths(filename, clean_lines, linenum, argument
1998 lines = clean_lines.lines
2000 raw = clean_lines.raw_lines
2017 for start_linenum in xrange(linenum, clean_lines.NumLines()):
2077 def CheckAccess(filename, clean_lines, linenum, nesting_state, error): argument
2088 line = clean_lines.elided[linenum] # get rid of comments and strings
2108 def FindNextMatchingAngleBracket(clean_lines, linenum, init_suffix): argument
2168 if linenum >= len(clean_lines.elided):
2170 line = clean_lines.elided[linenum]
2178 def FindPreviousMatchingAngleBracket(clean_lines, linenum, init_prefix): argument
2229 line = clean_lines.elided[linenum]
2235 def CheckSpacing(filename, clean_lines, linenum, nesting_state, error): argument
2253 raw = clean_lines.raw_lines
2269 elided = clean_lines.elided
2316 if linenum + 1 < clean_lines.NumLines():
2362 line = clean_lines.elided[linenum] # get rid of comments and strings
2403 not FindNextMatchingAngleBracket(clean_lines, linenum, match.group(1))):
2412 not FindPreviousMatchingAngleBracket(clean_lines, linenum,
2525 def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error): argument
2552 matched = Match(r'\s*(public|protected|private):', clean_lines.lines[linenum])
2562 prev_line = clean_lines.lines[linenum - 1]
2572 if Search(r'\{\s*$', clean_lines.lines[i]):
2580 def GetPreviousNonBlankLine(clean_lines, linenum): argument
2596 prevline = clean_lines.elided[prevlinenum]
2603 def CheckBraces(filename, clean_lines, linenum, error): argument
2613 line = clean_lines.elided[linenum] # get rid of comments and strings
2623 prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0]
2631 prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0]
2644 (endline, _, endpos) = CloseExpression(clean_lines, linenum, pos)
2667 (prevline, prevlinenum) = GetPreviousNonBlankLine(clean_lines, prevlinenum)
2679 def CheckEmptyLoopBody(filename, clean_lines, linenum, error): argument
2692 line = clean_lines.elided[linenum]
2696 clean_lines, linenum, line.find('('))
2741 def CheckCheck(filename, clean_lines, linenum, error): argument
2752 raw_lines = clean_lines.raw_lines
2762 line = clean_lines.elided[linenum] # get rid of comments and strings
2774 def CheckAltTokens(filename, clean_lines, linenum, error): argument
2783 line = clean_lines.elided[linenum]
2828 def CheckStyle(filename, clean_lines, linenum, file_extension, nesting_state, argument
2846 raw_lines = clean_lines.raw_lines
2866 cleansed_line = clean_lines.elided[linenum]
2918 (GetPreviousNonBlankLine(clean_lines, linenum)[0].find('for') == -1 or
2919 GetPreviousNonBlankLine(clean_lines, linenum)[0].find(';') != -1) and
2928 CheckBraces(filename, clean_lines, linenum, error)
2929 CheckEmptyLoopBody(filename, clean_lines, linenum, error)
2930 CheckAccess(filename, clean_lines, linenum, nesting_state, error)
2931 CheckSpacing(filename, clean_lines, linenum, nesting_state, error)
2932 CheckCheck(filename, clean_lines, linenum, error)
2933 CheckAltTokens(filename, clean_lines, linenum, error)
2936 CheckSectionSpacing(filename, clean_lines, classinfo, linenum, error)
3054 def CheckIncludeLine(filename, clean_lines, linenum, include_state, error): argument
3070 line = clean_lines.lines[linenum]
3179 def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state, argument
3196 line = clean_lines.elided[linenum]
3202 CheckIncludeLine(filename, clean_lines, linenum, include_state, error)
3208 if linenum + 1 < clean_lines.NumLines():
3209 extended_line = line + clean_lines.elided[linenum + 1]
3274 clean_lines.elided[linenum - 1])):
3280 CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3288 if CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3293 CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3466 if match and linenum + 1 < clean_lines.NumLines():
3467 next_line = clean_lines.elided[linenum + 1]
3700 def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error, argument
3721 for linenum in xrange(clean_lines.NumLines()):
3722 line = clean_lines.elided[linenum]
3796 def CheckMakePairUsesDeduction(filename, clean_lines, linenum, error): argument
3808 raw = clean_lines.raw_lines
3818 def ProcessLine(filename, file_extension, clean_lines, line, argument
3839 raw_lines = clean_lines.raw_lines
3841 nesting_state.Update(filename, clean_lines, line, error)
3844 CheckForFunctionLengths(filename, clean_lines, line, function_state, error)
3845 CheckForMultilineCommentsAndStrings(filename, clean_lines, line, error)
3846 CheckStyle(filename, clean_lines, line, file_extension, nesting_state, error)
3847 CheckLanguage(filename, clean_lines, line, file_extension, include_state,
3849 CheckForNonStandardConstructs(filename, clean_lines, line,
3851 CheckPosixThreading(filename, clean_lines, line, error)
3852 CheckInvalidIncrement(filename, clean_lines, line, error)
3853 CheckMakePairUsesDeduction(filename, clean_lines, line, error)
3855 check_fn(filename, clean_lines, line, error)
3887 clean_lines = CleansedLines(lines)
3888 for line in xrange(clean_lines.NumLines()):
3889 ProcessLine(filename, file_extension, clean_lines, line,
3894 CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error)