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

Public Member Functions

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

Public Attributes


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

Constructor & Destructor Documentation

def roslint.cpplint.CleansedLines.__init__ (   self,

Definition at line 1438 of file

Member Function Documentation

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

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

  elided: The line being processed.

  The line with collapsed strings.

Definition at line 1455 of file

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

Definition at line 1450 of file

Member Data Documentation


Definition at line 1439 of file


Definition at line 1440 of file


Definition at line 1443 of file


Definition at line 1442 of file


Definition at line 1441 of file

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

Author(s): Mike Purvis, Jack O'Quin
autogenerated on Wed Mar 18 2020 03:20:56