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

Method InNamespaceBody

scripts/cpp_lint.py:1944–1950  ·  view source on GitHub ↗

Check if we are currently one level inside a namespace body. Returns: True if top of the stack is a namespace block, False otherwise.

(self)

Source from the content-addressed store, hash-verified

1942 return (not self.stack) or self.stack[-1].seen_open_brace
1943
1944 def InNamespaceBody(self):
1945 """Check if we are currently one level inside a namespace body.
1946
1947 Returns:
1948 True if top of the stack is a namespace block, False otherwise.
1949 """
1950 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
1951
1952 def UpdatePreprocessor(self, line):
1953 """Update preprocessor stack.

Callers 1

CheckSpacingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected