[Lldb-commits] [lldb] Fix pointer to reference type (PR #113596)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 30 09:55:04 PDT 2024
jeffreytan81 wrote:
I haven't had time to look into your example in details.
But to share high level context about the bug behavior, we have observed cases that, there is real world scenarios using `std::vector<T>&` object, which data formatters, and "v obj" reports this vector "size=13", but there is another function accepting `std::vector<T> *` as parameter, so `&obj` is passed. In both locals window for "&obj" and "v &obj" reports "size=0" which is apparently very confusing to end users.
To make things even worse, in VSCode, if your mouse hover "&obj", it will try to "frame var &obj" instead of "frame var obj" which makes this bug behavior even more prevalent.
https://github.com/llvm/llvm-project/pull/113596
More information about the lldb-commits
mailing list