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

Public Member Functions

def __init__ (self, linenum, seen_open_brace)
 
def CheckBegin (self, filename, clean_lines, linenum, error)
 
def CheckEnd (self, filename, clean_lines, linenum, error)
 
def IsBlockInfo (self)
 
def __init__ (self, linenum, seen_open_brace)
 
def CheckBegin (self, filename, clean_lines, linenum, error)
 
def CheckEnd (self, filename, clean_lines, linenum, error)
 
def IsBlockInfo (self)
 
def __init__ (self, linenum, seen_open_brace)
 
def CheckBegin (self, filename, clean_lines, linenum, error)
 
def CheckEnd (self, filename, clean_lines, linenum, error)
 
def IsBlockInfo (self)
 

Public Attributes

 starting_linenum
 
 seen_open_brace
 
 open_parentheses
 
 inline_asm
 
 check_namespace_indentation
 

Private Attributes

 __class__
 

Detailed Description

Stores information about a generic block of code.

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

Constructor & Destructor Documentation

◆ __init__() [1/3]

def cpplint._BlockInfo.__init__ (   self,
  linenum,
  seen_open_brace 
)

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

Here is the caller graph for this function:

◆ __init__() [2/3]

def cpplint._BlockInfo.__init__ (   self,
  linenum,
  seen_open_brace 
)

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

Here is the call graph for this function:

◆ __init__() [3/3]

def cpplint._BlockInfo.__init__ (   self,
  linenum,
  seen_open_brace 
)

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

Here is the call graph for this function:

Member Function Documentation

◆ CheckBegin() [1/3]

def cpplint._BlockInfo.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.

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

Here is the caller graph for this function:

◆ CheckBegin() [2/3]

def cpplint._BlockInfo.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.

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

Here is the call graph for this function:

◆ CheckBegin() [3/3]

def cpplint._BlockInfo.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.

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

Here is the call graph for this function:

◆ CheckEnd() [1/3]

def cpplint._BlockInfo.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.

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

◆ CheckEnd() [2/3]

def cpplint._BlockInfo.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.

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

◆ CheckEnd() [3/3]

def cpplint._BlockInfo.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.

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

◆ IsBlockInfo() [1/3]

def cpplint._BlockInfo.IsBlockInfo (   self)
Returns true if this block is a _BlockInfo.

This is convenient for verifying that an object is an instance of
a _BlockInfo, but not an instance of any of the derived classes.

Returns:
  True for this class, False for derived classes.

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

◆ IsBlockInfo() [2/3]

def cpplint._BlockInfo.IsBlockInfo (   self)
Returns true if this block is a _BlockInfo.

This is convenient for verifying that an object is an instance of
a _BlockInfo, but not an instance of any of the derived classes.

Returns:
  True for this class, False for derived classes.

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

◆ IsBlockInfo() [3/3]

def cpplint._BlockInfo.IsBlockInfo (   self)
Returns true if this block is a _BlockInfo.

This is convenient for verifying that an object is an instance of
a _BlockInfo, but not an instance of any of the derived classes.

Returns:
  True for this class, False for derived classes.

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

Member Data Documentation

◆ __class__

cpplint._BlockInfo.__class__
private

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

◆ check_namespace_indentation

cpplint._BlockInfo.check_namespace_indentation

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

◆ inline_asm

cpplint._BlockInfo.inline_asm

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

◆ open_parentheses

cpplint._BlockInfo.open_parentheses

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

◆ seen_open_brace

cpplint._BlockInfo.seen_open_brace

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

◆ starting_linenum

cpplint._BlockInfo.starting_linenum

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


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