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

Method _AddSuppression

cpplint.py:992–995  ·  view source on GitHub ↗
(self, category, line_range)

Source from the content-addressed store, hash-verified

990 self._open_block_suppression = None
991
992 def _AddSuppression(self, category, line_range):
993 suppressed = self._suppressions[category]
994 if not (suppressed and suppressed[-1].ContainsRange(line_range)):
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"""

Callers 3

AddGlobalSuppressionMethod · 0.95
AddLineSuppressionMethod · 0.95
StartBlockSuppressionMethod · 0.95

Calls 1

ContainsRangeMethod · 0.80

Tested by

no test coverage detected