Improve documentation for MemberExpr

llvm-svn: 67401
This commit is contained in:
Douglas Gregor 2009-03-20 20:46:52 +00:00
parent 3bdc4bdba6
commit 8ccff03701
1 changed files with 5 additions and 0 deletions

View File

@ -969,6 +969,11 @@ public:
void setBase(Expr *E) { Base = E; }
Expr *getBase() const { return cast<Expr>(Base); }
/// \brief Retrieve the member declaration to which this expression refers.
///
/// The returned declaration will either be a FieldDecl or (in C++)
/// a CXXMethodDecl.
NamedDecl *getMemberDecl() const { return MemberDecl; }
void setMemberDecl(NamedDecl *D) { MemberDecl = D; }
bool isArrow() const { return IsArrow; }