Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / bindings / interface / SBStructuredDataExtensions.i
blobca3d0966f9fc11514cce0d59d864b96ceb9d75ee
1 STRING_EXTENSION_OUTSIDE(SBStructuredData)
3 %extend lldb::SBStructuredData {
4 #ifdef SWIGPYTHON
5 %pythoncode%{
6 def __int__(self):
7 return self.GetSignedInteger()
9 def __len__(self):
10 '''Return the number of element in a lldb.SBStructuredData object.'''
11 return self.GetSize()
13 def __iter__(self):
14 '''Iterate over all the elements in a lldb.SBStructuredData object.'''
15 return lldb_iter(self, 'GetSize', 'GetItemAtIndex')
17 #endif