]> granicus.if.org Git - clang/commitdiff
Attaching comments to decls: since it was decided that Decl::isImplicit should
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 23 Aug 2012 22:40:40 +0000 (22:40 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 23 Aug 2012 22:40:40 +0000 (22:40 +0000)
not be set for implicit instantiations, remove the FIXME.  This should be the
last bit for PR13634.  The actual fix happened in r162238.

Motivation: it might be misleading to mark implicit instantiations as
Decl::isImplicit = true.  Because then, in order to be consistent, we should
mark all instantiated members as implicit.  But the user did actually type the
declaration for the member, but the compiler played with it a little bit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162488 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 1144fcd0d97096ee44684353f9387d7f93715034..d94ad42b3c097be77edf098417b071b7b9fc838f 100644 (file)
@@ -67,8 +67,6 @@ RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const {
     return NULL;
 
   // User can not attach documentation to implicit instantiations.
-  // FIXME: all these implicit instantiations shoud be marked as implicit
-  // declarations and get caught by condition above.
   if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
     if (FD->getTemplateSpecializationKind() == TSK_ImplicitInstantiation)
       return NULL;