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

Public Member Functions

def __init__ (self, lines)
 
def NumLines (self)
 

Public Attributes

 elided
 
 lines
 
 lines_without_raw_strings
 
 num_lines
 
 raw_lines
 

Static Private Member Functions

def _CollapseStrings (elided)
 

Detailed Description

Holds 3 copies of all lines with different preprocessing applied to them.

1) elided member contains lines without strings and comments,
2) lines member contains lines without comments, and
3) raw_lines member contains all the lines without processing.
All these three members are of <type 'list'>, and of the same length.

Definition at line 1175 of file cpplint.py.

Constructor & Destructor Documentation

def cpplint.CleansedLines.__init__ (   self,
  lines 
)

Definition at line 1184 of file cpplint.py.

Member Function Documentation

def cpplint.CleansedLines._CollapseStrings (   elided)
staticprivate
Collapses strings and chars on a line to simple "" or '' blocks.

We nix strings first so we're not fooled by text like '"http://"'

Args:
  elided: The line being processed.

Returns:
  The line with collapsed strings.

Definition at line 1201 of file cpplint.py.

def cpplint.CleansedLines.NumLines (   self)
Returns the number of lines represented.

Definition at line 1196 of file cpplint.py.

Member Data Documentation

cpplint.CleansedLines.elided

Definition at line 1185 of file cpplint.py.

cpplint.CleansedLines.lines

Definition at line 1186 of file cpplint.py.

cpplint.CleansedLines.lines_without_raw_strings

Definition at line 1189 of file cpplint.py.

cpplint.CleansedLines.num_lines

Definition at line 1188 of file cpplint.py.

cpplint.CleansedLines.raw_lines

Definition at line 1187 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