Public Member Functions | Public Attributes | List of all members
cpplint._BlockInfo Class Reference
Inheritance diagram for 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)
 

Public Attributes

 inline_asm
 
 open_parentheses
 
 seen_open_brace
 

Detailed Description

Stores information about a generic block of code.

Definition at line 1647 of file cpplint.py.

Constructor & Destructor Documentation

def cpplint._BlockInfo.__init__ (   self,
  seen_open_brace 
)

Definition at line 1650 of file cpplint.py.

Member Function Documentation

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 1655 of file cpplint.py.

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 1670 of file cpplint.py.

Member Data Documentation

cpplint._BlockInfo.inline_asm

Definition at line 1653 of file cpplint.py.

cpplint._BlockInfo.open_parentheses

Definition at line 1652 of file cpplint.py.

cpplint._BlockInfo.seen_open_brace

Definition at line 1651 of file cpplint.py.


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


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:27