FV3 Bundle
cpplint._FunctionState Class Reference
Inheritance diagram for cpplint._FunctionState:
[legend]
Collaboration diagram for cpplint._FunctionState:
[legend]

Public Member Functions

def __init__ (self)
 
def Begin (self, function_name)
 
def Count (self)
 
def Check (self, error, filename, linenum)
 
def End (self)
 
def __init__ (self)
 
def Begin (self, function_name)
 
def Count (self)
 
def Check (self, error, filename, linenum)
 
def End (self)
 
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
 

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 1186 of file ioda/tools/cpplint.py.

Constructor & Destructor Documentation

◆ __init__() [1/3]

def cpplint._FunctionState.__init__ (   self)

Definition at line 1192 of file ioda/tools/cpplint.py.

Here is the caller graph for this function:

◆ __init__() [2/3]

def cpplint._FunctionState.__init__ (   self)

Definition at line 1192 of file oops/tools/cpplint.py.

Here is the call graph for this function:

◆ __init__() [3/3]

def cpplint._FunctionState.__init__ (   self)

Definition at line 1192 of file ufo/tools/cpplint.py.

Here is the call graph for this function:

Member Function Documentation

◆ Begin() [1/3]

def 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 ioda/tools/cpplint.py.

Here is the caller graph for this function:

◆ Begin() [2/3]

def 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 oops/tools/cpplint.py.

Here is the call graph for this function:

◆ Begin() [3/3]

def 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 ufo/tools/cpplint.py.

Here is the call graph for this function:

◆ Check() [1/3]

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 1212 of file ufo/tools/cpplint.py.

Here is the call graph for this function:

◆ Check() [2/3]

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 1212 of file ioda/tools/cpplint.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Check() [3/3]

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 1212 of file oops/tools/cpplint.py.

Here is the call graph for this function:

◆ Count() [1/3]

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

Definition at line 1207 of file ufo/tools/cpplint.py.

Here is the call graph for this function:

◆ Count() [2/3]

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

Definition at line 1207 of file ioda/tools/cpplint.py.

Here is the caller graph for this function:

◆ Count() [3/3]

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

Definition at line 1207 of file oops/tools/cpplint.py.

Here is the call graph for this function:

◆ End() [1/3]

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

Definition at line 1240 of file ufo/tools/cpplint.py.

Here is the call graph for this function:

◆ End() [2/3]

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

Definition at line 1240 of file ioda/tools/cpplint.py.

Here is the caller graph for this function:

◆ End() [3/3]

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

Definition at line 1240 of file oops/tools/cpplint.py.

Here is the call graph for this function:

Member Data Documentation

◆ _NORMAL_TRIGGER

int cpplint._FunctionState._NORMAL_TRIGGER = 250
staticprivate

Definition at line 1189 of file ioda/tools/cpplint.py.

◆ _TEST_TRIGGER

int cpplint._FunctionState._TEST_TRIGGER = 400
staticprivate

Definition at line 1190 of file ioda/tools/cpplint.py.

◆ current_function

cpplint._FunctionState.current_function

Definition at line 1195 of file ioda/tools/cpplint.py.

◆ in_a_function

cpplint._FunctionState.in_a_function

Definition at line 1193 of file ioda/tools/cpplint.py.

◆ lines_in_function

cpplint._FunctionState.lines_in_function

Definition at line 1194 of file ioda/tools/cpplint.py.


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