repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[NFC][Coroutines] Use structured binding with llvm::enumerate in CoroSplit (#116879)
[llvm-project.git]
/
lldb
/
bindings
/
interface
/
SBThreadCollectionExtensions.i
blob
39a45a6f1bb2b76fdbfe8a73e338f2236007321c
1
%
extend lldb
::
SBThreadCollection
{
2
#ifdef SWIGPYTHON
3
%
pythoncode
%{
4
5
def __iter__
(
self
):
6
'''Iterate over all threads in a lldb.SBThreadCollection object.'''
7
return lldb_iter
(
self
,
'GetSize'
,
'GetThreadAtIndex'
)
8
9
def __len__
(
self
):
10
'''Return the number of threads in a lldb.SBThreadCollection object.'''
11
return self.GetSize
()
12
%}
13
#endif
14
}