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

Method InExternC

src/tests/coding/cpplint.py:2940–2946  ·  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

2938 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
2939
2940 def InExternC(self):
2941 """Check if we are currently one level inside an 'extern "C"' block.
2942
2943 Returns:
2944 True if top of the stack is an extern block, False otherwise.
2945 """
2946 return self.stack and isinstance(self.stack[-1], _ExternCInfo)
2947
2948 def InClassDeclaration(self):
2949 """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