Lines Matching refs:clean_lines
1054 def CloseExpression(clean_lines, linenum, pos): argument
1072 line = clean_lines.elided[linenum]
1075 return (line, clean_lines.NumLines(), -1)
1086 while linenum < clean_lines.NumLines() - 1:
1088 line = clean_lines.elided[linenum]
1096 return (line, clean_lines.NumLines(), -1)
1247 def CheckForMultilineCommentsAndStrings(filename, clean_lines, linenum, error): argument
1264 line = clean_lines.elided[linenum]
1302 def CheckPosixThreading(filename, clean_lines, linenum, error): argument
1317 line = clean_lines.elided[linenum]
1335 def CheckInvalidIncrement(filename, clean_lines, linenum, error): argument
1351 line = clean_lines.elided[linenum]
1365 def CheckBegin(self, filename, clean_lines, linenum, error): argument
1380 def CheckEnd(self, filename, clean_lines, linenum, error): argument
1397 def __init__(self, name, class_or_struct, clean_lines, linenum): argument
1414 for i in range(linenum, clean_lines.NumLines()):
1415 line = clean_lines.elided[i]
1421 def CheckBegin(self, filename, clean_lines, linenum, error): argument
1423 if Search('(^|[^:]):($|[^:])', clean_lines.elided[linenum]):
1435 def CheckEnd(self, filename, clean_lines, linenum, error): argument
1437 line = clean_lines.raw_lines[linenum]
1584 def Update(self, filename, clean_lines, linenum, error): argument
1593 line = clean_lines.elided[linenum]
1670 clean_lines, linenum))
1676 self.stack[-1].CheckBegin(filename, clean_lines, linenum, error)
1716 self.stack[-1].CheckEnd(filename, clean_lines, linenum, error)
1750 def CheckForNonStandardConstructs(filename, clean_lines, linenum, argument
1780 line = clean_lines.lines[linenum]
1798 line = clean_lines.elided[linenum]
1939 def CheckForFunctionLengths(filename, clean_lines, linenum, argument
1962 lines = clean_lines.lines
1964 raw = clean_lines.raw_lines
1981 for start_linenum in xrange(linenum, clean_lines.NumLines()):
2041 def CheckAccess(filename, clean_lines, linenum, nesting_state, error): argument
2052 line = clean_lines.elided[linenum] # get rid of comments and strings
2072 def FindNextMatchingAngleBracket(clean_lines, linenum, init_suffix): argument
2132 if linenum >= len(clean_lines.elided):
2134 line = clean_lines.elided[linenum]
2142 def FindPreviousMatchingAngleBracket(clean_lines, linenum, init_prefix): argument
2193 line = clean_lines.elided[linenum]
2199 def CheckSpacing(filename, clean_lines, linenum, nesting_state, error): argument
2217 raw = clean_lines.raw_lines
2233 elided = clean_lines.elided
2280 if linenum + 1 < clean_lines.NumLines():
2326 line = clean_lines.elided[linenum] # get rid of comments and strings
2367 not FindNextMatchingAngleBracket(clean_lines, linenum, match.group(1))):
2376 not FindPreviousMatchingAngleBracket(clean_lines, linenum,
2489 def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error): argument
2516 matched = Match(r'\s*(public|protected|private):', clean_lines.lines[linenum])
2526 prev_line = clean_lines.lines[linenum - 1]
2536 if Search(r'\{\s*$', clean_lines.lines[i]):
2544 def GetPreviousNonBlankLine(clean_lines, linenum): argument
2560 prevline = clean_lines.elided[prevlinenum]
2567 def CheckBraces(filename, clean_lines, linenum, error): argument
2577 line = clean_lines.elided[linenum] # get rid of comments and strings
2587 prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0]
2595 prevline = GetPreviousNonBlankLine(clean_lines, linenum)[0]
2608 (endline, _, endpos) = CloseExpression(clean_lines, linenum, pos)
2631 (prevline, prevlinenum) = GetPreviousNonBlankLine(clean_lines, prevlinenum)
2643 def CheckEmptyLoopBody(filename, clean_lines, linenum, error): argument
2656 line = clean_lines.elided[linenum]
2660 clean_lines, linenum, line.find('('))
2705 def CheckCheck(filename, clean_lines, linenum, error): argument
2716 raw_lines = clean_lines.raw_lines
2726 line = clean_lines.elided[linenum] # get rid of comments and strings
2738 def CheckAltTokens(filename, clean_lines, linenum, error): argument
2747 line = clean_lines.elided[linenum]
2792 def CheckStyle(filename, clean_lines, linenum, file_extension, nesting_state, argument
2810 raw_lines = clean_lines.raw_lines
2830 cleansed_line = clean_lines.elided[linenum]
2882 (GetPreviousNonBlankLine(clean_lines, linenum)[0].find('for') == -1 or
2883 GetPreviousNonBlankLine(clean_lines, linenum)[0].find(';') != -1) and
2892 CheckBraces(filename, clean_lines, linenum, error)
2893 CheckEmptyLoopBody(filename, clean_lines, linenum, error)
2894 CheckAccess(filename, clean_lines, linenum, nesting_state, error)
2895 CheckSpacing(filename, clean_lines, linenum, nesting_state, error)
2896 CheckCheck(filename, clean_lines, linenum, error)
2897 CheckAltTokens(filename, clean_lines, linenum, error)
2900 CheckSectionSpacing(filename, clean_lines, classinfo, linenum, error)
3018 def CheckIncludeLine(filename, clean_lines, linenum, include_state, error): argument
3034 line = clean_lines.lines[linenum]
3143 def CheckLanguage(filename, clean_lines, linenum, file_extension, include_state, argument
3160 line = clean_lines.elided[linenum]
3166 CheckIncludeLine(filename, clean_lines, linenum, include_state, error)
3172 if linenum + 1 < clean_lines.NumLines():
3173 extended_line = line + clean_lines.elided[linenum + 1]
3231 clean_lines.elided[linenum - 1])):
3237 CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3245 if CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3250 CheckCStyleCast(filename, linenum, line, clean_lines.raw_lines[linenum],
3423 if match and linenum + 1 < clean_lines.NumLines():
3424 next_line = clean_lines.elided[linenum + 1]
3657 def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error, argument
3678 for linenum in xrange(clean_lines.NumLines()):
3679 line = clean_lines.elided[linenum]
3753 def CheckMakePairUsesDeduction(filename, clean_lines, linenum, error): argument
3765 raw = clean_lines.raw_lines
3775 def ProcessLine(filename, file_extension, clean_lines, line, argument
3796 raw_lines = clean_lines.raw_lines
3798 nesting_state.Update(filename, clean_lines, line, error)
3801 CheckForFunctionLengths(filename, clean_lines, line, function_state, error)
3802 CheckForMultilineCommentsAndStrings(filename, clean_lines, line, error)
3803 CheckStyle(filename, clean_lines, line, file_extension, nesting_state, error)
3804 CheckLanguage(filename, clean_lines, line, file_extension, include_state,
3806 CheckForNonStandardConstructs(filename, clean_lines, line,
3808 CheckPosixThreading(filename, clean_lines, line, error)
3809 CheckInvalidIncrement(filename, clean_lines, line, error)
3810 CheckMakePairUsesDeduction(filename, clean_lines, line, error)
3812 check_fn(filename, clean_lines, line, error)
3844 clean_lines = CleansedLines(lines)
3845 for line in xrange(clean_lines.NumLines()):
3846 ProcessLine(filename, file_extension, clean_lines, line,
3851 CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error)