walter-erquinigo wrote:

I somehow think we shouldn't add this kind of heuristics in LLDB and instead 
add them in the VSCode extension at a per-language basis. Some language, like 
Mojo, allow you to write variables with potentially any character sequences, 
and they have different characters to signal dereference, for example. 
I strongly suggest to leave LLDB untouched and implement the 
EvaluatableExpressionProvider. When invoking EvaluatableExpressionProvider, it 
should be possible to ask VSCode which langauge it thinks the target source 
file is, and then based on it add these kind of heuristics in an extensible 
way, so that future contributors can add more rules to it.

https://github.com/llvm/llvm-project/pull/146773
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to