MCPcopy Index your code
hub / github.com/cpplint/cpplint / __init__

Method __init__

cpplint.py:2109–2121  ·  view source on GitHub ↗
(self, lines)

Source from the content-addressed store, hash-verified

2107 """
2108
2109 def __init__(self, lines):
2110 if "-readability/alt_tokens" in _cpplint_state.filters:
2111 for i, line in enumerate(lines):
2112 lines[i] = ReplaceAlternateTokens(line)
2113 self.elided = []
2114 self.lines = []
2115 self.raw_lines = lines
2116 self.num_lines = len(lines)
2117 self.lines_without_raw_strings = CleanseRawStrings(lines)
2118 for line in self.lines_without_raw_strings:
2119 self.lines.append(CleanseComments(line))
2120 elided = self._CollapseStrings(line)
2121 self.elided.append(CleanseComments(elided))
2122
2123 def NumLines(self):
2124 """Returns the number of lines represented."""

Callers

nothing calls this directly

Calls 4

_CollapseStringsMethod · 0.95
ReplaceAlternateTokensFunction · 0.85
CleanseRawStringsFunction · 0.85
CleanseCommentsFunction · 0.85

Tested by

no test coverage detected