MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / _PreprocessorInfo

Class _PreprocessorInfo

util/cpplint.py:2297–2308  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2295
2296
2297class _PreprocessorInfo(object):
2298 """Stores checkpoints of nesting stacks when #if/#else is seen."""
2299
2300 def __init__(self, stack_before_if):
2301 # The entire nesting stack before #if
2302 self.stack_before_if = stack_before_if
2303
2304 # The entire nesting stack up to #else
2305 self.stack_before_else = []
2306
2307 # Whether we have already seen #else or #elif
2308 self.seen_else = False
2309
2310
2311class NestingState(object):

Callers 1

UpdatePreprocessorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected