third_party/blink/tools/blinkpy/style/checkers/cpp.py
def check_include_line(filename, file_extension, clean_lines, line_number,
                       include_state, error):
    """Check rules that are applicable to #include lines.

    Strings on #include lines are NOT removed from elided line, to make
    certain tasks easier. However, to prevent false positives, checks
    applicable to #include lines in CheckLanguage must be put here.

    Args:
      filename: The name of the current file.
      file_extension: The current file extension, without the leading dot.
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      include_state: An _IncludeState instance in which the headers are inserted.
      error: The function to call with any errors found.
    """
    # FIXME: For readability or as a possible optimization, consider
    #        exiting early here by checking whether the "build/include"
    #        category should be checked for the given filename.  This
    #        may involve having the error handler classes expose a
    #        should_check() method, in addition to the usual __call__
    #        method.
    line = clean_lines.lines[line_number]

    matched = _RE_PATTERN_INCLUDE.search(line)
    if not matched:
        return

    include = matched.group(2)
    is_system = (matched.group(1) == '<')

    duplicate_header = include in include_state
    if not duplicate_header:
        include_state[include] = line_number
Check rules that are applicable to #include lines.

    Strings on #include lines are NOT removed from elided line, to make
    certain tasks easier. However, to prevent false positives, checks
    applicable to #include lines in CheckLanguage must be put here.

    Args:
      filename: The name of the current file.
      file_extension: The current file extension, without the leading dot.
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      include_state: An _IncludeState instance in which the headers are inserted.
      error: The function to call with any errors found.
    
Check rules that are applicable to #include lines.
Strings on #include lines are NOT removed from elided line, to make
certain tasks easier. However, to prevent false positives, checks
applicable to #include lines in CheckLanguage must be put here.
Check rules that are applicable to #include lines . Strings on #include lines are NOT removed from elided line to make certain tasks easier . However to prevent false positives checks applicable to #include lines in CheckLanguage must be put here .
def check_include_line(filename, file_extension, clean_lines, line_number,
                       include_state, error):
    line = clean_lines.lines[line_number]
    matched = _RE_PATTERN_INCLUDE.search(line)
    if not matched:
        return
    include = matched.group(2)
    is_system = (matched.group(1) == '<')
    duplicate_header = include in include_state
    if not duplicate_header:
        include_state[include] = line_number
def check_include_line ( filename , file_extension , clean_lines , line_number , include_state , error ) : line = clean_lines . lines [ line_number ] matched = _RE_PATTERN_INCLUDE . search ( line ) if not matched : return include = matched . group ( 2 ) is_system = ( matched . group ( 1 ) == '<' ) duplicate_header = include in include_state if not duplicate_header : include_state [ include ] = line_number
Check rules that are applicable to #include lines.
Check rules that are applicable to #include lines .
"""Check rules that are applicable to #include lines.

    Strings on #include lines are NOT removed from elided line, to make
    certain tasks easier. However, to prevent false positives, checks
    applicable to #include lines in CheckLanguage must be put here.

    Args:
      filename: The name of the current file.
      file_extension: The current file extension, without the leading dot.
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      include_state: An _IncludeState instance in which the headers are inserted.
      error: The function to call with any errors found.
    """ # FIXME: For readability or as a possible optimization, consider #        exiting early here by checking whether the "build/include" #        category should be checked for the given filename.  This #        may involve having the error handler classes expose a #        should_check() method, in addition to the usual __call__ #        method.
filename
The name of the current file.
The name of the current file .
file_extension
The current file extension, without the leading dot.
The current file extension without the leading dot .
clean_lines
A CleansedLines instance containing the file.
A CleansedLines instance containing the file .
line_number
The number of the line to check.
The number of the line to check .
include_state
An _IncludeState instance in which the headers are inserted.
An _IncludeState instance in which the headers are inserted .
error
The function to call with any errors found.
The function to call with any errors found .