Lines Matching defs:Var
299 } else if (VarDecl *Var = dyn_cast<VarDecl>(ManglingContextDecl)) {
300 if (Var->getDeclContext()->isRecord())
819 FieldDecl *Sema::buildInitCaptureField(LambdaScopeInfo *LSI, VarDecl *Var) {
821 Context, LSI->Lambda, Var->getLocation(), Var->getLocation(),
822 nullptr, Var->getType(), Var->getTypeSourceInfo(), nullptr, false,
828 LSI->addCapture(Var, /*isBlock*/false, Var->getType()->isReferenceType(),
829 /*isNested*/false, Var->getLocation(), SourceLocation(),
830 Var->getType(), Var->getInit());
1000 VarDecl *Var = nullptr;
1015 Var = createLambdaInitCaptureVarDecl(C->Loc, C->InitCaptureType.get(),
1021 if (Var)
1022 PushOnScopeChains(Var, CurScope, false);
1057 Var = R.getAsSingle<VarDecl>();
1058 if (Var && DiagnoseUseOfDecl(Var, C->Loc))
1066 if (Var && LSI->isCaptured(Var)) {
1068 << C->Id << SourceRange(LSI->getCapture(Var).getLocation())
1082 if (!Var) {
1088 if (Var->isInvalidDecl())
1091 if (!Var->hasLocalStorage()) {
1093 Diag(Var->getLocation(), diag::note_previous_decl) << C->Id;
1101 if (Var->isParameterPack()) {
1109 } else if (Var->isParameterPack()) {
1114 buildInitCaptureField(LSI, Var);
1118 tryCaptureVariable(Var, C->Loc, Kind, EllipsisLoc);
1418 VarDecl *Var = From.getVariable();
1421 Var, From.getEllipsisLoc()));