MCPcopy Index your code
hub / github.com/cpplint/cpplint / InExternC

Method InExternC

cpplint.py:3266–3272  ·  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

3264 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
3265
3266 def InExternC(self):
3267 """Check if we are currently one level inside an 'extern "C"' block.
3268
3269 Returns:
3270 True if top of the stack is an extern block, False otherwise.
3271 """
3272 return self.stack and isinstance(self.stack[-1], _ExternCInfo)
3273
3274 def InClassDeclaration(self):
3275 """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