Lines Matching refs:refVars
5607 static Expr *EvalVal(Expr *E, SmallVectorImpl<DeclRefExpr *> &refVars,
5609 static Expr *EvalAddr(Expr* E, SmallVectorImpl<DeclRefExpr *> &refVars,
5619 SmallVector<DeclRefExpr *, 8> refVars; in CheckReturnStackAddr() local
5625 stackE = EvalAddr(RetValExp, refVars, /*ParentDecl=*/nullptr); in CheckReturnStackAddr()
5627 stackE = EvalVal(RetValExp, refVars, /*ParentDecl=*/nullptr); in CheckReturnStackAddr()
5635 if (refVars.empty()) { in CheckReturnStackAddr()
5643 diagLoc = refVars[0]->getLocStart(); in CheckReturnStackAddr()
5644 diagRange = refVars[0]->getSourceRange(); in CheckReturnStackAddr()
5661 for (unsigned i = 0, e = refVars.size(); i != e; ++i) { in CheckReturnStackAddr()
5662 VarDecl *VD = cast<VarDecl>(refVars[i]->getDecl()); in CheckReturnStackAddr()
5666 SourceRange range = (i < e-1) ? refVars[i+1]->getSourceRange() in CheckReturnStackAddr()
5699 static Expr *EvalAddr(Expr *E, SmallVectorImpl<DeclRefExpr *> &refVars, in EvalAddr() argument
5729 refVars.push_back(DR); in EvalAddr()
5730 return EvalAddr(V->getInit(), refVars, ParentDecl); in EvalAddr()
5742 return EvalVal(U->getSubExpr(), refVars, ParentDecl); in EvalAddr()
5763 return EvalAddr(Base, refVars, ParentDecl); in EvalAddr()
5776 if (Expr *LHS = EvalAddr(LHSExpr, refVars, ParentDecl)) in EvalAddr()
5784 return EvalAddr(C->getRHS(), refVars, ParentDecl); in EvalAddr()
5796 return EvalAddr(cast<ExprWithCleanups>(E)->getSubExpr(), refVars, in EvalAddr()
5820 return EvalAddr(SubExpr, refVars, ParentDecl); in EvalAddr()
5823 return EvalVal(SubExpr, refVars, ParentDecl); in EvalAddr()
5829 return EvalAddr(SubExpr, refVars, ParentDecl); in EvalAddr()
5841 refVars, ParentDecl)) in EvalAddr()
5855 static Expr *EvalVal(Expr *E, SmallVectorImpl<DeclRefExpr *> &refVars, in EvalVal() argument
5878 return EvalVal(cast<ExprWithCleanups>(E)->getSubExpr(), refVars,ParentDecl); in EvalVal()
5903 refVars.push_back(DR); in EvalVal()
5904 return EvalVal(V->getInit(), refVars, V); in EvalVal()
5919 return EvalAddr(U->getSubExpr(), refVars, ParentDecl); in EvalVal()
5928 return EvalAddr(cast<ArraySubscriptExpr>(E)->getBase(), refVars,ParentDecl); in EvalVal()
5932 return EvalAddr(cast<OMPArraySectionExpr>(E)->getBase(), refVars, in EvalVal()
5945 if (Expr *LHS = EvalVal(LHSExpr, refVars, ParentDecl)) in EvalVal()
5953 return EvalVal(C->getRHS(), refVars, ParentDecl); in EvalVal()
5969 return EvalVal(M->getBase(), refVars, ParentDecl); in EvalVal()
5975 refVars, ParentDecl)) in EvalVal()