Lines Matching defs:RS
214 static RefState getAllocatedOfSizeZero(const RefState *RS) {
215 return RefState(AllocatedOfSizeZero, RS->getStmt(),
216 RS->getAllocationFamily());
224 static RefState getEscaped(const RefState *RS) {
225 return RefState(Escaped, RS->getStmt(), RS->getAllocationFamily());
797 const Expr *DeallocExpr, const RefState *RS,
1653 const RefState *RS = State->get<RegionState>(Sym);
1654 if (RS) {
1655 if (RS->isAllocated())
1657 RefState::getAllocatedOfSizeZero(RS));
2367 const RefState *RS = C.getState()->get<RegionState>(Sym);
2368 assert(RS);
2369 return getCheckIfTracked(RS->getAllocationFamily(), IsALeakCheck);
2540 const RefState *RS, SymbolRef Sym,
2557 const Expr *AllocExpr = cast<Expr>(RS->getStmt());
2579 printExpectedDeallocName(os, RS->getAllocationFamily());
2998 const RefState *RS = C.getState()->get<RegionState>(Sym);
2999 assert(RS && "cannot leak an untracked symbol");
3000 AllocationFamily Family = RS->getAllocationFamily();
3063 RegionStateTy RS = OldRS;
3065 for (auto [Sym, State] : RS) {
3070 RS = F.remove(RS, Sym);
3074 if (RS == OldRS) {
3111 C.addTransition(state->set<RegionState>(RS), N);
3268 const RefState *RS = C.getState()->get<RegionState>(Sym);
3269 return (RS && RS->isReleased());
3294 if (const RefState *RS = State->get<RegionState>(Sym))
3295 State = State->set<RegionState>(Sym, RefState::getEscaped(RS));
3316 if (const RefState *RS = C.getState()->get<RegionState>(Sym)) {
3317 if (RS->isAllocatedOfSizeZero())
3318 HandleUseZeroAlloc(C, RS->getStmt()->getSourceRange(), Sym);
3349 RegionStateTy RS = state->get<RegionState>();
3350 for (SymbolRef Sym : llvm::make_first_range(RS)) {
3369 if (const RefState *RS = state->get<RegionState>(ReallocSym)) {
3370 if (RS->isReleased()) {
3374 RefState::getAllocated(RS->getAllocationFamily(), RS->getStmt()));
3571 static bool checkIfNewOrNewArrayFamily(const RefState *RS) {
3572 return (RS->getAllocationFamily().Kind == AF_CXXNewArray ||
3573 RS->getAllocationFamily().Kind == AF_CXXNew);
3594 if (const RefState *RS = State->get<RegionState>(sym))
3595 if (RS->isAllocated() || RS->isAllocatedOfSizeZero())
3596 if (!IsConstPointerEscape || checkIfNewOrNewArrayFamily(RS))
3597 State = State->set<RegionState>(sym, RefState::getEscaped(RS));
3873 RegionStateTy RS = State->get<RegionState>();
3875 if (!RS.isEmpty()) {
3877 for (auto [Sym, Data] : RS) {