MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / InNamespaceBody

Method InNamespaceBody

steps/cpplint.py:2946–2952  ·  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

2944 return (not self.stack) or self.stack[-1].seen_open_brace
2945
2946 def InNamespaceBody(self):
2947 """Check if we are currently one level inside a namespace body.
2948
2949 Returns:
2950 True if top of the stack is a namespace block, False otherwise.
2951 """
2952 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
2953
2954 def InExternC(self):
2955 """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