Home
last modified time | relevance | path

Searched refs:NRVOCandidate (Results 1 – 11 of 11) sorted by relevance

/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp3111 const VarDecl *NRVOCandidate, in TryMoveInitialization() argument
3148 NRVOCandidate->getType())) in TryMoveInitialization()
3190 const VarDecl *NRVOCandidate, in PerformMoveOrCopyInitialization() argument
3208 if (!NRVOCandidate) { in PerformMoveOrCopyInitialization()
3209 NRVOCandidate = getCopyElisionCandidate(ResultType, Value, CES_Default); in PerformMoveOrCopyInitialization()
3210 if (NRVOCandidate && in PerformMoveOrCopyInitialization()
3219 if (NRVOCandidate) { in PerformMoveOrCopyInitialization()
3220 TryMoveInitialization(*this, Entity, NRVOCandidate, ResultType, Value, in PerformMoveOrCopyInitialization()
3225 QualType QT = NRVOCandidate->getType(); in PerformMoveOrCopyInitialization()
3239 Str += NRVOCandidate->getDeclName().getAsString(); in PerformMoveOrCopyInitialization()
[all …]
DSemaCoroutine.cpp998 auto NRVOCandidate = this->getCopyElisionCandidate(E->getType(), E, CES_AsIfByStdMove); in BuildCoreturnStmt() local
999 if (NRVOCandidate) { in BuildCoreturnStmt()
1001 InitializedEntity::InitializeResult(Loc, E->getType(), NRVOCandidate); in BuildCoreturnStmt()
1003 Entity, NRVOCandidate, E->getType(), E); in BuildCoreturnStmt()
DSemaDecl.cpp14181 if (const VarDecl *NRVOCandidate = Returns[I]->getNRVOCandidate()) { in computeNRVO() local
14182 if (!NRVOCandidate->isNRVOVariable()) in computeNRVO()
/external/clang/lib/Sema/
DSemaStmt.cpp2774 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()
[all …]
DSemaDecl.cpp11383 if (const VarDecl *NRVOCandidate = Returns[I]->getNRVOCandidate()) { in computeNRVO() local
11384 if (!NRVOCandidate->isNRVOVariable()) in computeNRVO()
/external/llvm-project/clang/lib/AST/
DStmt.cpp1167 ReturnStmt::ReturnStmt(SourceLocation RL, Expr *E, const VarDecl *NRVOCandidate) in ReturnStmt() argument
1169 bool HasNRVOCandidate = NRVOCandidate != nullptr; in ReturnStmt()
1172 setNRVOCandidate(NRVOCandidate); in ReturnStmt()
1182 Expr *E, const VarDecl *NRVOCandidate) { in Create() argument
1183 bool HasNRVOCandidate = NRVOCandidate != nullptr; in Create()
1186 return new (Mem) ReturnStmt(RL, E, NRVOCandidate); in Create()
/external/clang/include/clang/AST/
DStmt.h1369 const VarDecl *NRVOCandidate; variable
1374 ReturnStmt(SourceLocation RL, Expr *E, const VarDecl *NRVOCandidate) in ReturnStmt() argument
1376 NRVOCandidate(NRVOCandidate) {} in ReturnStmt()
1393 const VarDecl *getNRVOCandidate() const { return NRVOCandidate; } in getNRVOCandidate()
1394 void setNRVOCandidate(const VarDecl *Var) { NRVOCandidate = Var; } in setNRVOCandidate()
/external/llvm-project/clang/include/clang/AST/
DStmt.h2746 ReturnStmt(SourceLocation RL, Expr *E, const VarDecl *NRVOCandidate);
2754 const VarDecl *NRVOCandidate);
/external/clang/lib/AST/
DASTImporter.cpp5151 VarDecl *NRVOCandidate = const_cast<VarDecl*>(S->getNRVOCandidate()); in VisitReturnStmt() local
5152 VarDecl *ToNRVOCandidate = cast_or_null<VarDecl>(Importer.Import(NRVOCandidate)); in VisitReturnStmt()
5153 if (!ToNRVOCandidate && NRVOCandidate) in VisitReturnStmt()
/external/clang/include/clang/Sema/
DSema.h2310 const VarDecl *NRVOCandidate,
/external/llvm-project/clang/include/clang/Sema/
DSema.h3313 const VarDecl *NRVOCandidate,