Michael137 wrote:

> As for the syntax for alternatives, I was suggesting (privately, I think) to 
> use :-, as that what 
> [bash](https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html)
>  uses for conditional expansion (and the formatter language feels more like 
> bash than C). However, I am having some doubts about that now since the way 
> you're thinking of using it is not exactly bash-like (the :- thingy only 
> works for a single variable, but I think you want to mostly use it on the 
> block level (and bash doesn't have blocks))

Would the syntax be `${some.variable :- fallback.variable}`? Which would try 
the first and if that fails try the fallback? This would work for my use-case. 
I.e., `${function.formatted-arguments :- function.arguments}`

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

Reply via email to