[Lldb-commits] [lldb] [lldb][Formatters] Do not recursively dereference pointer type when creating formatter candicates list. (PR #124048)
Zequan Wu via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 23 14:18:21 PST 2025
ZequanWu wrote:
> If the objection is that's a pain to do for every formatter, we could have the type matcher do the dereferencing and always pass the formatter the ValueObject that is the type they registered the formatter for.
Do you mean pass the formatter the ValueObject with type `T` that was registered when printing `T*` or `T**`, etc? Then the dereferencing needs to happen when we trying to get the summary or the synthetic value, could be cached of course. Is that right? This sounds good to me.
https://github.com/llvm/llvm-project/pull/124048
More information about the lldb-commits
mailing list