Lines Matching defs:RS

94   static RefState getAllocatedOfSizeZero(const RefState *RS) {
95 return RefState(AllocatedOfSizeZero, RS->getStmt(),
96 RS->getAllocationFamily());
104 static RefState getEscaped(const RefState *RS) {
105 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily());
373 const Expr *DeallocExpr, const RefState *RS,
905 const RefState *RS = State->get<RegionState>(Sym);
906 if (RS) {
907 if (RS->isAllocated())
909 RefState::getAllocatedOfSizeZero(RS));
1506 const RefState *RS = C.getState()->get<RegionState>(Sym);
1507 assert(RS);
1508 return getCheckIfTracked(RS->getAllocationFamily(), IsALeakCheck);
1673 const RefState *RS,
1689 const Expr *AllocExpr = cast<Expr>(RS->getStmt());
1711 printExpectedDeallocName(os, RS->getAllocationFamily());
2065 const RefState *RS = C.getState()->get<RegionState>(Sym);
2066 assert(RS && "cannot leak an untracked symbol");
2067 AllocationFamily Family = RS->getAllocationFamily();
2133 RegionStateTy RS = state->get<RegionState>();
2137 for (RegionStateTy::iterator I = RS.begin(), E = RS.end(); I != E; ++I) {
2142 RS = F.remove(RS, I->first);
2178 C.addTransition(state->set<RegionState>(RS), N);
2294 const RefState *RS = C.getState()->get<RegionState>(Sym);
2295 return (RS && RS->isReleased());
2313 if (const RefState *RS = C.getState()->get<RegionState>(Sym)) {
2314 if (RS->isAllocatedOfSizeZero())
2315 ReportUseZeroAllocated(C, RS->getStmt()->getSourceRange(), Sym);
2346 RegionStateTy RS = state->get<RegionState>();
2347 for (RegionStateTy::iterator I = RS.begin(), E = RS.end(); I != E; ++I) {
2366 if (const RefState *RS = state->get<RegionState>(ReallocSym)) {
2367 if (RS->isReleased()) {
2370 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt()));
2544 static bool retTrue(const RefState *RS) {
2548 static bool checkIfNewOrNewArrayFamily(const RefState *RS) {
2549 return (RS->getAllocationFamily() == AF_CXXNewArray ||
2550 RS->getAllocationFamily() == AF_CXXNew);
2591 if (const RefState *RS = State->get<RegionState>(sym)) {
2592 if ((RS->isAllocated() || RS->isAllocatedOfSizeZero()) &&
2593 CheckRefState(RS)) {
2595 State = State->set<RegionState>(sym, RefState::getEscaped(RS));
2625 const RefState *RS = state->get<RegionState>(Sym);
2627 if (!RS)
2654 if (isAllocated(RS, RSPrev, S)) {
2658 } else if (isReleased(RS, RSPrev, S)) {
2662 } else if (isRelinquished(RS, RSPrev, S)) {
2665 } else if (isReallocFailedCheck(RS, RSPrev, S)) {
2708 RegionStateTy RS = State->get<RegionState>();
2710 if (!RS.isEmpty()) {
2712 for (RegionStateTy::iterator I = RS.begin(), E = RS.end(); I != E; ++I) {