MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / InExternC

Method InExternC

util/cpplint.py:2354–2360  ·  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

2352 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
2353
2354 def InExternC(self):
2355 """Check if we are currently one level inside an 'extern "C"' block.
2356
2357 Returns:
2358 True if top of the stack is an extern block, False otherwise.
2359 """
2360 return self.stack and isinstance(self.stack[-1], _ExternCInfo)
2361
2362 def InClassDeclaration(self):
2363 """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