Lines Matching refs:Family
69 unsigned Family : 29; // Rest of 32-bit word, currently just an allocation
70 // family.
72 RefState(Kind k, const Stmt *s, unsigned family)
73 : S(s), K(k), Family(family) {
74 assert(family != AF_None);
83 return (AllocationFamily)Family;
88 return K == X.K && S == X.S && Family == X.Family;
91 static RefState getAllocated(unsigned family, const Stmt *s) {
92 return RefState(Allocated, s, family);
98 static RefState getReleased(unsigned family, const Stmt *s) {
99 return RefState(Released, s, family);
101 static RefState getRelinquished(unsigned family, const Stmt *s) {
102 return RefState(Relinquished, s, family);
111 ID.AddInteger(Family);
245 /// \brief Determine family of a deallocation expression.
255 /// family derived from the DeallocExpr.
259 /// family.
260 void printExpectedDeallocName(raw_ostream &os, AllocationFamily Family) const;
268 AllocationFamily Family,
285 AllocationFamily Family = AF_Malloc);
289 AllocationFamily Family = AF_Malloc);
300 AllocationFamily Family = AF_Malloc);
355 /// Tells if a given family/call/symbol is tracked by the current checker.
357 /// family/call/symbol.
358 Optional<CheckKind> getCheckIfTracked(AllocationFamily Family,
575 AllocationFamily Family,
589 if (Family == AF_Malloc && CheckFree) {
594 if (Family == AF_Malloc && CheckAlloc) {
602 if (Family == AF_IfNameIndex && CheckFree) {
607 if (Family == AF_IfNameIndex && CheckAlloc) {
612 if (Family == AF_Alloca && CheckAlloc) {
618 if (Family != AF_Malloc)
1072 AllocationFamily Family) {
1077 Init, State, Family);
1084 AllocationFamily Family) {
1121 return MallocUpdateRefState(C, CE, State, Family);
1127 AllocationFamily Family) {
1142 return State->set<RegionState>(Sym, RefState::getAllocated(Family, E));
1286 AllocationFamily Family = getAllocationFamily(C, E);
1288 switch(Family) {
1299 AllocationFamily Family) const {
1300 switch(Family) {
1449 AllocationFamily Family = RsBase ? RsBase->getAllocationFamily()
1454 RefState::getRelinquished(Family,
1458 RefState::getReleased(Family, ParentExpr));
1462 MallocChecker::getCheckIfTracked(AllocationFamily Family,
1464 switch (Family) {
1486 llvm_unreachable("no family");
1489 llvm_unreachable("unhandled family");
2067 AllocationFamily Family = RS->getAllocationFamily();
2069 if (Family == AF_Alloca)
2073 CheckKind = getCheckIfTracked(Family, true);
2714 AllocationFamily Family = RefS->getAllocationFamily();
2715 Optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family);
2717 CheckKind = getCheckIfTracked(Family, true);