[PATCH] D23907: Fix documentation of MemberExpr::getMemberDecl
    Stephan Bergmann via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Aug 25 22:20:06 PDT 2016
    
    
  
sberg created this revision.
sberg added reviewers: rsmith, doug.gregor.
sberg added a subscriber: cfe-commits.
https://reviews.llvm.org/D23907
Files:
  include/clang/AST/Expr.h
Index: include/clang/AST/Expr.h
===================================================================
--- include/clang/AST/Expr.h
+++ 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; }
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23907.69317.patch
Type: text/x-patch
Size: 629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160826/fa7d46a0/attachment.bin>
    
    
More information about the cfe-commits
mailing list