MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / InNamespaceBody

Method InNamespaceBody

rtpose_wrapper/scripts/cpp_lint.py:1940–1946  ·  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

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

Callers 1

CheckSpacingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected