MCPcopy Create free account
hub / github.com/BVLC/caffe / _PreprocessorInfo

Class _PreprocessorInfo

scripts/cpp_lint.py:1906–1917  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1904
1905
1906class _PreprocessorInfo(object):
1907 """Stores checkpoints of nesting stacks when #if/#else is seen."""
1908
1909 def __init__(self, stack_before_if):
1910 # The entire nesting stack before #if
1911 self.stack_before_if = stack_before_if
1912
1913 # The entire nesting stack up to #else
1914 self.stack_before_else = []
1915
1916 # Whether we have already seen #else or #elif
1917 self.seen_else = False
1918
1919
1920class _NestingState(object):

Callers 1

UpdatePreprocessorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected