• Home
  • Raw
  • Download

Lines Matching refs:NewVar

3785     VarDecl *NewVar, VarDecl *OldVar,  in BuildVariableInstantiation()  argument
3797 NewVar->setLocalExternDecl(); in BuildVariableInstantiation()
3798 NewVar->setLexicalDeclContext(Owner); in BuildVariableInstantiation()
3800 NewVar->setLexicalDeclContext(OldVar->getLexicalDeclContext()); in BuildVariableInstantiation()
3801 NewVar->setTSCSpec(OldVar->getTSCSpec()); in BuildVariableInstantiation()
3802 NewVar->setInitStyle(OldVar->getInitStyle()); in BuildVariableInstantiation()
3803 NewVar->setCXXForRangeDecl(OldVar->isCXXForRangeDecl()); in BuildVariableInstantiation()
3804 NewVar->setConstexpr(OldVar->isConstexpr()); in BuildVariableInstantiation()
3805 NewVar->setInitCapture(OldVar->isInitCapture()); in BuildVariableInstantiation()
3806 NewVar->setPreviousDeclInSameBlockScope( in BuildVariableInstantiation()
3808 NewVar->setAccess(OldVar->getAccess()); in BuildVariableInstantiation()
3812 NewVar->setIsUsed(); in BuildVariableInstantiation()
3813 NewVar->setReferenced(OldVar->isReferenced()); in BuildVariableInstantiation()
3816 InstantiateAttrs(TemplateArgs, OldVar, NewVar, LateAttrs, StartingScope); in BuildVariableInstantiation()
3819 *this, NewVar->getDeclName(), NewVar->getLocation(), in BuildVariableInstantiation()
3820 NewVar->isLocalExternDecl() ? Sema::LookupRedeclarationWithLinkage in BuildVariableInstantiation()
3824 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && in BuildVariableInstantiation()
3830 NewVar->getLocation(), OldVar->getPreviousDecl(), TemplateArgs)) in BuildVariableInstantiation()
3832 } else if (!isa<VarTemplateSpecializationDecl>(NewVar) && in BuildVariableInstantiation()
3834 LookupQualifiedName(Previous, NewVar->getDeclContext(), false); in BuildVariableInstantiation()
3835 CheckVariableDeclaration(NewVar, Previous); in BuildVariableInstantiation()
3838 NewVar->getLexicalDeclContext()->addHiddenDecl(NewVar); in BuildVariableInstantiation()
3839 if (!NewVar->isLocalExternDecl() || !NewVar->getPreviousDecl()) in BuildVariableInstantiation()
3840 NewVar->getDeclContext()->makeDeclVisibleInContext(NewVar); in BuildVariableInstantiation()
3844 if (NewVar->getDeclContext()->isFunctionOrMethod()) in BuildVariableInstantiation()
3845 CurrentInstantiationScope->InstantiatedLocal(OldVar, NewVar); in BuildVariableInstantiation()
3850 if (NewVar->isStaticDataMember() && !InstantiatingVarTemplate) in BuildVariableInstantiation()
3851 NewVar->setInstantiationOfStaticDataMember(OldVar, in BuildVariableInstantiation()
3855 Context.setManglingNumber(NewVar, Context.getManglingNumber(OldVar)); in BuildVariableInstantiation()
3856 Context.setStaticLocalNumber(NewVar, Context.getStaticLocalNumber(OldVar)); in BuildVariableInstantiation()
3861 if ((!isa<VarTemplateSpecializationDecl>(NewVar) && in BuildVariableInstantiation()
3864 NewVar->getType()->isUndeducedType()) in BuildVariableInstantiation()
3865 InstantiateVariableInitializer(NewVar, OldVar, TemplateArgs); in BuildVariableInstantiation()
3869 if (!NewVar->isInvalidDecl() && in BuildVariableInstantiation()
3870 NewVar->getDeclContext()->isFunctionOrMethod() && in BuildVariableInstantiation()
3872 DiagnoseUnusedDecl(NewVar); in BuildVariableInstantiation()