Lines Matching refs:Family
63 unsigned Family : 30; // Rest of 32-bit word, currently just an allocation
64 // family.
66 RefState(Kind k, const Stmt *s, unsigned family)
67 : S(s), K(k), Family(family) {
68 assert(family != AF_None);
76 return (AllocationFamily)Family;
81 return K == X.K && S == X.S && Family == X.Family;
84 static RefState getAllocated(unsigned family, const Stmt *s) {
85 return RefState(Allocated, s, family);
87 static RefState getReleased(unsigned family, const Stmt *s) {
88 return RefState(Released, s, family);
90 static RefState getRelinquished(unsigned family, const Stmt *s) {
91 return RefState(Relinquished, s, family);
100 ID.AddInteger(Family);
219 /// \brief Determine family of a deallocation expression.
229 /// family derived from the DeallocExpr.
233 /// family.
234 void printExpectedDeallocName(raw_ostream &os, AllocationFamily Family) const;
250 AllocationFamily Family = AF_Malloc) {
253 Init, State, Family);
259 AllocationFamily Family = AF_Malloc);
270 AllocationFamily Family = AF_Malloc);
319 /// Tells if a given family/call/symbol is tracked by the current checker.
321 /// family/call/symbol.
322 Optional<CheckKind> getCheckIfTracked(AllocationFamily Family) const;
860 AllocationFamily Family) {
895 return MallocUpdateRefState(C, CE, State, Family);
901 AllocationFamily Family) {
913 return State->set<RegionState>(Sym, RefState::getAllocated(Family, E));
1045 AllocationFamily Family = getAllocationFamily(C, E);
1047 switch(Family) {
1056 AllocationFamily Family) const {
1057 switch(Family) {
1189 AllocationFamily Family = RsBase ? RsBase->getAllocationFamily()
1194 RefState::getRelinquished(Family,
1198 RefState::getReleased(Family, ParentExpr));
1202 MallocChecker::getCheckIfTracked(AllocationFamily Family) const {
1203 switch (Family) {
1220 llvm_unreachable("no family");
1223 llvm_unreachable("unhandled family");
1741 AllocationFamily Family = RS->getAllocationFamily();
1742 Optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family);
1748 if (Family == AF_CXXNew || Family == AF_CXXNewArray)
2358 AllocationFamily Family = RefS->getAllocationFamily();
2359 Optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family);