MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / _PreprocessorInfo

Class _PreprocessorInfo

steps/cpplint.py:2897–2908  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2895
2896
2897class _PreprocessorInfo(object):
2898 """Stores checkpoints of nesting stacks when #if/#else is seen."""
2899
2900 def __init__(self, stack_before_if):
2901 # The entire nesting stack before #if
2902 self.stack_before_if = stack_before_if
2903
2904 # The entire nesting stack up to #else
2905 self.stack_before_else = []
2906
2907 # Whether we have already seen #else or #elif
2908 self.seen_else = False
2909
2910
2911class NestingState(object):

Callers 1

UpdatePreprocessorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected