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

Class _PreprocessorInfo

cpplint.py:3201–3212  ·  view source on GitHub ↗

Stores checkpoints of nesting stacks when #if/#else is seen.

Source from the content-addressed store, hash-verified

3199
3200
3201class _PreprocessorInfo:
3202 """Stores checkpoints of nesting stacks when #if/#else is seen."""
3203
3204 def __init__(self, stack_before_if):
3205 # The entire nesting stack before #if
3206 self.stack_before_if = stack_before_if
3207
3208 # The entire nesting stack up to #else
3209 self.stack_before_else = []
3210
3211 # Whether we have already seen #else or #elif
3212 self.seen_else = False
3213
3214
3215class NestingState:

Callers 1

UpdatePreprocessorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected