[cfe-commits] r67401 - /cfe/trunk/include/clang/AST/Expr.h
Douglas Gregor
dgregor at apple.com
Fri Mar 20 13:46:52 PDT 2009
Author: dgregor
Date: Fri Mar 20 15:46:52 2009
New Revision: 67401
URL: http://llvm.org/viewvc/llvm-project?rev=67401&view=rev
Log:
Improve documentation for MemberExpr
Modified:
cfe/trunk/include/clang/AST/Expr.h
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=67401&r1=67400&r2=67401&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Fri Mar 20 15:46:52 2009
@@ -969,6 +969,11 @@
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; }
More information about the cfe-commits
mailing list