diff options
author | Dave Lee <davelee.com@gmail.com> | 2023-02-03 08:45:44 -0800 |
---|---|---|
committer | Dave Lee <davelee.com@gmail.com> | 2023-02-08 10:46:26 -0800 |
commit | 3ff636729d067801039b3a37618f6ce0dd1c3d24 (patch) | |
tree | 22a48d087319e4571c4bfa4594d0b3600619c46c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5d07e0448e38d4be0cc7b1079d72b5e3644e941c (diff) | |
download | llvm-3ff636729d067801039b3a37618f6ce0dd1c3d24.zip llvm-3ff636729d067801039b3a37618f6ce0dd1c3d24.tar.gz llvm-3ff636729d067801039b3a37618f6ce0dd1c3d24.tar.bz2 |
[lldb] Accept negative indexes in __getitem__
To the Python bindings, add support for Python-like negative indexes.
While was using `script`, I tried to access a thread's bottom frame with
`thread.frame[-1]`, but that failed. This change updates the `__getitem__`
implementations to support negative indexes as one would expect in Python.
Differential Revision: https://reviews.llvm.org/D143282
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions