aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-10-18 18:18:26 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-10-18 18:18:26 +0000
commit168425c9bdd8ed17df0ac76a19d6033f4808bd46 (patch)
tree412afddf577d82650652b7d7e2ab9ce40283f09d
parentee097c1a3f5e02605dd585c0a9bf22976f09ccc2 (diff)
Expand the comment for DeclInfo::CurrentDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166202 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Comment.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/AST/Comment.h b/include/clang/AST/Comment.h
index c7cdb78098..facfcf9a96 100644
--- a/include/clang/AST/Comment.h
+++ b/include/clang/AST/Comment.h
@@ -907,6 +907,12 @@ struct DeclInfo {
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;