Home | History | Annotate | Download | only in Sema

Lines Matching defs:Var

40 /// A lambda 'L' is capture-ready for 'V' (var or this) if:
299 } else if (VarDecl *Var = dyn_cast<VarDecl>(ManglingContextDecl)) {
300 if (Var->getDeclContext()->isRecord())
786 FieldDecl *Sema::buildInitCaptureField(LambdaScopeInfo *LSI, VarDecl *Var) {
788 Context, LSI->Lambda, Var->getLocation(), Var->getLocation(),
789 nullptr, Var->getType(), Var->getTypeSourceInfo(), nullptr, false,
795 LSI->addCapture(Var, /*isBlock*/false, Var->getType()->isReferenceType(),
796 /*isNested*/false, Var->getLocation(), SourceLocation(),
797 Var->getType(), Var->getInit());
964 VarDecl *Var = nullptr;
994 Var = createLambdaInitCaptureVarDecl(C->Loc, C->InitCaptureType.get(),
1000 if (Var)
1001 PushOnScopeChains(Var, CurScope, false);
1039 Var = R.getAsSingle<VarDecl>();
1040 if (Var && DiagnoseUseOfDecl(Var, C->Loc))
1048 if (Var && LSI->isCaptured(Var)) {
1050 << C->Id << SourceRange(LSI->getCapture(Var).getLocation())
1064 if (!Var) {
1070 if (Var->isInvalidDecl())
1073 if (!Var->hasLocalStorage()) {
1075 Diag(Var->getLocation(), diag::note_previous_decl) << C->Id;
1083 if (Var->isParameterPack()) {
1091 } else if (Var->isParameterPack()) {
1096 buildInitCaptureField(LSI, Var);
1100 tryCaptureVariable(Var, C->Loc, Kind, EllipsisLoc);
1373 auto *Var = Capture.getVariable();
1389 CXXScopeSpec(), DeclarationNameInfo(Var->getDeclName(), Loc), Var);
1449 Var->getIdentifier(), FieldType, Loc));
1544 VarDecl *Var = From.getVariable();
1547 Var, From.getEllipsisLoc()));