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

Public Member Functions

def __init__ (self)
 
def Begin (self, function_name)
 
def Count (self)
 
def Check (self, error, filename, linenum)
 
def End (self)
 

Public Attributes

 in_a_function
 
 lines_in_function
 
 current_function
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

def cpplint._FunctionState.__init__ (   self)

Member Function Documentation

◆ Begin()

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

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

◆ Check()

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.

◆ Count()

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

◆ End()

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

Member Data Documentation

◆ current_function

cpplint._FunctionState.current_function

◆ in_a_function

cpplint._FunctionState.in_a_function

◆ lines_in_function

cpplint._FunctionState.lines_in_function

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