[Lldb-commits] [lldb] [lldb] Add value to enumerator dump (PR #69815)

Vlad Serebrennikov via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 16 04:11:03 PST 2023


Endilll wrote:

@DavidSpickett There is `SBValue:SetFormat()`, which takes `lldb::Format`. We can invent a new format, e.g. `eFormatEnumWithValue`. Not every enum flows through my formatter, as I'm actively improving emitted debug info so that LLDB does the right thing by default (`[[clang::preferred_type]]` is one example), reducing formatter boilerplate. So I'd prefer something global and possibly under user control, rather than doing it from formatter side. How does this sound to you?

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


More information about the lldb-commits mailing list