Lines Matching refs:MemRegion
57 void EmitStackError(CheckerContext &C, const MemRegion *R,
60 static SourceRange genName(raw_ostream &os, const MemRegion *R,
62 static SmallVector<const MemRegion *, 4>
64 static bool isArcManagedBlock(const MemRegion *R, CheckerContext &C);
65 static bool isNotInCurrentFrame(const MemRegion *R, CheckerContext &C);
69 SourceRange StackAddrEscapeChecker::genName(raw_ostream &os, const MemRegion *R, in genName()
113 bool StackAddrEscapeChecker::isArcManagedBlock(const MemRegion *R, in isArcManagedBlock()
120 bool StackAddrEscapeChecker::isNotInCurrentFrame(const MemRegion *R, in isNotInCurrentFrame()
137 SmallVector<const MemRegion *, 4>
140 SmallVector<const MemRegion *, 4> Regions; in getCapturedStackRegions()
145 const MemRegion *Region = Val.getAsRegion(); in getCapturedStackRegions()
153 const MemRegion *R, in EmitStackError()
186 for (const MemRegion *Region : getCapturedStackRegions(B, C)) { in checkAsyncExecutedBlockCaptures()
216 for (const MemRegion *Region : getCapturedStackRegions(B, C)) { in checkReturnedBlockCaptures()
263 const MemRegion *R = V.getAsRegion(); in checkPreStmt()
311 bool checkForDanglingStackVariable(const MemRegion *Referrer, in checkEndFunction()
312 const MemRegion *Referred) { in checkEndFunction()
335 SmallVector<std::pair<const MemRegion *, const MemRegion *>, 10> V; in checkEndFunction()
339 bool HandleBinding(StoreManager &SMgr, Store S, const MemRegion *Region, in checkEndFunction()
341 const MemRegion *VR = Val.getAsRegion(); in checkEndFunction()
379 const MemRegion *Referrer = P.first; in checkEndFunction()
380 const MemRegion *Referred = P.second; in checkEndFunction()