[cfe-dev] MemberExpr::getMemberDecl()

Eli Friedman eli.friedman at gmail.com
Wed Mar 18 03:50:04 PDT 2009


On Wed, Mar 18, 2009 at 3:36 AM, Martin Doucha <next_ghost at quick.cz> wrote:
> Hi,
> why did the return type of MemberExpr::getMemberDecl() change from
> FieldDecl (which has QualType data) to NamedDecl (which doesn't)? I was
> using the type information from FieldDecl for some semantic checks.

It changed in r61294; I think it's safe to just cast to a FieldDecl if
you're dealing with pure C.

-Eli



More information about the cfe-dev mailing list