MCPcopy Create free account
hub / github.com/alibaba/graph-learn / InExternC

Method InExternC

dynamic_graph_service/ci/cpplint.py:2672–2678  ·  view source on GitHub ↗

Check if we are currently one level inside an 'extern "C"' block. Returns: True if top of the stack is an extern block, False otherwise.

(self)

Source from the content-addressed store, hash-verified

2670 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
2671
2672 def InExternC(self):
2673 """Check if we are currently one level inside an 'extern "C"' block.
2674
2675 Returns:
2676 True if top of the stack is an extern block, False otherwise.
2677 """
2678 return self.stack and isinstance(self.stack[-1], _ExternCInfo)
2679
2680 def InClassDeclaration(self):
2681 """Check if we are currently one level inside a class or struct declaration.

Callers 1

CheckSpacingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected