MCPcopy Create free account
hub / github.com/alibaba/GraphScope / InNamespaceBody

Method InNamespaceBody

analytical_engine/misc/cpplint.py:2935–2941  ·  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

2933 return (not self.stack) or self.stack[-1].seen_open_brace
2934
2935 def InNamespaceBody(self):
2936 """Check if we are currently one level inside a namespace body.
2937
2938 Returns:
2939 True if top of the stack is a namespace block, False otherwise.
2940 """
2941 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
2942
2943 def InExternC(self):
2944 """Check if we are currently one level inside an 'extern "C"' block.

Callers 1

CheckSpacingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected