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);
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits