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

Method InnermostClass

util/cpplint.py:2651–2661  ·  view source on GitHub ↗

Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.

(self)

Source from the content-addressed store, hash-verified

2649 line = matched.group(2)
2650
2651 def InnermostClass(self):
2652 """Get class info on the top of the stack.
2653
2654 Returns:
2655 A _ClassInfo object if we are inside a class, or None otherwise.
2656 """
2657 for i in range(len(self.stack), 0, -1):
2658 classinfo = self.stack[i - 1]
2659 if isinstance(classinfo, _ClassInfo):
2660 return classinfo
2661 return None
2662
2663 def CheckCompletedBlocks(self, filename, error):
2664 """Checks that all classes and namespaces have been completely parsed.

Callers 2

CheckStyleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected