]> granicus.if.org Git - clang/commitdiff
Improve documentation for MemberExpr
authorDouglas Gregor <dgregor@apple.com>
Fri, 20 Mar 2009 20:46:52 +0000 (20:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 20 Mar 2009 20:46:52 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67401 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h

index cd13b84972f57c285479e54bfdf0db4bc18c86b8..3a91a7070487d1ce883f7ffd6bd1bfa37e3e2fa1 100644 (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; }