[cfe-dev] MemberExpr::getMemberDecl()
Douglas Gregor
dgregor at apple.com
Wed Mar 18 08:13:57 PDT 2009
On Mar 18, 2009, at 3:36 AM, Martin Doucha 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.
In C++, a MemberExpr can also refer to a method (CXXMethodDecl). In
C, it will always be a FieldDecl.
- Doug
More information about the cfe-dev
mailing list