Public Member Functions | Public Attributes | Static Private Attributes | List of all members
cpplint._FunctionState Class Reference
Inheritance diagram for cpplint._FunctionState:
Inheritance graph
[legend]

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
 

Detailed Description

Tracks current function name and the number of lines in its body.

Definition at line 802 of file cpplint.py.

Constructor & Destructor Documentation

def cpplint._FunctionState.__init__ (   self)

Definition at line 808 of file cpplint.py.

Member Function Documentation

def cpplint._FunctionState.Begin (   self,
  function_name 
)
Start analyzing function body.

Args:
  function_name: The name of the function being tracked.

Definition at line 813 of file cpplint.py.

def 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 828 of file cpplint.py.

def cpplint._FunctionState.Count (   self)
Count line in current function body.

Definition at line 823 of file cpplint.py.

def cpplint._FunctionState.End (   self)
Stop analyzing function body.

Definition at line 853 of file cpplint.py.

Member Data Documentation

int cpplint._FunctionState._NORMAL_TRIGGER = 250
staticprivate

Definition at line 805 of file cpplint.py.

int cpplint._FunctionState._TEST_TRIGGER = 400
staticprivate

Definition at line 806 of file cpplint.py.

cpplint._FunctionState.current_function

Definition at line 811 of file cpplint.py.

cpplint._FunctionState.in_a_function

Definition at line 809 of file cpplint.py.

cpplint._FunctionState.lines_in_function

Definition at line 810 of file cpplint.py.


The documentation for this class was generated from the following file:


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:27