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