[cfe-commits] r166202 - /cfe/trunk/include/clang/AST/Comment.h

Dmitri Gribenko gribozavr at gmail.com
Thu Oct 18 11:18:27 PDT 2012


Author: gribozavr
Date: Thu Oct 18 13:18:26 2012
New Revision: 166202

URL: http://llvm.org/viewvc/llvm-project?rev=166202&view=rev
Log:
Expand the comment for DeclInfo::CurrentDecl.

Modified:
    cfe/trunk/include/clang/AST/Comment.h

Modified: cfe/trunk/include/clang/AST/Comment.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Comment.h?rev=166202&r1=166201&r2=166202&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Comment.h (original)
+++ cfe/trunk/include/clang/AST/Comment.h Thu Oct 18 13:18:26 2012
@@ -907,6 +907,12 @@
   const Decl *CommentDecl;
   
   /// CurrentDecl is the declaration with which the FullComment is associated.
+  ///
+  /// It can be different from \c CommentDecl.  It happens when we we decide
+  /// that the comment originally attached to \c CommentDecl is fine for
+  /// \c CurrentDecl too (for example, for a redeclaration or an overrider of
+  /// \c CommentDecl).
+  ///
   /// The information in the DeclInfo corresponds to CurrentDecl.
   const Decl *CurrentDecl;
   





More information about the cfe-commits mailing list