Lines Matching refs:CE
37 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
39 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
40 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
41 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
42 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
43 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
44 void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
45 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
55 const CallExpr *CE,
77 void UnixAPIChecker::CheckOpen(CheckerContext &C, const CallExpr *CE) const { in CheckOpen()
95 if (CE->getNumArgs() < 2) { in CheckOpen()
102 const Expr *oflagsEx = CE->getArg(1); in CheckOpen()
129 if (CE->getNumArgs() < 3) { in CheckOpen()
150 const CallExpr *CE) const { in CheckPthreadOnce()
155 if (CE->getNumArgs() < 1) in CheckPthreadOnce()
162 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckPthreadOnce()
185 report->addRange(CE->getArg(0)->getSourceRange()); in CheckPthreadOnce()
237 const CallExpr *CE, in BasicAllocationCheck() argument
242 if (CE->getNumArgs() != numArgs) in BasicAllocationCheck()
248 const Expr *arg = CE->getArg(sizeArg); in BasicAllocationCheck()
266 const CallExpr *CE) const { in CheckCallocZero()
267 unsigned int nArgs = CE->getNumArgs(); in CheckCallocZero()
276 const Expr *arg = CE->getArg(i); in CheckCallocZero()
302 const CallExpr *CE) const { in CheckMallocZero()
303 BasicAllocationCheck(C, CE, 1, 0, "malloc"); in CheckMallocZero()
307 const CallExpr *CE) const { in CheckReallocZero()
308 BasicAllocationCheck(C, CE, 2, 1, "realloc"); in CheckReallocZero()
312 const CallExpr *CE) const { in CheckAllocaZero()
313 BasicAllocationCheck(C, CE, 1, 0, "alloca"); in CheckAllocaZero()
317 const CallExpr *CE) const { in CheckVallocZero()
318 BasicAllocationCheck(C, CE, 1, 0, "valloc"); in CheckVallocZero()
326 void UnixAPIChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
328 StringRef FName = C.getCalleeName(CE); in checkPreStmt()
344 (this->*SC)(C, CE); in checkPreStmt()