aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorMed Ismail Bennani <ismail@bennani.ma>2025-11-05 16:02:02 -0800
committerGitHub <noreply@github.com>2025-11-05 16:02:02 -0800
commitd584d00ed250e547c9910e0a93b7f9d07f2e71c3 (patch)
tree661d4e93699403290f2528bb9f6c8cb5abb64427 /clang/unittests/Format/FormatTestJava.cpp
parent8321eaa037b994f22351af67a3e7d8bd4a54ae0c (diff)
downloadllvm-d584d00ed250e547c9910e0a93b7f9d07f2e71c3.zip
llvm-d584d00ed250e547c9910e0a93b7f9d07f2e71c3.tar.gz
llvm-d584d00ed250e547c9910e0a93b7f9d07f2e71c3.tar.bz2
[lldb] Introduce SBFrameList for lazy frame iteration (#166651)
This patch introduces `SBFrameList`, a new SBAPI class that allows iterating over stack frames lazily without calling `SBThread::GetFrameAtIndex` in a loop. The new `SBThread::GetFrames()` method returns an `SBFrameList` that supports Python iteration (`for frame in frame_list:`), indexing (`frame_list[0]`, `frame_list[-1]`), and length queries (`len()`). The implementation uses `StackFrameListSP` as the opaque pointer, sharing the thread's underlying frame list to ensure frames are materialized on-demand. This is particularly useful for ScriptedFrameProviders, where user scripts will be to iterate, filter, and replace frames lazily without materializing the entire stack upfront. Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions