Lines Matching refs:Family

125 static void printExpectedAllocName(raw_ostream &os, AllocationFamily Family);
129 static void printExpectedDeallocName(raw_ostream &os, AllocationFamily Family);
157 AllocationFamily Family; member in __anon0957485b0211::RefState
160 : S(s), K(k), Family(family) { in RefState()
170 AllocationFamily getAllocationFamily() const { return Family; } in getAllocationFamily()
174 return K == X.K && S == X.S && Family == X.Family; in operator ==()
197 ID.AddInteger(Family); in Profile()
226 AllocationFamily Family,
469 AllocationFamily Family) const;
473 AllocationFamily Family) const;
489 AllocationFamily Family) const;
535 SVal Init, ProgramStateRef State, AllocationFamily Family) const;
549 AllocationFamily Family) const;
601 AllocationFamily Family, bool ReturnsNullOnFailure = false) const;
627 AllocationFamily Family, bool ReturnsNullOnFailure = false,
645 ProgramStateRef State, AllocationFamily Family,
710 std::optional<CheckKind> getCheckIfTracked(AllocationFamily Family,
721 AllocationFamily Family) const;
731 const Expr *DeallocExpr, AllocationFamily Family,
747 AllocationFamily Family) const;
1579 AllocationFamily Family) const { in processNewAllocation()
1604 State = MallocUpdateRefState(C, NE, State, Family, Target); in processNewAllocation()
1688 AllocationFamily Family) const { in MallocMemAux()
1693 return MallocMemAux(C, Call, C.getSVal(SizeEx), Init, State, Family); in MallocMemAux()
1699 AllocationFamily Family) const { in reportTaintBug()
1715 AllocationFamily Family) const { in checkTaintedness()
1749 State, C, TaintedSyms, Family); in checkTaintedness()
1755 AllocationFamily Family) const { in MallocMemAux()
1772 ((Family == AF_Alloca) ? SVB.getAllocaRegionVal(CE, LCtx, Count) in MallocMemAux()
1790 return MallocUpdateRefState(C, CE, State, Family); in MallocMemAux()
1795 AllocationFamily Family, in MallocUpdateRefState() argument
1823 return State->set<RegionState>(Sym, RefState::getAllocated(Family, E)); in MallocUpdateRefState()
1853 AllocationFamily Family, in FreeMemAux() argument
1862 IsKnownToBeAllocated, Family, ReturnsNullOnFailure); in FreeMemAux()
1919 static void printExpectedAllocName(raw_ostream &os, AllocationFamily Family) { in printExpectedAllocName() argument
1921 switch(Family) { in printExpectedAllocName()
1932 static void printExpectedDeallocName(raw_ostream &os, AllocationFamily Family) { in printExpectedDeallocName() argument
1933 switch(Family) { in printExpectedDeallocName()
1948 AllocationFamily Family, bool ReturnsNullOnFailure, in FreeMemAux() argument
1994 if (Family != AF_Malloc || !isArgZERO_SIZE_PTR(State, C, ArgVal)) in FreeMemAux()
1996 Family); in FreeMemAux()
2005 Family); in FreeMemAux()
2023 Family); in FreeMemAux()
2062 bool DeallocMatchesAlloc = RsBase->getAllocationFamily() == Family; in FreeMemAux()
2077 Family, AllocExpr); in FreeMemAux()
2085 Family); in FreeMemAux()
2107 assert(!RsBase || (RsBase && RsBase->getAllocationFamily() == Family)); in FreeMemAux()
2112 RefState::getRelinquished(Family, in FreeMemAux()
2116 RefState::getReleased(Family, ParentExpr)); in FreeMemAux()
2120 MallocChecker::getCheckIfTracked(AllocationFamily Family, in getCheckIfTracked() argument
2122 switch (Family) { in getCheckIfTracked()
2257 AllocationFamily Family) const { in HandleNonHeapDealloc()
2264 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family); in HandleNonHeapDealloc()
2292 printExpectedAllocName(os, Family); in HandleNonHeapDealloc()
2389 AllocationFamily Family, in HandleOffsetFree() argument
2397 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family); in HandleOffsetFree()
2577 AllocationFamily Family) const { in HandleFunctionPtrFree()
2583 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family); in HandleFunctionPtrFree()
2616 AllocationFamily Family, bool SuffixWithN) const { in ReallocMemAux() argument
2667 C, Call, TotalSize, UndefinedVal(), StatePtrIsNull, Family); in ReallocMemAux()
2685 C, Call, StateSizeIsZero, 0, false, IsKnownToBeAllocated, Family)) in ReallocMemAux()
2690 FreeMemAux(C, Call, State, 0, false, IsKnownToBeAllocated, Family)) { in ReallocMemAux()
2693 MallocMemAux(C, Call, TotalSize, UnknownVal(), stateFree, Family); in ReallocMemAux()
2789 AllocationFamily Family = RS->getAllocationFamily(); in HandleLeak() local
2791 if (Family == AF_Alloca) in HandleLeak()
2795 getCheckIfTracked(Family, true); in HandleLeak()
3485 const auto Family = RSCurr->getAllocationFamily(); in VisitNode() local
3486 switch (Family) { in VisitNode()
3631 AllocationFamily Family = RefS->getAllocationFamily(); in printState() local
3633 getCheckIfTracked(Family); in printState()
3635 CheckKind = getCheckIfTracked(Family, true); in printState()
3653 AllocationFamily Family = AF_InnerBuffer; in markReleased() local
3654 return State->set<RegionState>(Sym, RefState::getReleased(Family, Origin)); in markReleased()