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

Class _PreprocessorInfo

src/tests/coding/cpplint.py:2883–2894  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2881
2882
2883class _PreprocessorInfo(object):
2884 """Stores checkpoints of nesting stacks when #if/#else is seen."""
2885
2886 def __init__(self, stack_before_if):
2887 # The entire nesting stack before #if
2888 self.stack_before_if = stack_before_if
2889
2890 # The entire nesting stack up to #else
2891 self.stack_before_else = []
2892
2893 # Whether we have already seen #else or #elif
2894 self.seen_else = False
2895
2896
2897class NestingState(object):

Callers 1

UpdatePreprocessorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected