• Home
  • Raw
  • Download

Lines Matching refs:AllocKind

26 enum class AllocKind {  enum
35 template <> struct FoldingSetTrait<AllocKind> {
36 static inline void Profile(AllocKind X, FoldingSetNodeID &ID) { in Profile()
49 AllocKind getKindOfNewOp(const CXXNewExpr *NE, const FunctionDecl *FD) const;
51 AllocKind &AKind, CheckerContext &C) const;
74 REGISTER_MAP_WITH_PROGRAMSTATE(RegionState, const MemRegion *, AllocKind) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
90 AllocKind PointerArithChecker::getKindOfNewOp(const CXXNewExpr *NE, in getKindOfNewOp()
95 return AllocKind::Unknown; in getKindOfNewOp()
97 return AllocKind::Unknown; in getKindOfNewOp()
99 return AllocKind::Array; in getKindOfNewOp()
101 return AllocKind::SingleObject; in getKindOfNewOp()
119 AllocKind &AKind, in getArrayRegion()
131 if (const AllocKind *Kind = State->get<RegionState>(Region)) { in getArrayRegion()
133 if (*Kind == AllocKind::Array) in getArrayRegion()
165 AllocKind Kind = AllocKind::Unknown; in reportPointerArithMisuse()
185 if (Kind == AllocKind::Reinterpreted) in reportPointerArithMisuse()
189 if (Kind != AllocKind::SingleObject && in reportPointerArithMisuse()
236 State = State->set<RegionState>(Region, AllocKind::Array); in checkPostStmt()
246 AllocKind Kind = getKindOfNewOp(NE, FD); in checkPostStmt()
271 State = State->set<RegionState>(Region, AllocKind::Reinterpreted); in checkPostStmt()
288 if (const AllocKind *Kind = State->get<RegionState>(Region)) { in checkPreStmt()
289 if (*Kind == AllocKind::Array || *Kind == AllocKind::Reinterpreted) in checkPreStmt()
292 State = State->set<RegionState>(Region, AllocKind::Array); in checkPreStmt()