[cfe-commits] r162374 - /cfe/trunk/lib/AST/ASTContext.cpp
Dmitri Gribenko
gribozavr at gmail.com
Wed Aug 22 11:12:19 PDT 2012
Author: gribozavr
Date: Wed Aug 22 13:12:19 2012
New Revision: 162374
URL: http://llvm.org/viewvc/llvm-project?rev=162374&view=rev
Log:
ASTContext::getCommentForDecl: add comment.
Modified:
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=162374&r1=162373&r2=162374&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Wed Aug 22 13:12:19 2012
@@ -370,6 +370,10 @@
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);
More information about the cfe-commits
mailing list