Issue |
146559
|
Summary |
[lldb-dap] Hover on objc declarations vs expressions is different
|
Labels |
lldb-dap
|
Assignees |
|
Reporter |
ashgti
|
I'm looking into updating lldb-dap's _expression_ request and digging into this I found some inconsistencies with how we're evaluating terms in the hover request.
Specifically, if you have some obj-c code like:
```
MyType *foo = [[MyType alloc] init];
[foo doWork];
```
If you hover over the declaration of `foo` VSCode is actually sending a hover request for `*foo`. If you hover over `foo` when its about to invoke a method, it will send a request for `foo`.
When we call `frame.GetValueForVariablePath` with the first form, its dereferencing the variable. Which is a totally valid _expression_, but not what I think the user meant when they hover over the variable.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs