Public Member Functions | |
def | __init__ (self) |
def | Begin (self, function_name) |
def | Check (self, error, filename, linenum) |
def | Count (self) |
def | End (self) |
Public Attributes | |
current_function | |
in_a_function | |
lines_in_function | |
Static Private Attributes | |
int | _NORMAL_TRIGGER = 250 |
int | _TEST_TRIGGER = 400 |
Tracks current function name and the number of lines in its body.
Definition at line 1036 of file cpplint.py.
def roslint.cpplint._FunctionState.__init__ | ( | self | ) |
Definition at line 1042 of file cpplint.py.
def roslint.cpplint._FunctionState.Begin | ( | self, | |
function_name | |||
) |
Start analyzing function body. Args: function_name: The name of the function being tracked.
Definition at line 1047 of file cpplint.py.
def roslint.cpplint._FunctionState.Check | ( | self, | |
error, | |||
filename, | |||
linenum | |||
) |
Report if too many lines in function body. Args: error: The function to call with any errors found. filename: The name of the current file. linenum: The number of the line to check.
Definition at line 1062 of file cpplint.py.
def roslint.cpplint._FunctionState.Count | ( | self | ) |
Count line in current function body.
Definition at line 1057 of file cpplint.py.
def roslint.cpplint._FunctionState.End | ( | self | ) |
Stop analyzing function body.
Definition at line 1090 of file cpplint.py.
|
staticprivate |
Definition at line 1039 of file cpplint.py.
|
staticprivate |
Definition at line 1040 of file cpplint.py.
roslint.cpplint._FunctionState.current_function |
Definition at line 1045 of file cpplint.py.
roslint.cpplint._FunctionState.in_a_function |
Definition at line 1043 of file cpplint.py.
roslint.cpplint._FunctionState.lines_in_function |
Definition at line 1044 of file cpplint.py.