[Lldb-commits] [lldb] [lldb][Expression] Emit a 'Note' diagnostic that indicates the language used for expression evaluation (PR #161688)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 2 15:04:09 PDT 2025


Michael137 wrote:

> This going to be quite useful for diagnosing perplexing errors!
> 
> > note: Requested expression evaluation as 'c' but fell back to 'c++'.
> 
> * Do we have a table that would translate the spec names into human-readable names (objc -> Objective-C, c -> C, ...) we could use for this?

Not that I'm aware of. Could try creating one

> * Is there any explanation we could offer as to why LLDB didn't honor the language the user requested?

Yea we could elaborate. I didn't want to make the `note` too verbose, but I'll try to expand it a bit.

https://github.com/llvm/llvm-project/pull/161688


More information about the lldb-commits mailing list