[cfe-dev] ObjCIvarRefExpr vs. DeclRefExpr

George Karpenkov via cfe-dev cfe-dev at lists.llvm.org
Fri Jul 20 18:45:37 PDT 2018

Thanks! I’m still trying to wrap my hand around how the inheritance hierarchy works.

> On Jul 20, 2018, at 6:45 PM, John McCall <rjmccall at apple.com> wrote:
>> On Jul 20, 2018, at 9:21 PM, George Karpenkov <ekarpenkov at apple.com> wrote:
>> Hi,
>> I have stumbled into this curios pattern today: ObjCIvarRefExpr is *not* a subclass of DeclRefExpr.
>> Does anyone know why is this the case? Anyone against changing this?
> It would be fairly reasonable to make it a subclass of MemberExpr.  DeclRefExpr seems inappropriate, though.
> John.

More information about the cfe-dev mailing list