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 __anona3f378d70211::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,
460 AllocationFamily Family) const;
506 SVal Init, ProgramStateRef State, AllocationFamily Family);
519 ProgramStateRef State, AllocationFamily Family);
571 AllocationFamily Family, bool ReturnsNullOnFailure = false) const;
595 AllocationFamily Family, bool ReturnsNullOnFailure = false) const;
612 ProgramStateRef State, AllocationFamily Family,
676 std::optional<CheckKind> getCheckIfTracked(AllocationFamily Family,
687 AllocationFamily Family) const;
697 const Expr *DeallocExpr, AllocationFamily Family,
713 AllocationFamily Family) const;
1599 AllocationFamily Family) const { in processNewAllocation()
1619 State = MallocUpdateRefState(C, NE, State, Family, Target); in processNewAllocation()
1703 AllocationFamily Family) { in MallocMemAux() argument
1708 return MallocMemAux(C, Call, C.getSVal(SizeEx), Init, State, Family); in MallocMemAux()
1714 AllocationFamily Family) { in MallocMemAux() argument
1745 return MallocUpdateRefState(C, CE, State, Family); in MallocMemAux()
1750 AllocationFamily Family, in MallocUpdateRefState() argument
1769 return State->set<RegionState>(Sym, RefState::getAllocated(Family, E)); in MallocUpdateRefState()
1799 AllocationFamily Family, in FreeMemAux() argument
1808 IsKnownToBeAllocated, Family, ReturnsNullOnFailure); in FreeMemAux()
1865 static void printExpectedAllocName(raw_ostream &os, AllocationFamily Family) { in printExpectedAllocName() argument
1867 switch(Family) { in printExpectedAllocName()
1878 static void printExpectedDeallocName(raw_ostream &os, AllocationFamily Family) { in printExpectedDeallocName() argument
1879 switch(Family) { in printExpectedDeallocName()
1893 AllocationFamily Family, bool ReturnsNullOnFailure) const { in FreeMemAux() argument
1938 if (Family != AF_Malloc || !isArgZERO_SIZE_PTR(State, C, ArgVal)) in FreeMemAux()
1940 Family); in FreeMemAux()
1949 Family); in FreeMemAux()
1970 Family); in FreeMemAux()
2009 bool DeallocMatchesAlloc = RsBase->getAllocationFamily() == Family; in FreeMemAux()
2024 Family, AllocExpr); in FreeMemAux()
2032 Family); in FreeMemAux()
2054 assert(!RsBase || (RsBase && RsBase->getAllocationFamily() == Family)); in FreeMemAux()
2059 RefState::getRelinquished(Family, in FreeMemAux()
2063 RefState::getReleased(Family, ParentExpr)); in FreeMemAux()
2067 MallocChecker::getCheckIfTracked(AllocationFamily Family, in getCheckIfTracked() argument
2069 switch (Family) { in getCheckIfTracked()
2204 AllocationFamily Family) const { in HandleNonHeapDealloc()
2211 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family); in HandleNonHeapDealloc()
2239 printExpectedAllocName(os, Family); in HandleNonHeapDealloc()
2336 AllocationFamily Family, in HandleOffsetFree() argument
2344 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family); in HandleOffsetFree()
2524 AllocationFamily Family) const { in HandleFunctionPtrFree()
2530 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family); in HandleFunctionPtrFree()
2563 AllocationFamily Family, bool SuffixWithN) const { in ReallocMemAux() argument
2614 C, Call, TotalSize, UndefinedVal(), StatePtrIsNull, Family); in ReallocMemAux()
2632 C, Call, StateSizeIsZero, 0, false, IsKnownToBeAllocated, Family)) in ReallocMemAux()
2637 FreeMemAux(C, Call, State, 0, false, IsKnownToBeAllocated, Family)) { in ReallocMemAux()
2640 MallocMemAux(C, Call, TotalSize, UnknownVal(), stateFree, Family); in ReallocMemAux()
2736 AllocationFamily Family = RS->getAllocationFamily(); in HandleLeak() local
2738 if (Family == AF_Alloca) in HandleLeak()
2742 getCheckIfTracked(Family, true); in HandleLeak()
3418 const auto Family = RSCurr->getAllocationFamily(); in VisitNode() local
3419 switch (Family) { in VisitNode()
3563 AllocationFamily Family = RefS->getAllocationFamily(); in printState() local
3565 getCheckIfTracked(Family); in printState()
3567 CheckKind = getCheckIfTracked(Family, true); in printState()
3585 AllocationFamily Family = AF_InnerBuffer; in markReleased() local
3586 return State->set<RegionState>(Sym, RefState::getReleased(Family, Origin)); in markReleased()