[Lldb-commits] [lldb] [lldb][Formatters] Do not recursively dereference pointer type when creating formatter candicates list. (PR #124048)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 23 12:49:33 PST 2025
jimingham wrote:
It isn't that hard to have your formatter dereference the ValueObject it was provided till it's of the form that it wants to deal with (type or pointer) and then pass that to the main formatter.
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.
This just seems like a really arbitrary restriction, not particularly user-friendly, and is being imposed just to work around formatter bugs, which doesn't strike me as a good motivation.
https://github.com/llvm/llvm-project/pull/124048
More information about the lldb-commits
mailing list