Lines Matching refs:CurCap
3587 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction()); in ActOnCapScopeReturnStmt() local
3588 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt()
3589 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3596 (HasDeducedReturnType || CurCap->HasImplicitReturnType)) { in ActOnCapScopeReturnStmt()
3617 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3618 CurCap->ReturnType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3620 AutoType *AT = CurCap->ReturnType->getContainedAutoType(); in ActOnCapScopeReturnStmt()
3627 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3628 } else if (CurCap->HasImplicitReturnType) { in ActOnCapScopeReturnStmt()
3646 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()
3661 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3662 CurCap->ReturnType = FnRetType; in ActOnCapScopeReturnStmt()
3666 if (auto *CurBlock = dyn_cast<BlockScopeInfo>(CurCap)) { in ActOnCapScopeReturnStmt()
3671 } else if (auto *CurRegion = dyn_cast<CapturedRegionScopeInfo>(CurCap)) { in ActOnCapScopeReturnStmt()
3739 if (CurCap->HasImplicitReturnType || NRVOCandidate) in ActOnCapScopeReturnStmt()
3745 if (auto *CurBlock = dyn_cast<BlockScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3746 CurBlock && CurCap->HasImplicitReturnType && RetValExp && in ActOnCapScopeReturnStmt()