Lines Matching refs:NRVOCandidate
2693 const VarDecl *NRVOCandidate, in PerformMoveOrCopyInitialization() argument
2705 (NRVOCandidate || getCopyElisionCandidate(ResultType, Value, true))) { in PerformMoveOrCopyInitialization()
2852 const VarDecl *NRVOCandidate = nullptr; in ActOnCapScopeReturnStmt() local
2880 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in ActOnCapScopeReturnStmt()
2883 NRVOCandidate != nullptr); in ActOnCapScopeReturnStmt()
2884 ExprResult Res = PerformMoveOrCopyInitialization(Entity, NRVOCandidate, in ActOnCapScopeReturnStmt()
2893 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in ActOnCapScopeReturnStmt()
2903 NRVOCandidate); in ActOnCapScopeReturnStmt()
2908 if (CurCap->HasImplicitReturnType || NRVOCandidate) in ActOnCapScopeReturnStmt()
3221 const VarDecl *NRVOCandidate = nullptr; in BuildReturnStmt() local
3232 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in BuildReturnStmt()
3237 NRVOCandidate != nullptr); in BuildReturnStmt()
3238 ExprResult Res = PerformMoveOrCopyInitialization(Entity, NRVOCandidate, in BuildReturnStmt()
3271 Result = new (Context) ReturnStmt(ReturnLoc, RetValExp, NRVOCandidate); in BuildReturnStmt()