reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
5308 DeclContext *ParentDC = D->getDeclContext(); 5325 if (isa<ParmVarDecl>(D) && !ParentDC->isDependentContext() && 5326 !cast<ParmVarDecl>(D)->getType()->isInstantiationDependentType()) 5327 return D; 5328 if (isa<ParmVarDecl>(D) || isa<NonTypeTemplateParmDecl>(D) || 5328 if (isa<ParmVarDecl>(D) || isa<NonTypeTemplateParmDecl>(D) || 5329 isa<TemplateTypeParmDecl>(D) || isa<TemplateTemplateParmDecl>(D) || 5329 isa<TemplateTypeParmDecl>(D) || isa<TemplateTemplateParmDecl>(D) || 5334 (isa<CXXRecordDecl>(D) && cast<CXXRecordDecl>(D)->isLambda())) { 5334 (isa<CXXRecordDecl>(D) && cast<CXXRecordDecl>(D)->isLambda())) { 5338 if (auto Found = CurrentInstantiationScope->findInstantiationOf(D)) { 5353 if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) || 5353 if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) || 5354 isa<TemplateTemplateParmDecl>(D)) 5355 return D; 5357 if (D->isInvalidDecl()) 5374 if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(D)) 5377 NeedInstantiate = isa<EnumDecl>(D); 5379 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); 5380 CurrentInstantiationScope->InstantiatedLocal(D, Inst); 5386 assert(isa<LabelDecl>(D)); 5388 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs); 5391 CurrentInstantiationScope->InstantiatedLocal(D, Inst); 5395 if (CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(D)) { 5397 return D; 5485 return D; 5491 if (ParentDC != D->getDeclContext()) { 5517 if (auto Name = D->getDeclName()) { 5518 DeclarationNameInfo NameInfo(Name, D->getLocation()); 5526 if (auto *VTSD = dyn_cast<VarTemplateSpecializationDecl>(D)) { 5535 Result = findInstantiationOf(Context, D, Found.begin(), Found.end()); 5545 Result = findInstantiationOf(Context, D, 5551 if (isa<UsingShadowDecl>(D)) { 5564 << D->getDeclName() 5566 Diag(D->getLocation(), diag::note_non_instantiated_member_here); 5567 } else if (EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) { 5577 << D->getDeclName() 5587 D = Result; 5590 return D;