[NFC][Coroutines] Use structured binding with llvm::enumerate in CoroSplit (#116879)
[llvm-project.git] / lldb / bindings / interface / SBFileSpecListExtensions.i
blob1e7b897a08d9590af912afc5c59656e42aa6bb69
1 STRING_EXTENSION_OUTSIDE(SBFileSpecList)
3 %extend lldb::SBFileSpecList {
4 #ifdef SWIGPYTHON
5 %pythoncode%{
6 def __len__(self):
7 '''Return the number of FileSpec in a lldb.SBFileSpecList object.'''
8 return self.GetSize()
10 def __iter__(self):
11 '''Iterate over all FileSpecs in a lldb.SBFileSpecList object.'''
12 return lldb_iter(self, 'GetSize', 'GetFileSpecAtIndex')
14 #endif