diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-22 18:12:19 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-08-22 18:12:19 +0000 |
commit | 4b41c65feb93eeb6f6d27b49a2045ea1b72de9d1 (patch) | |
tree | e4401a5de56669d9baea79c8ce37091377161f79 /lib/AST/ASTContext.cpp | |
parent | 2125c9010e259548a8c476fa998a561889555c95 (diff) |
ASTContext::getCommentForDecl: add comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index adb06147fa..1144fcd0d9 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -370,6 +370,10 @@ comments::FullComment *ASTContext::getCommentForDecl(const Decl *D) const { if (!RC) return NULL; + // If the RawComment was attached to other redeclaration of this Decl, we + // should parse the comment in context of that other Decl. This is important + // because comments can contain references to parameter names which can be + // different across redeclarations. if (D != OriginalDecl) return getCommentForDecl(OriginalDecl); |