• Home
  • Raw
  • Download

Lines Matching refs:AllocKind

28 enum class AllocKind {  enum
37 template <> struct FoldingSetTrait<AllocKind> {
38 static inline void Profile(AllocKind X, FoldingSetNodeID &ID) { in Profile()
51 AllocKind getKindOfNewOp(const CXXNewExpr *NE, const FunctionDecl *FD) const;
53 AllocKind &AKind, CheckerContext &C) const;
76 REGISTER_MAP_WITH_PROGRAMSTATE(RegionState, const MemRegion *, AllocKind) in REGISTER_MAP_WITH_PROGRAMSTATE() argument
92 AllocKind PointerArithChecker::getKindOfNewOp(const CXXNewExpr *NE, in getKindOfNewOp()
97 return AllocKind::Unknown; in getKindOfNewOp()
99 return AllocKind::Unknown; in getKindOfNewOp()
101 return AllocKind::Array; in getKindOfNewOp()
103 return AllocKind::SingleObject; in getKindOfNewOp()
121 AllocKind &AKind, in getArrayRegion()
133 if (const AllocKind *Kind = State->get<RegionState>(Region)) { in getArrayRegion()
135 if (*Kind == AllocKind::Array) in getArrayRegion()
168 AllocKind Kind = AllocKind::Unknown; in reportPointerArithMisuse()
188 if (Kind == AllocKind::Reinterpreted) in reportPointerArithMisuse()
192 if (Kind != AllocKind::SingleObject && in reportPointerArithMisuse()
239 State = State->set<RegionState>(Region, AllocKind::Array); in checkPostStmt()
249 AllocKind Kind = getKindOfNewOp(NE, FD); in checkPostStmt()
274 State = State->set<RegionState>(Region, AllocKind::Reinterpreted); in checkPostStmt()
291 if (const AllocKind *Kind = State->get<RegionState>(Region)) { in checkPreStmt()
292 if (*Kind == AllocKind::Array || *Kind == AllocKind::Reinterpreted) in checkPreStmt()
295 State = State->set<RegionState>(Region, AllocKind::Array); in checkPreStmt()