[cfe-dev] Where to put member pointers in the type hierarchy?

Sebastian Redl sebastian.redl at getdesigned.at
Sat Jan 24 09:18:03 PST 2009


Douglas Gregor wrote:
> On Jan 24, 2009, at 7:16 AM, Sebastian Redl wrote:
>
>> I need to extend the AST type hierarchy. So I'm
>> wondering where to put member pointers. Should they be a subclass of
>> PointerType, of PointerLikeType, or just of Type?
>
> In standards parlance, member pointers are not actually pointers, so
> they should subclass "Type".

So Pointer is out. But PointerLike is our own invention. (I believe
you're not a fan of this class, though.)

Sebastian



More information about the cfe-dev mailing list