[Lldb-commits] [lldb] [lldb] Enable template getters on pointer types (PR #189983)

via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 1 15:47:00 PDT 2026


jimingham wrote:

The Gordian Knot solution is that if you need to do this sort of thing, and don't actually care about the pointer-ness or reference-ness of the object, you should use the `requires-dereference` flag - you could always do that internally but Michael added a way to do it from the command line as well.

That setting means that no matter what was matched, the formatter system does the dereference for you and returns you the actual object.  Then you don't have to worry about pointer vrs. structure.

Seems to me this should be the default for formatter types.  You seldom produce different children between formatting a pointer to a type and a value of that type, so this just reduces unnecessary work.

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


More information about the lldb-commits mailing list