FV3 Bundle
cpplint.CleansedLines Class Reference
Inheritance diagram for cpplint.CleansedLines:
[legend]
Collaboration diagram for cpplint.CleansedLines:
[legend]

Public Member Functions

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

Public Attributes

 elided
 
 lines
 
 raw_lines
 
 num_lines
 
 lines_without_raw_strings
 

Static Private Member Functions

def _CollapseStrings (elided)
 
def _CollapseStrings (elided)
 
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 1595 of file ioda/tools/cpplint.py.

Constructor & Destructor Documentation

◆ __init__() [1/3]

def cpplint.CleansedLines.__init__ (   self,
  lines 
)

Definition at line 1606 of file ioda/tools/cpplint.py.

Here is the caller graph for this function:

◆ __init__() [2/3]

def cpplint.CleansedLines.__init__ (   self,
  lines 
)

Definition at line 1606 of file oops/tools/cpplint.py.

Here is the call graph for this function:

◆ __init__() [3/3]

def cpplint.CleansedLines.__init__ (   self,
  lines 
)

Definition at line 1606 of file ufo/tools/cpplint.py.

Here is the call graph for this function:

Member Function Documentation

◆ _CollapseStrings() [1/3]

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 1623 of file ioda/tools/cpplint.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _CollapseStrings() [2/3]

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 1623 of file oops/tools/cpplint.py.

Here is the call graph for this function:

◆ _CollapseStrings() [3/3]

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 1623 of file ufo/tools/cpplint.py.

Here is the call graph for this function:

◆ NumLines() [1/3]

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

Definition at line 1618 of file ioda/tools/cpplint.py.

Here is the caller graph for this function:

◆ NumLines() [2/3]

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

Definition at line 1618 of file ufo/tools/cpplint.py.

Here is the call graph for this function:

◆ NumLines() [3/3]

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

Definition at line 1618 of file oops/tools/cpplint.py.

Here is the call graph for this function:

Member Data Documentation

◆ elided

cpplint.CleansedLines.elided

Definition at line 1607 of file ioda/tools/cpplint.py.

◆ lines

cpplint.CleansedLines.lines

Definition at line 1608 of file ioda/tools/cpplint.py.

◆ lines_without_raw_strings

cpplint.CleansedLines.lines_without_raw_strings

Definition at line 1611 of file ioda/tools/cpplint.py.

◆ num_lines

cpplint.CleansedLines.num_lines

Definition at line 1610 of file ioda/tools/cpplint.py.

◆ raw_lines

cpplint.CleansedLines.raw_lines

Definition at line 1609 of file ioda/tools/cpplint.py.


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