aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ScriptInterpreter/Python/python.test
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2022-06-15 22:04:02 -0700
committerDave Lee <davelee.com@gmail.com>2022-06-15 22:04:02 -0700
commite30c493894c410825ad7467f4996aca7f613ce81 (patch)
treed7546aa6b30041526e541aa5ea5c6c1f9ab3343e /lldb/test/Shell/ScriptInterpreter/Python/python.test
parentbccf27d934b312c1a9434b8ba5430ea21f504ffb (diff)
downloadllvm-e30c493894c410825ad7467f4996aca7f613ce81.zip
llvm-e30c493894c410825ad7467f4996aca7f613ce81.tar.gz
llvm-e30c493894c410825ad7467f4996aca7f613ce81.tar.bz2
[lldb] Support non-pointer implicit this/self in GetValueForVariableExpressionPath
The `frame variable` command supports an implicit `this`/`self`, allowing a user to run `v some_field` instead of `v this->some_field`. However, some languages have non-pointer `this`/`self` types (for example, Swift). This change adds support for non-pointer implicit `this`/`self`. This is done by consulting the type of the instance variable. If the type is known to be non-pointer, the dot operator is used instead of the arrow operator. The C language of families each have a pointer instance type, which makes testing of this difficult. Tests for this feature will be done in the Swift downstream fork, as Swift's `self` is a non-pointer (reference) type. rdar://82095148 Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D127605
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python/python.test')
0 files changed, 0 insertions, 0 deletions