wpiformat/wpiformat/cpplint.py
def ProcessFileData(filename, is_header, lines, error):
  """Performs lint checks and reports any errors to the given error function.

  Args:
    filename: Filename of the file that is being processed.
    is_header: Whether file is header.
    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:
           filename, line number, error level, and message
  """
  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()
  nesting_state = NestingState()

  ResetNolintSuppressions()

  ProcessGlobalSuppresions(lines)
  RemoveMultiLineComments(filename, lines, error)
  clean_lines = CleansedLines(lines)

  for line in range(clean_lines.NumLines()):
    ProcessLine(filename, is_header, clean_lines, line,
                include_state, function_state, nesting_state, error)

  CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error)

  # We check here rather than inside ProcessLine so that we see raw
  # lines rather than "cleaned" lines.
  CheckForBadCharacters(filename, lines, error)
Performs lint checks and reports any errors to the given error function.

  Args:
    filename: Filename of the file that is being processed.
    is_header: Whether file is header.
    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:
           filename, line number, error level, and message
  
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 ProcessFileData(filename, is_header, lines, error):
  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()
  nesting_state = NestingState()
  ResetNolintSuppressions()
  ProcessGlobalSuppresions(lines)
  RemoveMultiLineComments(filename, lines, error)
  clean_lines = CleansedLines(lines)
  for line in range(clean_lines.NumLines()):
    ProcessLine(filename, is_header, clean_lines, line,
                include_state, function_state, nesting_state, error)
  CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error)
  CheckForBadCharacters(filename, lines, error)
def ProcessFileData ( filename , is_header , lines , error ) : 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 ( ) nesting_state = NestingState ( ) ResetNolintSuppressions ( ) ProcessGlobalSuppresions ( lines ) RemoveMultiLineComments ( filename , lines , error ) clean_lines = CleansedLines ( lines ) for line in range ( clean_lines . NumLines ( ) ) : ProcessLine ( filename , is_header , clean_lines , line , include_state , function_state , nesting_state , error ) CheckForIncludeWhatYouUse ( filename , clean_lines , include_state , error ) CheckForBadCharacters ( filename , 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.
    is_header: Whether file is header.
    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:
           filename, line number, error level, and message
  """ # We check here rather than inside ProcessLine 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 .
is_header
Whether file is header.
Whether file is header .
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:
filename, line number, error level, and message
A callable to which errors are reported which takes 4 arguments : filename line number error level and message