• Home
  • Raw
  • Download

Lines Matching refs:Var

281   VarDecl *Var = VarDecl::Create(SemaRef.Context, Owner,  in VisitVarDecl()  local
287 Var->setThreadSpecified(D->isThreadSpecified()); in VisitVarDecl()
288 Var->setInitStyle(D->getInitStyle()); in VisitVarDecl()
289 Var->setCXXForRangeDecl(D->isCXXForRangeDecl()); in VisitVarDecl()
290 Var->setConstexpr(D->isConstexpr()); in VisitVarDecl()
293 if (SubstQualifier(D, Var)) in VisitVarDecl()
300 Var->setLexicalDeclContext(D->getLexicalDeclContext()); in VisitVarDecl()
302 Var->setAccess(D->getAccess()); in VisitVarDecl()
305 Var->setUsed(D->isUsed(false)); in VisitVarDecl()
306 Var->setReferenced(D->isReferenced()); in VisitVarDecl()
312 LookupResult Previous(SemaRef, Var->getDeclName(), Var->getLocation(), in VisitVarDecl()
319 SemaRef.inferObjCARCLifetime(Var)) in VisitVarDecl()
320 Var->setInvalidDecl(); in VisitVarDecl()
322 SemaRef.CheckVariableDeclaration(Var, Previous); in VisitVarDecl()
325 D->getLexicalDeclContext()->addDecl(Var); in VisitVarDecl()
326 Owner->makeDeclVisibleInContext(Var); in VisitVarDecl()
328 Owner->addDecl(Var); in VisitVarDecl()
330 SemaRef.CurrentInstantiationScope->InstantiatedLocal(D, Var); in VisitVarDecl()
332 SemaRef.InstantiateAttrs(TemplateArgs, D, Var, LateAttrs, StartingScope); in VisitVarDecl()
336 if (Var->isStaticDataMember()) in VisitVarDecl()
337 SemaRef.Context.setInstantiatedFromStaticDataMember(Var, D, in VisitVarDecl()
340 if (Var->getAnyInitializer()) { in VisitVarDecl()
343 if (Var->isStaticDataMember() && !D->isOutOfLine()) in VisitVarDecl()
355 SemaRef.AddInitializerToDecl(Var, Init.take(), DirectInit, in VisitVarDecl()
358 SemaRef.ActOnUninitializedDecl(Var, TypeMayContainAuto); in VisitVarDecl()
362 Var->setInvalidDecl(); in VisitVarDecl()
366 } else if ((!Var->isStaticDataMember() || Var->isOutOfLine()) && in VisitVarDecl()
367 !Var->isCXXForRangeDecl()) in VisitVarDecl()
368 SemaRef.ActOnUninitializedDecl(Var, false); in VisitVarDecl()
372 if (!Var->isInvalidDecl() && Owner->isFunctionOrMethod() && !Var->isUsed() && in VisitVarDecl()
374 SemaRef.DiagnoseUnusedDecl(Var); in VisitVarDecl()
376 return Var; in VisitVarDecl()
2846 VarDecl *Var, in InstantiateStaticDataMemberDefinition() argument
2849 if (Var->isInvalidDecl()) in InstantiateStaticDataMemberDefinition()
2853 VarDecl *Def = Var->getInstantiatedFromStaticDataMember(); in InstantiateStaticDataMemberDefinition()
2864 Def = Var->getInstantiatedFromStaticDataMember(); in InstantiateStaticDataMemberDefinition()
2867 << 2 << Var->getDeclName() << Var->getDeclContext(); in InstantiateStaticDataMemberDefinition()
2869 } else if (Var->getTemplateSpecializationKind() in InstantiateStaticDataMemberDefinition()
2872 std::make_pair(Var, PointOfInstantiation)); in InstantiateStaticDataMemberDefinition()
2878 TemplateSpecializationKind TSK = Var->getTemplateSpecializationKind(); in InstantiateStaticDataMemberDefinition()
2891 Consumer.HandleCXXStaticMemberVarInstantiation(Var); in InstantiateStaticDataMemberDefinition()
2894 if (VarDecl *Def = Var->getDefinition()) { in InstantiateStaticDataMemberDefinition()
2897 Def->setTemplateSpecializationKind(Var->getTemplateSpecializationKind(), in InstantiateStaticDataMemberDefinition()
2902 InstantiatingTemplate Inst(*this, PointOfInstantiation, Var); in InstantiateStaticDataMemberDefinition()
2918 ContextRAII previousContext(*this, Var->getDeclContext()); in InstantiateStaticDataMemberDefinition()
2921 VarDecl *OldVar = Var; in InstantiateStaticDataMemberDefinition()
2922 Var = cast_or_null<VarDecl>(SubstDecl(Def, Var->getDeclContext(), in InstantiateStaticDataMemberDefinition()
2923 getTemplateInstantiationArgs(Var))); in InstantiateStaticDataMemberDefinition()
2927 if (Var) { in InstantiateStaticDataMemberDefinition()
2930 Var->setTemplateSpecializationKind(MSInfo->getTemplateSpecializationKind(), in InstantiateStaticDataMemberDefinition()
2932 DeclGroupRef DG(Var); in InstantiateStaticDataMemberDefinition()
3300 if (VarDecl *Var = dyn_cast<VarDecl>(Other)) in isInstantiationOf() local
3301 if (Var->isStaticDataMember()) in isInstantiationOf()
3302 return isInstantiationOfStaticDataMember(cast<VarDecl>(D), Var); in isInstantiationOf()
3594 VarDecl *Var = cast<VarDecl>(Inst.first); in PerformPendingInstantiations() local
3595 assert(Var->isStaticDataMember() && "Not a static data member?"); in PerformPendingInstantiations()
3599 if (Var->getMostRecentDecl()->isInvalidDecl()) in PerformPendingInstantiations()
3604 switch (Var->getMostRecentDecl()->getTemplateSpecializationKind()) { in PerformPendingInstantiations()
3613 if (Var != Var->getMostRecentDecl()) continue; in PerformPendingInstantiations()
3618 PrettyDeclStackTraceEntry CrashInfo(*this, Var, Var->getLocation(), in PerformPendingInstantiations()
3622 bool DefinitionRequired = Var->getTemplateSpecializationKind() == in PerformPendingInstantiations()
3624 InstantiateStaticDataMemberDefinition(/*FIXME:*/Inst.second, Var, true, in PerformPendingInstantiations()