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

Method GetOpenBlockStart

cpplint.py:997–999  ·  view source on GitHub ↗

:return: The start of the current open block or `-1` if there is not an open block

(self)

Source from the content-addressed store, hash-verified

995 suppressed.append(line_range)
996
997 def GetOpenBlockStart(self):
998 """:return: The start of the current open block or `-1` if there is not an open block"""
999 return self._open_block_suppression.begin if self._open_block_suppression else -1
1000
1001 def AddGlobalSuppression(self, category):
1002 """Add a suppression for `category` which is suppressed for the whole file"""

Callers 2

ParseNolintSuppressionsFunction · 0.80
ProcessFileDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected