Tracks current function name and the number of lines in its body.
Definition at line 1186 of file iodaconv_cpplint.py.
◆ __init__()
def iodaconv_cpplint._FunctionState.__init__ |
( |
|
self | ) |
|
◆ Begin()
def iodaconv_cpplint._FunctionState.Begin |
( |
|
self, |
|
|
|
function_name |
|
) |
| |
Start analyzing function body.
Args:
function_name: The name of the function being tracked.
Definition at line 1197 of file iodaconv_cpplint.py.
◆ Check()
def iodaconv_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 1212 of file iodaconv_cpplint.py.
◆ Count()
def iodaconv_cpplint._FunctionState.Count |
( |
|
self | ) |
|
◆ End()
def iodaconv_cpplint._FunctionState.End |
( |
|
self | ) |
|
◆ _NORMAL_TRIGGER
int iodaconv_cpplint._FunctionState._NORMAL_TRIGGER = 250 |
|
staticprivate |
◆ _TEST_TRIGGER
int iodaconv_cpplint._FunctionState._TEST_TRIGGER = 400 |
|
staticprivate |
◆ current_function
iodaconv_cpplint._FunctionState.current_function |
◆ in_a_function
iodaconv_cpplint._FunctionState.in_a_function |
◆ lines_in_function
iodaconv_cpplint._FunctionState.lines_in_function |
The documentation for this class was generated from the following file: