Home | History | Annotate | Download | only in Checkers

Lines Matching defs:Family

68   unsigned Family : 29; // Rest of 32-bit word, currently just an allocation
69 // family.
71 RefState(Kind k, const Stmt *s, unsigned family)
72 : S(s), K(k), Family(family) {
73 assert(family != AF_None);
82 return (AllocationFamily)Family;
87 return K == X.K && S == X.S && Family == X.Family;
90 static RefState getAllocated(unsigned family, const Stmt *s) {
91 return RefState(Allocated, s, family);
97 static RefState getReleased(unsigned family, const Stmt *s) {
98 return RefState(Released, s, family);
100 static RefState getRelinquished(unsigned family, const Stmt *s) {
101 return RefState(Relinquished, s, family);
110 ID.AddInteger(Family);
242 /// \brief Determine family of a deallocation expression.
252 /// family derived from the DeallocExpr.
256 /// family.
257 void printExpectedDeallocName(raw_ostream &os, AllocationFamily Family) const;
265 AllocationFamily Family,
282 AllocationFamily Family = AF_Malloc);
286 AllocationFamily Family = AF_Malloc);
297 AllocationFamily Family = AF_Malloc);
352 /// Tells if a given family/call/symbol is tracked by the current checker.
354 /// family/call/symbol.
355 Optional<CheckKind> getCheckIfTracked(AllocationFamily Family,
566 AllocationFamily Family,
580 if (Family == AF_Malloc && CheckFree) {
585 if (Family == AF_Malloc && CheckAlloc) {
592 if (Family == AF_IfNameIndex && CheckFree) {
597 if (Family == AF_IfNameIndex && CheckAlloc) {
602 if (Family == AF_Alloca && CheckAlloc) {
608 if (Family != AF_Malloc)
1064 AllocationFamily Family) {
1069 Init, State, Family);
1076 AllocationFamily Family) {
1113 return MallocUpdateRefState(C, CE, State, Family);
1119 AllocationFamily Family) {
1134 return State->set<RegionState>(Sym, RefState::getAllocated(Family, E));
1278 AllocationFamily Family = getAllocationFamily(C, E);
1280 switch(Family) {
1291 AllocationFamily Family) const {
1292 switch(Family) {
1441 AllocationFamily Family = RsBase ? RsBase->getAllocationFamily()
1446 RefState::getRelinquished(Family,
1450 RefState::getReleased(Family, ParentExpr));
1454 MallocChecker::getCheckIfTracked(AllocationFamily Family,
1456 switch (Family) {
1478 llvm_unreachable("no family");
1481 llvm_unreachable("unhandled family");
2059 AllocationFamily Family = RS->getAllocationFamily();
2061 if (Family == AF_Alloca)
2065 CheckKind = getCheckIfTracked(Family, true);
2696 AllocationFamily Family = RefS->getAllocationFamily();
2697 Optional<MallocChecker::CheckKind> CheckKind = getCheckIfTracked(Family);
2699 CheckKind = getCheckIfTracked(Family, true);