Lines Matching refs:CurCap
3418 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction()); in ActOnCapScopeReturnStmt() local
3419 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt()
3420 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3427 (HasDeducedReturnType || CurCap->HasImplicitReturnType)) { in ActOnCapScopeReturnStmt()
3448 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3449 CurCap->ReturnType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3451 AutoType *AT = CurCap->ReturnType->getContainedAutoType(); in ActOnCapScopeReturnStmt()
3458 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3459 } else if (CurCap->HasImplicitReturnType) { in ActOnCapScopeReturnStmt()
3477 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()
3492 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3493 CurCap->ReturnType = FnRetType; in ActOnCapScopeReturnStmt()
3497 if (auto *CurBlock = dyn_cast<BlockScopeInfo>(CurCap)) { in ActOnCapScopeReturnStmt()
3502 } else if (auto *CurRegion = dyn_cast<CapturedRegionScopeInfo>(CurCap)) { in ActOnCapScopeReturnStmt()
3570 if (CurCap->HasImplicitReturnType || NRVOCandidate) in ActOnCapScopeReturnStmt()
3576 if (auto *CurBlock = dyn_cast<BlockScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3577 CurBlock && CurCap->HasImplicitReturnType && RetValExp && in ActOnCapScopeReturnStmt()