Searched refs:FnRetType (Results 1 – 2 of 2) sorted by relevance
3419 QualType FnRetType = CurCap->ReturnType; in ActOnCapScopeReturnStmt() local3458 CurCap->ReturnType = FnRetType = FD->getReturnType(); in ActOnCapScopeReturnStmt()3475 FnRetType = RetValExp->getType().getUnqualifiedType(); in ActOnCapScopeReturnStmt()3477 FnRetType = CurCap->ReturnType = Context.DependentTy; in ActOnCapScopeReturnStmt()3487 FnRetType = Context.VoidTy; in ActOnCapScopeReturnStmt()3493 CurCap->ReturnType = FnRetType; in ActOnCapScopeReturnStmt()3495 const VarDecl *NRVOCandidate = getCopyElisionCandidate(NRInfo, FnRetType); in ActOnCapScopeReturnStmt()3518 if (FnRetType->isDependentType()) { in ActOnCapScopeReturnStmt()3521 } else if (FnRetType->isVoidType()) { in ActOnCapScopeReturnStmt()3546 InitializedEntity::InitializeResult(ReturnLoc, FnRetType); in ActOnCapScopeReturnStmt()[all …]
1746 QualType const FnRetType = FD.getReturnType(); in makeGroDeclAndReturnStmt() local1747 assert(!FnRetType->isDependentType() && in makeGroDeclAndReturnStmt()1756 bool GroMatchesRetType = S.getASTContext().hasSameType(GroType, FnRetType); in makeGroDeclAndReturnStmt()1758 if (FnRetType->isVoidType()) { in makeGroDeclAndReturnStmt()1772 InitializedEntity::InitializeResult(Loc, FnRetType); in makeGroDeclAndReturnStmt()