JDevlieghere wrote:

> A hypothetical over-the-top solution would be to return a DiagnosticDetail 
> with the warning and then have the upper (CommandInterpreter) layer 
> substitute the matching command instead...

Definitely more work, but I think it's the right thing to do for another 
reason: we should try to avoid printing `warning:` and `error:` to streams and 
do it programmatically so that they can be displayed appropriately (e.g. with 
color highlighting on the terminal) or as a structured error/warning in DAP. 

https://github.com/llvm/llvm-project/pull/175847
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to