[cfe-dev] ObjCIvarRefExpr vs. DeclRefExpr

John McCall via cfe-dev cfe-dev at lists.llvm.org
Fri Jul 20 18:45:02 PDT 2018

> 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.


More information about the cfe-dev mailing list