Lines Matching refs:CurCap
3530 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction()); in ActOnCapScopeReturnStmt() local
3531 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt()
3532 LambdaScopeInfo *CurLambda = dyn_cast<LambdaScopeInfo>(CurCap); in ActOnCapScopeReturnStmt()
3538 (HasDeducedReturnType || CurCap->HasImplicitReturnType)) { in ActOnCapScopeReturnStmt()
3559 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3560 CurCap->ReturnType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3562 AutoType *AT = CurCap->ReturnType->getContainedAutoType(); in ActOnCapScopeReturnStmt()
3569 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()
3570 } else if (CurCap->HasImplicitReturnType) { in ActOnCapScopeReturnStmt()
3588 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()
3603 if (CurCap->ReturnType.isNull()) in ActOnCapScopeReturnStmt()
3604 CurCap->ReturnType = FnRetType; in ActOnCapScopeReturnStmt()
3608 if (auto *CurBlock = dyn_cast<BlockScopeInfo>(CurCap)) { in ActOnCapScopeReturnStmt()
3613 } else if (auto *CurRegion = dyn_cast<CapturedRegionScopeInfo>(CurCap)) { in ActOnCapScopeReturnStmt()
3681 if (CurCap->HasImplicitReturnType || NRVOCandidate) in ActOnCapScopeReturnStmt()