<div dir="ltr"><div style="font-size:small" class="gmail_default"></div><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 19, 2021 at 6:02 PM Jim Ingham <<a href="mailto:jingham@apple.com" target="_blank">jingham@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You can control whether you want data-formatters on "class Foo" to also match "class Foo *" and "class Foo &" using the --skip-pointers and --skip-references options respectively.<br>
So this part is clearly is by design.<br>
<br>
As for what the formatter gets passed, your formatter has chosen to see values that are pointers to the type by not passing --skip-pointers, so it makes sense to pass it <br>
the pointer - which it after all asked for.  I can't see a strong enough argument either way to want to change the way it currently works, since we might break other people's uses of it.<br></blockquote><div><br></div><div></div><div style="font-size:small" class="gmail_default">Certainly.  I just wish the documentation were more explicit about this quirk.  This behavior is especially confusing because the single indirection case usually works, since pointer.GetChildMemberWithName('...') transparently dereferences.   It starts breaking only at pointer-to-pointer-to-type. </div><div style="font-size:small" class="gmail_default"><br></div></div></div>