This revision was automatically updated to reflect the committed changes. Closed by commit rL281469: Fix documentation of MemberExpr::getMemberDecl (authored by sberg).
Changed prior to commit: https://reviews.llvm.org/D23907?vs=69317&id=71357#toc Repository: rL LLVM https://reviews.llvm.org/D23907 Files: cfe/trunk/include/clang/AST/Expr.h Index: cfe/trunk/include/clang/AST/Expr.h =================================================================== --- cfe/trunk/include/clang/AST/Expr.h +++ cfe/trunk/include/clang/AST/Expr.h @@ -2406,8 +2406,8 @@ /// \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; }
Index: cfe/trunk/include/clang/AST/Expr.h =================================================================== --- cfe/trunk/include/clang/AST/Expr.h +++ cfe/trunk/include/clang/AST/Expr.h @@ -2406,8 +2406,8 @@ /// \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; }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits