wpiformat/wpiformat/cpplint.py
def CheckIncludeLine(filename, clean_lines, linenum, 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.
    clean_lines: A CleansedLines instance containing the file.
    linenum: 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.
  """
  fileinfo = FileInfo(filename)
  line = clean_lines.lines[linenum]

  # we shouldn't include a file more than once. actually, there are a
  # handful of instances where doing so is okay, but in general it's
  # not.
  match = _RE_PATTERN_INCLUDE.search(line)
  if match:
    include = match.group(2)
    is_system = (match.group(1) == '<')

    if not _THIRD_PARTY_HEADERS_PATTERN.match(include):
      include_state.include_list[-1].append((include, linenum))
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.
    clean_lines: A CleansedLines instance containing the file.
    linenum: 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 CheckIncludeLine(filename, clean_lines, linenum, include_state, error):
  fileinfo = FileInfo(filename)
  line = clean_lines.lines[linenum]
  match = _RE_PATTERN_INCLUDE.search(line)
  if match:
    include = match.group(2)
    is_system = (match.group(1) == '<')
    if not _THIRD_PARTY_HEADERS_PATTERN.match(include):
      include_state.include_list[-1].append((include, linenum))
def CheckIncludeLine ( filename , clean_lines , linenum , include_state , error ) : fileinfo = FileInfo ( filename ) line = clean_lines . lines [ linenum ] match = _RE_PATTERN_INCLUDE . search ( line ) if match : include = match . group ( 2 ) is_system = ( match . group ( 1 ) == '<' ) if not _THIRD_PARTY_HEADERS_PATTERN . match ( include ) : include_state . include_list [ - 1 ] . append ( ( include , linenum ) )
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.
    clean_lines: A CleansedLines instance containing the file.
    linenum: 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.
  """ # we shouldn't include a file more than once. actually, there are a # handful of instances where doing so is okay, but in general it's # not.
filename
The name of the current file.
The name of the current file .
clean_lines
A CleansedLines instance containing the file.
A CleansedLines instance containing the file .
linenum
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 .