Lines Matching defs:Family

159 static void printExpectedAllocName(raw_ostream &os, AllocationFamily Family);
163 static void printExpectedDeallocName(raw_ostream &os, AllocationFamily Family);
191 AllocationFamily Family;
194 : S(s), K(k), Family(family) {
204 AllocationFamily getAllocationFamily() const { return Family; }
208 return K == X.K && S == X.S && Family == X.Family;
231 Family.Profile(ID);
260 AllocationFamily Family,
528 AllocationFamily Family) const;
532 AllocationFamily Family) const;
548 AllocationFamily Family) const;
605 SVal Init, ProgramStateRef State, AllocationFamily Family) const;
619 AllocationFamily Family) const;
671 AllocationFamily Family, bool ReturnsNullOnFailure = false) const;
697 AllocationFamily Family, bool ReturnsNullOnFailure = false,
715 ProgramStateRef State, AllocationFamily Family,
780 std::optional<CheckKind> getCheckIfTracked(AllocationFamily Family,
791 AllocationFamily Family) const;
801 const Expr *DeallocExpr, AllocationFamily Family,
817 AllocationFamily Family) const;
1715 AllocationFamily Family) const {
1741 State = MallocUpdateRefState(C, NE, State, Family, Target);
1812 auto Family = AllocationFamily(AF_Custom, attrClassName);
1817 UnknownVal(), State, Family);
1819 return MallocMemAux(C, Call, UnknownVal(), UnknownVal(), State, Family);
1844 AllocationFamily Family) const {
1849 return MallocMemAux(C, Call, C.getSVal(SizeEx), Init, State, Family);
1855 AllocationFamily Family) const {
1871 AllocationFamily Family) const {
1905 State, C, TaintedSyms, Family);
1911 AllocationFamily Family) const {
1938 return MallocUpdateRefState(C, CE, State, Family);
1943 AllocationFamily Family,
1964 return State->set<RegionState>(Sym, RefState::getAllocated(Family, E));
1977 auto Family = AllocationFamily(AF_Custom, attrClassName);
1985 IsKnownToBeAllocated, Family);
1996 AllocationFamily Family,
2005 IsKnownToBeAllocated, Family, ReturnsNullOnFailure);
2086 static void printExpectedAllocName(raw_ostream &os, AllocationFamily Family) {
2088 switch (Family.Kind) {
2105 os << Family.CustomName.value();
2113 static void printExpectedDeallocName(raw_ostream &os, AllocationFamily Family) {
2114 switch (Family.Kind) {
2131 os << "function that takes ownership of '" << Family.CustomName.value()
2144 AllocationFamily Family, bool ReturnsNullOnFailure,
2190 if (Family.Kind != AF_Malloc || !isArgZERO_SIZE_PTR(State, C, ArgVal))
2192 Family);
2201 Family);
2219 Family);
2258 bool DeallocMatchesAlloc = RsBase->getAllocationFamily() == Family;
2273 Family, AllocExpr);
2281 Family);
2303 assert(!RsBase || (RsBase && RsBase->getAllocationFamily() == Family));
2316 RefState::getRelinquished(Family,
2320 RefState::getReleased(Family, ParentExpr));
2324 MallocChecker::getCheckIfTracked(AllocationFamily Family,
2326 switch (Family.Kind) {
2464 AllocationFamily Family) const {
2471 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family);
2499 printExpectedAllocName(os, Family);
2598 AllocationFamily Family,
2606 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family);
2786 AllocationFamily Family) const {
2792 std::optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family);
2825 AllocationFamily Family, bool SuffixWithN) const {
2876 C, Call, TotalSize, UndefinedVal(), StatePtrIsNull, Family);
2895 C, Call, StateSizeIsZero, 0, false, IsKnownToBeAllocated, Family))
2900 FreeMemAux(C, Call, State, 0, false, IsKnownToBeAllocated, Family)) {
2903 MallocMemAux(C, Call, TotalSize, UnknownVal(), stateFree, Family);
3000 AllocationFamily Family = RS->getAllocationFamily();
3002 if (Family.Kind == AF_Alloca)
3006 getCheckIfTracked(Family, true);
3712 const auto Family = RSCurr->getAllocationFamily();
3713 switch (Family.Kind) {
3879 AllocationFamily Family = RefS->getAllocationFamily();
3881 getCheckIfTracked(Family);
3883 CheckKind = getCheckIfTracked(Family, true);
3901 AllocationFamily Family(AF_InnerBuffer);
3902 return State->set<RegionState>(Sym, RefState::getReleased(Family, Origin));