Public Member Functions | Public Attributes | Static Private Member Functions | List of all members
roslint.cpplint.CleansedLines Class Reference
Inheritance diagram for roslint.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 4 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.
3) raw_lines member contains all the lines without processing.
4) lines_without_raw_strings member is same as raw_lines, but with C++11 raw
   strings removed.
All these members are of <type 'list'>, and of the same length.

Definition at line 1427 of file cpplint.py.

Constructor & Destructor Documentation

◆ __init__()

def roslint.cpplint.CleansedLines.__init__ (   self,
  lines 
)

Definition at line 1438 of file cpplint.py.

Member Function Documentation

◆ _CollapseStrings()

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

◆ NumLines()

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

Definition at line 1450 of file cpplint.py.

Member Data Documentation

◆ elided

roslint.cpplint.CleansedLines.elided

Definition at line 1439 of file cpplint.py.

◆ lines

roslint.cpplint.CleansedLines.lines

Definition at line 1440 of file cpplint.py.

◆ lines_without_raw_strings

roslint.cpplint.CleansedLines.lines_without_raw_strings

Definition at line 1443 of file cpplint.py.

◆ num_lines

roslint.cpplint.CleansedLines.num_lines

Definition at line 1442 of file cpplint.py.

◆ raw_lines

roslint.cpplint.CleansedLines.raw_lines

Definition at line 1441 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 Tue Mar 7 2023 03:27:03