SABER
saber_cpplint._ClassInfo Class Reference
Inheritance diagram for saber_cpplint._ClassInfo:
Collaboration diagram for saber_cpplint._ClassInfo:

Public Member Functions

def __init__ (self, name, class_or_struct, clean_lines, linenum)
 
def CheckBegin (self, filename, clean_lines, linenum, error)
 
def CheckEnd (self, filename, clean_lines, linenum, error)
 
- Public Member Functions inherited from saber_cpplint._BlockInfo
def __init__ (self, linenum, seen_open_brace)
 
def IsBlockInfo (self)
 

Public Attributes

 name
 
 is_derived
 
 check_namespace_indentation
 
 access
 
 is_struct
 
 class_indent
 
 last_line
 
- Public Attributes inherited from saber_cpplint._BlockInfo
 starting_linenum
 
 seen_open_brace
 
 open_parentheses
 
 inline_asm
 
 check_namespace_indentation
 

Detailed Description

Stores information about a class.

Definition at line 2371 of file saber_cpplint.py.

Constructor & Destructor Documentation

◆ __init__()

def saber_cpplint._ClassInfo.__init__ (   self,
  name,
  class_or_struct,
  clean_lines,
  linenum 
)

Definition at line 2374 of file saber_cpplint.py.

Member Function Documentation

◆ CheckBegin()

def saber_cpplint._ClassInfo.CheckBegin (   self,
  filename,
  clean_lines,
  linenum,
  error 
)
Run checks that applies to text up to the opening brace.

This is mostly for checking the text after the class identifier
and the "{", usually where the base class is specified.  For other
blocks, there isn't much to check, so we always pass.

Args:
  filename: The name of the current file.
  clean_lines: A CleansedLines instance containing the file.
  linenum: The number of the line to check.
  error: The function to call with any errors found.

Reimplemented from saber_cpplint._BlockInfo.

Definition at line 2404 of file saber_cpplint.py.

Here is the call graph for this function:

◆ CheckEnd()

def saber_cpplint._ClassInfo.CheckEnd (   self,
  filename,
  clean_lines,
  linenum,
  error 
)
Run checks that applies to text after the closing brace.

This is mostly used for checking end of namespace comments.

Args:
  filename: The name of the current file.
  clean_lines: A CleansedLines instance containing the file.
  linenum: The number of the line to check.
  error: The function to call with any errors found.

Reimplemented from saber_cpplint._BlockInfo.

Definition at line 2409 of file saber_cpplint.py.

Here is the call graph for this function:

Member Data Documentation

◆ access

saber_cpplint._ClassInfo.access

Definition at line 2380 of file saber_cpplint.py.

◆ check_namespace_indentation

saber_cpplint._ClassInfo.check_namespace_indentation

Definition at line 2378 of file saber_cpplint.py.

◆ class_indent

saber_cpplint._ClassInfo.class_indent

Definition at line 2388 of file saber_cpplint.py.

◆ is_derived

saber_cpplint._ClassInfo.is_derived

Definition at line 2377 of file saber_cpplint.py.

◆ is_struct

saber_cpplint._ClassInfo.is_struct

Definition at line 2381 of file saber_cpplint.py.

◆ last_line

saber_cpplint._ClassInfo.last_line

Definition at line 2395 of file saber_cpplint.py.

◆ name

saber_cpplint._ClassInfo.name

Definition at line 2376 of file saber_cpplint.py.


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