MCPcopy Create free account
hub / github.com/SIPp/sipp / InNamespaceBody

Method InNamespaceBody

cpplint.py:1519–1525  ·  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

1517 return (not self.stack) or self.stack[-1].seen_open_brace
1518
1519 def InNamespaceBody(self):
1520 """Check if we are currently one level inside a namespace body.
1521
1522 Returns:
1523 True if top of the stack is a namespace block, False otherwise.
1524 """
1525 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
1526
1527 def UpdatePreprocessor(self, line):
1528 """Update preprocessor stack.

Callers 1

CheckSpacingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected