INNER CODE UNIT · Python

has_children

SpartanJ/eepp · projects/scripts/debug/eepp_lldb.py:101

    def has_children(self):
        return self.size > 0


def EESmallVectorSummaryProvider(valobj, internal_dict):
    """
    Standalone summary provider. It's an LLDB anti-pattern to initialize the
    SyntheticProvider class inside here, so we duplicate the tiny bit of logic
    needed to read the state efficiently.
    """
    # Find m_data, handling base classes
    m_data = valobj.GetChildMemberWithName("m_data")
    if not m_data or not m_data.IsValid():
        for i in range(valobj.GetNumChildren()):
            child = valobj.GetChildAtIndex(i)
            if child.GetName() and "svector" in child.GetName():
                m_data = child.GetChildMemberWithName("m_data")
                break

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…