Lines Matching refs:OldVar

4962     VarDecl *NewVar, VarDecl *OldVar,  in BuildVariableInstantiation()  argument
4971 isa<VarTemplatePartialSpecializationDecl>(OldVar) && in BuildVariableInstantiation()
4977 (OldVar->getDescribedVarTemplate() || in BuildVariableInstantiation()
4978 isa<VarTemplatePartialSpecializationDecl>(OldVar)); in BuildVariableInstantiation()
4985 if (OldVar->isLocalExternDecl()) { in BuildVariableInstantiation()
4988 } else if (OldVar->isOutOfLine()) in BuildVariableInstantiation()
4989 NewVar->setLexicalDeclContext(OldVar->getLexicalDeclContext()); in BuildVariableInstantiation()
4990 NewVar->setTSCSpec(OldVar->getTSCSpec()); in BuildVariableInstantiation()
4991 NewVar->setInitStyle(OldVar->getInitStyle()); in BuildVariableInstantiation()
4992 NewVar->setCXXForRangeDecl(OldVar->isCXXForRangeDecl()); in BuildVariableInstantiation()
4993 NewVar->setObjCForDecl(OldVar->isObjCForDecl()); in BuildVariableInstantiation()
4994 NewVar->setConstexpr(OldVar->isConstexpr()); in BuildVariableInstantiation()
4996 NewVar->setInitCapture(OldVar->isInitCapture()); in BuildVariableInstantiation()
4998 OldVar->isPreviousDeclInSameBlockScope()); in BuildVariableInstantiation()
4999 NewVar->setAccess(OldVar->getAccess()); in BuildVariableInstantiation()
5001 if (!OldVar->isStaticDataMember()) { in BuildVariableInstantiation()
5002 if (OldVar->isUsed(false)) in BuildVariableInstantiation()
5004 NewVar->setReferenced(OldVar->isReferenced()); in BuildVariableInstantiation()
5007 InstantiateAttrs(TemplateArgs, OldVar, NewVar, LateAttrs, StartingScope); in BuildVariableInstantiation()
5016 if (NewVar->isLocalExternDecl() && OldVar->getPreviousDecl() && in BuildVariableInstantiation()
5017 (!OldVar->getPreviousDecl()->getDeclContext()->isDependentContext() || in BuildVariableInstantiation()
5018 OldVar->getPreviousDecl()->getDeclContext()==OldVar->getDeclContext())) { in BuildVariableInstantiation()
5022 NewVar->getLocation(), OldVar->getPreviousDecl(), TemplateArgs)) in BuildVariableInstantiation()
5025 OldVar->hasLinkage()) { in BuildVariableInstantiation()
5038 if (!OldVar->isOutOfLine()) { in BuildVariableInstantiation()
5040 CurrentInstantiationScope->InstantiatedLocal(OldVar, NewVar); in BuildVariableInstantiation()
5051 NewVar->setInstantiationOfStaticDataMember(OldVar, in BuildVariableInstantiation()
5057 dyn_cast<VarTemplateSpecializationDecl>(OldVar)) { in BuildVariableInstantiation()
5065 Context.setManglingNumber(NewVar, Context.getManglingNumber(OldVar)); in BuildVariableInstantiation()
5066 Context.setStaticLocalNumber(NewVar, Context.getStaticLocalNumber(OldVar)); in BuildVariableInstantiation()
5073 InstantiateVariableInitializer(NewVar, OldVar, TemplateArgs); in BuildVariableInstantiation()
5075 (OldVar->isInline() && OldVar->isThisDeclarationADefinition() && in BuildVariableInstantiation()
5081 InstantiateVariableInitializer(NewVar, OldVar, TemplateArgs); in BuildVariableInstantiation()
5088 OldVar->getType()->isDependentType()) in BuildVariableInstantiation()
5094 VarDecl *Var, VarDecl *OldVar, in InstantiateVariableInitializer() argument
5102 if (OldVar->isInlineSpecified()) in InstantiateVariableInitializer()
5104 else if (OldVar->isInline()) in InstantiateVariableInitializer()
5107 if (OldVar->getInit()) { in InstantiateVariableInitializer()
5116 Init = SubstInitializer(OldVar->getInit(), TemplateArgs, in InstantiateVariableInitializer()
5117 OldVar->getInitStyle() == VarDecl::CallInit); in InstantiateVariableInitializer()
5128 bool DirectInit = OldVar->isDirectInit(); in InstantiateVariableInitializer()
5146 if (OldVar->getFirstDecl()->hasInit()) in InstantiateVariableInitializer()
5332 VarDecl *OldVar = Var; in InstantiateVariableDefinition() local
5371 Var->setTemplateSpecializationKind(OldVar->getTemplateSpecializationKind(), in InstantiateVariableDefinition()
5372 OldVar->getPointOfInstantiation()); in InstantiateVariableDefinition()