Lines Matching refs:CE

50   void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
52 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
53 void CheckOpenAt(CheckerContext &C, const CallExpr *CE) const;
55 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
56 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
57 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
58 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
59 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const;
60 void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
61 void CheckAllocaWithAlignZero(CheckerContext &C, const CallExpr *CE) const;
62 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
69 const CallExpr *CE, OpenVariant Variant) const;
76 const CallExpr *CE,
111 void UnixAPIChecker::CheckOpen(CheckerContext &C, const CallExpr *CE) const { in CheckOpen()
112 CheckOpenVariant(C, CE, OpenVariant::Open); in CheckOpen()
115 void UnixAPIChecker::CheckOpenAt(CheckerContext &C, const CallExpr *CE) const { in CheckOpenAt()
116 CheckOpenVariant(C, CE, OpenVariant::OpenAt); in CheckOpenAt()
120 const CallExpr *CE, in CheckOpenVariant() argument
149 if (CE->getNumArgs() < MinArgCount) { in CheckOpenVariant()
153 } else if (CE->getNumArgs() == MaxArgCount) { in CheckOpenVariant()
154 const Expr *Arg = CE->getArg(CreateModeArgIndex); in CheckOpenVariant()
168 } else if (CE->getNumArgs() > MaxArgCount) { in CheckOpenVariant()
176 CE->getArg(MaxArgCount)->getSourceRange()); in CheckOpenVariant()
196 const Expr *oflagsEx = CE->getArg(FlagsArgIndex); in CheckOpenVariant()
222 if (CE->getNumArgs() < MaxArgCount) { in CheckOpenVariant()
240 const CallExpr *CE) const { in CheckPthreadOnce()
245 if (CE->getNumArgs() < 1) in CheckPthreadOnce()
251 const MemRegion *R = C.getSVal(CE->getArg(0)).getAsRegion(); in CheckPthreadOnce()
274 report->addRange(CE->getArg(0)->getSourceRange()); in CheckPthreadOnce()
326 const CallExpr *CE, in BasicAllocationCheck() argument
331 if (CE->getNumArgs() != numArgs) in BasicAllocationCheck()
337 const Expr *arg = CE->getArg(sizeArg); in BasicAllocationCheck()
355 const CallExpr *CE) const { in CheckCallocZero()
356 unsigned int nArgs = CE->getNumArgs(); in CheckCallocZero()
365 const Expr *arg = CE->getArg(i); in CheckCallocZero()
391 const CallExpr *CE) const { in CheckMallocZero()
392 BasicAllocationCheck(C, CE, 1, 0, "malloc"); in CheckMallocZero()
396 const CallExpr *CE) const { in CheckReallocZero()
397 BasicAllocationCheck(C, CE, 2, 1, "realloc"); in CheckReallocZero()
401 const CallExpr *CE) const { in CheckReallocfZero()
402 BasicAllocationCheck(C, CE, 2, 1, "reallocf"); in CheckReallocfZero()
406 const CallExpr *CE) const { in CheckAllocaZero()
407 BasicAllocationCheck(C, CE, 1, 0, "alloca"); in CheckAllocaZero()
411 const CallExpr *CE) const { in CheckAllocaWithAlignZero()
412 BasicAllocationCheck(C, CE, 2, 0, "__builtin_alloca_with_align"); in CheckAllocaWithAlignZero()
416 const CallExpr *CE) const { in CheckVallocZero()
417 BasicAllocationCheck(C, CE, 1, 0, "valloc"); in CheckVallocZero()
425 void UnixAPIChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
427 const FunctionDecl *FD = C.getCalleeDecl(CE); in checkPreStmt()
448 (this->*SC)(C, CE); in checkPreStmt()
464 (this->*SC)(C, CE); in checkPreStmt()