INNER CODE UNIT · Python
EESmallVectorSummaryProvider
SpartanJ/eepp · projects/scripts/debug/eepp_lldb.py:105
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
if not m_data or not m_data.IsValid():
return f"size={valobj.GetNumChildren()}"