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

Public Member Functions

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

Public Attributes

 check_namespace_indentation
 
 inline_asm
 
 open_parentheses
 
 seen_open_brace
 

Private Attributes

 __class__
 

Detailed Description

Stores information about a generic block of code.

Definition at line 2002 of file cpplint.py.

Constructor & Destructor Documentation

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

Definition at line 2005 of file cpplint.py.

Member Function Documentation

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

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

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

Member Data Documentation

roslint.cpplint._BlockInfo.__class__
private

Definition at line 2048 of file cpplint.py.

roslint.cpplint._BlockInfo.check_namespace_indentation

Definition at line 2009 of file cpplint.py.

roslint.cpplint._BlockInfo.inline_asm

Definition at line 2008 of file cpplint.py.

roslint.cpplint._BlockInfo.open_parentheses

Definition at line 2007 of file cpplint.py.

roslint.cpplint._BlockInfo.seen_open_brace

Definition at line 2006 of file cpplint.py.


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


roslint
Author(s): Mike Purvis, Jack O'Quin
autogenerated on Wed May 1 2019 02:23:59