[Lldb-commits] [lldb] [lldb-dap] Improving 'variables' hover requests. (PR #146773)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 4 01:28:42 PDT 2025
labath wrote:
> > the request will be expression="char*foo", which won't evaluate correctly in lldb.
>
> We could search starting from the back for the first occurrence of either "&" or "*". I think `llvm::StringRef::find_last_of()` does this.
That's rather specific to C. In Swift for instance, the variable name comes before the type (`var i:Int`).
https://github.com/llvm/llvm-project/pull/146773
More information about the lldb-commits
mailing list