Lines Matching refs:NRVOCandidate
2774 const VarDecl *NRVOCandidate, in PerformMoveOrCopyInitialization() argument
2789 if (AllowNRVO && !NRVOCandidate) in PerformMoveOrCopyInitialization()
2790 NRVOCandidate = getCopyElisionCandidate(ResultType, Value, true); in PerformMoveOrCopyInitialization()
2792 if (AllowNRVO && NRVOCandidate) { in PerformMoveOrCopyInitialization()
2824 NRVOCandidate->getType())) in PerformMoveOrCopyInitialization()
2953 const VarDecl *NRVOCandidate = nullptr; in ActOnCapScopeReturnStmt() local
2981 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in ActOnCapScopeReturnStmt()
2984 NRVOCandidate != nullptr); in ActOnCapScopeReturnStmt()
2985 ExprResult Res = PerformMoveOrCopyInitialization(Entity, NRVOCandidate, in ActOnCapScopeReturnStmt()
2994 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in ActOnCapScopeReturnStmt()
3004 NRVOCandidate); in ActOnCapScopeReturnStmt()
3009 if (CurCap->HasImplicitReturnType || NRVOCandidate) in ActOnCapScopeReturnStmt()
3341 const VarDecl *NRVOCandidate = nullptr; in BuildReturnStmt() local
3352 NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, false); in BuildReturnStmt()
3357 NRVOCandidate != nullptr); in BuildReturnStmt()
3358 ExprResult Res = PerformMoveOrCopyInitialization(Entity, NRVOCandidate, in BuildReturnStmt()
3391 Result = new (Context) ReturnStmt(ReturnLoc, RetValExp, NRVOCandidate); in BuildReturnStmt()