MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / isAllChildrenSet

Method isAllChildrenSet

addons/misra_9.py:182–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 self.parent.markAsCurrent()
181
182 def isAllChildrenSet(self):
183 myself = len(self.children) == 0 and (self.isDesignated or self.isPositional)
184 mychildren = len(self.children) > 0 and all([child.isAllChildrenSet() for child in self.children])
185 return myself or mychildren
186
187 def isAllSet(self):
188 return all([child.isPositional or child.isDesignated for child in self.children])

Callers 1

isMisra93CompliantMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected