reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
4493 isa<VarTemplatePartialSpecializationDecl>(NewVar); 4497 isa<VarTemplateSpecializationDecl>(NewVar) && 4507 NewVar->setLocalExternDecl(); 4508 NewVar->setLexicalDeclContext(Owner); 4510 NewVar->setLexicalDeclContext(OldVar->getLexicalDeclContext()); 4511 NewVar->setTSCSpec(OldVar->getTSCSpec()); 4512 NewVar->setInitStyle(OldVar->getInitStyle()); 4513 NewVar->setCXXForRangeDecl(OldVar->isCXXForRangeDecl()); 4514 NewVar->setObjCForDecl(OldVar->isObjCForDecl()); 4515 NewVar->setConstexpr(OldVar->isConstexpr()); 4516 NewVar->setInitCapture(OldVar->isInitCapture()); 4517 NewVar->setPreviousDeclInSameBlockScope( 4519 NewVar->setAccess(OldVar->getAccess()); 4523 NewVar->setIsUsed(); 4524 NewVar->setReferenced(OldVar->isReferenced()); 4527 InstantiateAttrs(TemplateArgs, OldVar, NewVar, LateAttrs, StartingScope); 4530 *this, NewVar->getDeclName(), NewVar->getLocation(), 4530 *this, NewVar->getDeclName(), NewVar->getLocation(), 4531 NewVar->isLocalExternDecl() ? Sema::LookupRedeclarationWithLinkage 4533 NewVar->isLocalExternDecl() ? Sema::ForExternalRedeclaration 4536 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && 4542 NewVar->getLocation(), OldVar->getPreviousDecl(), TemplateArgs)) 4544 } else if (!isa<VarTemplateSpecializationDecl>(NewVar) && 4546 LookupQualifiedName(Previous, NewVar->getDeclContext(), false); 4550 CheckVariableDeclaration(NewVar, Previous); 4553 NewVar->getLexicalDeclContext()->addHiddenDecl(NewVar); 4553 NewVar->getLexicalDeclContext()->addHiddenDecl(NewVar); 4554 if (!NewVar->isLocalExternDecl() || !NewVar->getPreviousDecl()) 4554 if (!NewVar->isLocalExternDecl() || !NewVar->getPreviousDecl()) 4555 NewVar->getDeclContext()->makeDeclVisibleInContext(NewVar); 4555 NewVar->getDeclContext()->makeDeclVisibleInContext(NewVar); 4559 if (NewVar->getDeclContext()->isFunctionOrMethod()) 4560 CurrentInstantiationScope->InstantiatedLocal(OldVar, NewVar); 4569 if (NewVar->isStaticDataMember() && !InstantiatingVarTemplate && 4571 NewVar->setInstantiationOfStaticDataMember(OldVar, 4580 cast<VarTemplateSpecializationDecl>(NewVar)->setSpecializationKind( 4585 Context.setManglingNumber(NewVar, Context.getManglingNumber(OldVar)); 4586 Context.setStaticLocalNumber(NewVar, Context.getStaticLocalNumber(OldVar)); 4591 } else if (NewVar->getType()->isUndeducedType()) { 4593 InstantiateVariableInitializer(NewVar, OldVar, TemplateArgs); 4596 !NewVar->isThisDeclarationADefinition())) { 4601 InstantiateVariableInitializer(NewVar, OldVar, TemplateArgs); 4606 if (!NewVar->isInvalidDecl() && 4607 NewVar->getDeclContext()->isFunctionOrMethod() && 4609 DiagnoseUnusedDecl(NewVar);