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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to