Lines Matching refs:NRVOCandidate
2507 const VarDecl *NRVOCandidate, in PerformMoveOrCopyInitialization() argument
2519 (NRVOCandidate || getCopyElisionCandidate(ResultType, Value, true))) { in PerformMoveOrCopyInitialization()
2662 const VarDecl *NRVOCandidate = nullptr; in ActOnCapScopeReturnStmt() local
2690 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in ActOnCapScopeReturnStmt()
2693 NRVOCandidate != nullptr); in ActOnCapScopeReturnStmt()
2694 ExprResult Res = PerformMoveOrCopyInitialization(Entity, NRVOCandidate, in ActOnCapScopeReturnStmt()
2703 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in ActOnCapScopeReturnStmt()
2713 NRVOCandidate); in ActOnCapScopeReturnStmt()
2718 if (CurCap->HasImplicitReturnType || NRVOCandidate) in ActOnCapScopeReturnStmt()
2972 const VarDecl *NRVOCandidate = nullptr; in BuildReturnStmt() local
2983 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in BuildReturnStmt()
2988 NRVOCandidate != nullptr); in BuildReturnStmt()
2989 ExprResult Res = PerformMoveOrCopyInitialization(Entity, NRVOCandidate, in BuildReturnStmt()
3022 Result = new (Context) ReturnStmt(ReturnLoc, RetValExp, NRVOCandidate); in BuildReturnStmt()