aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;