third_party/blink/tools/blinkpy/style/checkers/cpp.py
def _process_lines(filename, file_extension, lines, error, min_confidence):
    """Performs lint checks and reports any errors to the given error function.

    Args:
      filename: Filename of the file that is being processed.
      file_extension: The extension (dot not included) of the file.
      lines: An array of strings, each representing a line of the file, with the
             last element being empty if the file is terminated with a newline.
      error: A callable to which errors are reported, which takes 4 arguments:
    """
    lines = (['// marker so line numbers and indices both start at 1'] + lines
             + ['// marker so line numbers end in a known way'])

    include_state = _IncludeState()
    function_state = _FunctionState(min_confidence)
    class_state = _ClassState()

    check_for_copyright(lines, error)
    remove_multi_line_comments(lines, error)
    clean_lines = CleansedLines(lines)

    if file_extension == 'h':
        check_for_header_guard(filename, clean_lines, error)

    file_state = _FileState(clean_lines, file_extension)
    for line in xrange(clean_lines.num_lines()):
        process_line(filename, file_extension, clean_lines, line,
                     include_state, function_state, class_state, file_state,
                     error)

    check_for_include_what_you_use(filename, clean_lines, include_state, error)

    # We check here rather than inside process_line so that we see raw
    # lines rather than "cleaned" lines.
    check_for_unicode_replacement_characters(lines, error)

    check_for_new_line_at_eof(lines, error)
Performs lint checks and reports any errors to the given error function.

    Args:
      filename: Filename of the file that is being processed.
      file_extension: The extension (dot not included) of the file.
      lines: An array of strings, each representing a line of the file, with the
             last element being empty if the file is terminated with a newline.
      error: A callable to which errors are reported, which takes 4 arguments:
    
Performs lint checks and reports any errors to the given error function.
Performs lint checks and reports any errors to the given error function .
def _process_lines(filename, file_extension, lines, error, min_confidence):
    lines = (['// marker so line numbers and indices both start at 1'] + lines
             + ['// marker so line numbers end in a known way'])
    include_state = _IncludeState()
    function_state = _FunctionState(min_confidence)
    class_state = _ClassState()
    check_for_copyright(lines, error)
    remove_multi_line_comments(lines, error)
    clean_lines = CleansedLines(lines)
    if file_extension == 'h':
        check_for_header_guard(filename, clean_lines, error)
    file_state = _FileState(clean_lines, file_extension)
    for line in xrange(clean_lines.num_lines()):
        process_line(filename, file_extension, clean_lines, line,
                     include_state, function_state, class_state, file_state,
                     error)
    check_for_include_what_you_use(filename, clean_lines, include_state, error)
    check_for_unicode_replacement_characters(lines, error)
    check_for_new_line_at_eof(lines, error)
def _process_lines ( filename , file_extension , lines , error , min_confidence ) : lines = ( [ '// marker so line numbers and indices both start at 1' ] + lines + [ '// marker so line numbers end in a known way' ] ) include_state = _IncludeState ( ) function_state = _FunctionState ( min_confidence ) class_state = _ClassState ( ) check_for_copyright ( lines , error ) remove_multi_line_comments ( lines , error ) clean_lines = CleansedLines ( lines ) if file_extension == 'h' : check_for_header_guard ( filename , clean_lines , error ) file_state = _FileState ( clean_lines , file_extension ) for line in xrange ( clean_lines . num_lines ( ) ) : process_line ( filename , file_extension , clean_lines , line , include_state , function_state , class_state , file_state , error ) check_for_include_what_you_use ( filename , clean_lines , include_state , error ) check_for_unicode_replacement_characters ( lines , error ) check_for_new_line_at_eof ( lines , error )
Performs lint checks and reports any errors to the given error function.
Performs lint checks and reports any errors to the given error function .
"""Performs lint checks and reports any errors to the given error function.

    Args:
      filename: Filename of the file that is being processed.
      file_extension: The extension (dot not included) of the file.
      lines: An array of strings, each representing a line of the file, with the
             last element being empty if the file is terminated with a newline.
      error: A callable to which errors are reported, which takes 4 arguments:
    """ # We check here rather than inside process_line so that we see raw # lines rather than "cleaned" lines.
filename
Filename of the file that is being processed.
Filename of the file that is being processed .
file_extension
The extension (dot not included) of the file.
The extension ( dot not included ) of the file .
lines
An array of strings, each representing a line of the file, with the
last element being empty if the file is terminated with a newline.
An array of strings each representing a line of the file with the last element being empty if the file is terminated with a newline .
error
A callable to which errors are reported, which takes 4 arguments.
A callable to which errors are reported which takes 4 arguments .
min_confidence