Fix documentation of MemberExpr::getMemberDecl
authorStephan Bergmann <sbergman@redhat.com>
Wed, 14 Sep 2016 14:03:50 +0000 (14:03 +0000)
committerStephan Bergmann <sbergman@redhat.com>
Wed, 14 Sep 2016 14:03:50 +0000 (14:03 +0000)
Differential Revision: https://reviews.llvm.org/D23907

llvm-svn: 281469

clang/include/clang/AST/Expr.h

index 53e8f7b..f2079b1 100644 (file)
@@ -2406,8 +2406,8 @@ public:
 
   /// \brief Retrieve the member declaration to which this expression refers.
   ///
-  /// The returned declaration will either be a FieldDecl or (in C++)
-  /// a CXXMethodDecl.
+  /// The returned declaration will be a FieldDecl or (in C++) a VarDecl (for
+  /// static data members), a CXXMethodDecl, or an EnumConstantDecl.
   ValueDecl *getMemberDecl() const { return MemberDecl; }
   void setMemberDecl(ValueDecl *D) { MemberDecl = D; }