third_party/blink/tools/blinkpy/style/checkers/cpp.py
def check_style(clean_lines, line_number, file_state, error):
    """Checks rules from the 'C++ style rules' section of cppguide.html.

    Most of these rules are hard to test (naming, comment style), but we
    do what we can.  In particular we check for 4-space indents, line lengths,
    tab usage, spaces inside code, etc.

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      file_state: A _FileState instance which maintains information about
                  the state of things in the file.
      error: The function to call with any errors found.
    """

    # Don't use "elided" lines here, otherwise we can't check commented lines.
    # Don't want to use "raw" either, because we don't want to check inside C++11
    # raw strings,
    raw_lines = clean_lines.lines_without_raw_strings
    line = raw_lines[line_number]

    # Some more style checks
    check_ctype_functions(clean_lines, line_number, file_state, error)
    check_check(clean_lines, line_number, error)
Checks rules from the 'C++ style rules' section of cppguide.html.

    Most of these rules are hard to test (naming, comment style), but we
    do what we can.  In particular we check for 4-space indents, line lengths,
    tab usage, spaces inside code, etc.

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      file_state: A _FileState instance which maintains information about
                  the state of things in the file.
      error: The function to call with any errors found.
    
Checks rules from the 'C++ style rules' section of cppguide.html.
Most of these rules are hard to test (naming, comment style), but we
do what we can.  In particular we check for 4-space indents, line lengths,
tab usage, spaces inside code, etc.
Checks rules from the ' C ++ style rules ' section of cppguide . html . Most of these rules are hard to test ( naming comment style ) but we do what we can . In particular we check for 4 - space indents line lengths tab usage spaces inside code etc .
def check_style(clean_lines, line_number, file_state, error):
    raw_lines = clean_lines.lines_without_raw_strings
    line = raw_lines[line_number]
    check_ctype_functions(clean_lines, line_number, file_state, error)
    check_check(clean_lines, line_number, error)
def check_style ( clean_lines , line_number , file_state , error ) : raw_lines = clean_lines . lines_without_raw_strings line = raw_lines [ line_number ] check_ctype_functions ( clean_lines , line_number , file_state , error ) check_check ( clean_lines , line_number , error )
Checks rules from the 'C++ style rules' section of cppguide.html.
Checks rules from the ' C ++ style rules ' section of cppguide . html .
"""Checks rules from the 'C++ style rules' section of cppguide.html.

    Most of these rules are hard to test (naming, comment style), but we
    do what we can.  In particular we check for 4-space indents, line lengths,
    tab usage, spaces inside code, etc.

    Args:
      clean_lines: A CleansedLines instance containing the file.
      line_number: The number of the line to check.
      file_state: A _FileState instance which maintains information about
                  the state of things in the file.
      error: The function to call with any errors found.
    """ # Don't use "elided" lines here, otherwise we can't check commented lines. # Don't want to use "raw" either, because we don't want to check inside C++11 # raw strings, # Some more style checks
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 .
file_state
A _FileState instance which maintains information about
the state of things in the file.
A _FileState instance which maintains information about the state of things in the file .
error
The function to call with any errors found.
The function to call with any errors found .