[NFC][Coroutines] Use structured binding with llvm::enumerate in CoroSplit (#116879)
[llvm-project.git] / lldb / bindings / interface / SBStringListExtensions.i
blob04f72668b37feef093e2ed08716ae94b41662684
1 %extend lldb::SBStringList {
2 #ifdef SWIGPYTHON
3 %pythoncode%{
4 def __iter__(self):
5 '''Iterate over all strings in a lldb.SBStringList object.'''
6 return lldb_iter(self, 'GetSize', 'GetStringAtIndex')
8 def __len__(self):
9 '''Return the number of strings in a lldb.SBStringList object.'''
10 return self.GetSize()
12 #endif