reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaStmt.cpp
 3580   if (RetValExp && DiagnoseUnexpandedParameterPack(RetValExp))
 3580   if (RetValExp && DiagnoseUnexpandedParameterPack(RetValExp))
 3584     return ActOnCapScopeReturnStmt(ReturnLoc, RetValExp);
 3598     if (FD->isMain() && RetValExp)
 3599       if (isa<CXXBoolLiteralExpr>(RetValExp))
 3601           << RetValExp->getSourceRange();
 3622     if (RetValExp) {
 3624           ActOnFinishFullExpr(RetValExp, ReturnLoc, /*DiscardedValue*/ false);
 3627       RetValExp = ER.get();
 3629     return ReturnStmt::Create(Context, ReturnLoc, RetValExp,
 3638       if (DeduceFunctionTypeFromReturnExpr(FD, ReturnLoc, RetValExp, AT)) {
 3651     if (RetValExp) {
 3652       if (isa<InitListExpr>(RetValExp)) {
 3667           << RetValExp->getSourceRange();
 3670         RetValExp = nullptr;
 3671       } else if (!RetValExp->isTypeDependent()) {
 3674         if (RetValExp->getType()->isVoidType()) {
 3683           ExprResult Result = RetValExp;
 3687           RetValExp = Result.get();
 3688           RetValExp = ImpCastExprToType(RetValExp,
 3688           RetValExp = ImpCastExprToType(RetValExp,
 3696             << RetValExp->getSourceRange();
 3713             << RetValExp->getSourceRange();
 3717       if (RetValExp) {
 3719             ActOnFinishFullExpr(RetValExp, ReturnLoc, /*DiscardedValue*/ false);
 3722         RetValExp = ER.get();
 3726     Result = ReturnStmt::Create(Context, ReturnLoc, RetValExp,
 3728   } else if (!RetValExp && !HasDependentReturnType) {
 3753     assert(RetValExp || HasDependentReturnType);
 3764     if (RetValExp)
 3765       NRVOCandidate = getCopyElisionCandidate(FnRetType, RetValExp, CES_Strict);
 3766     if (!HasDependentReturnType && !RetValExp->isTypeDependent()) {
 3772                                                        RetType, RetValExp);
 3777       RetValExp = Res.getAs<Expr>();
 3786         Res = PerformCopyInitialization(Entity, ReturnLoc, RetValExp);
 3791         RetValExp = Res.getAs<Expr>();
 3794       CheckReturnValExpr(RetValExp, FnRetType, ReturnLoc, isObjCMethod, Attrs,
 3798     if (RetValExp) {
 3800           ActOnFinishFullExpr(RetValExp, ReturnLoc, /*DiscardedValue*/ false);
 3803       RetValExp = ER.get();
 3805     Result = ReturnStmt::Create(Context, ReturnLoc, RetValExp, NRVOCandidate);