r281469 - Fix documentation of MemberExpr::getMemberDecl
Stephan Bergmann via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 14 07:03:51 PDT 2016
Author: sberg
Date: Wed Sep 14 09:03:50 2016
New Revision: 281469
URL: http://llvm.org/viewvc/llvm-project?rev=281469&view=rev
Log:
Fix documentation of MemberExpr::getMemberDecl
Differential Revision: https://reviews.llvm.org/D23907
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=281469&r1=281468&r2=281469&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Wed Sep 14 09:03:50 2016
@@ -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; }
More information about the cfe-commits
mailing list