webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
webkitpy.style.checkers.cpp.CleansedLines Class Reference
Inheritance diagram for webkitpy.style.checkers.cpp.CleansedLines:

Public Member Functions

def __init__ (self, lines)
 
def num_lines (self)
 

Static Public Member Functions

def collapse_strings (elided)
 

Public Attributes

 elided
 
 lines
 
 raw_lines
 

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 member contains all the lines without processing.
All these three members are of <type 'list'>, and of the same length.

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.style.checkers.cpp.CleansedLines.__init__ (   self,
  lines 
)

Member Function Documentation

◆ collapse_strings()

def webkitpy.style.checkers.cpp.CleansedLines.collapse_strings (   elided)
static
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.

◆ num_lines()

def webkitpy.style.checkers.cpp.CleansedLines.num_lines (   self)
Returns the number of lines represented.

Member Data Documentation

◆ elided

webkitpy.style.checkers.cpp.CleansedLines.elided

◆ lines

webkitpy.style.checkers.cpp.CleansedLines.lines

◆ raw_lines

webkitpy.style.checkers.cpp.CleansedLines.raw_lines

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