• Home
  • Raw
  • Download

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 CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const;
45 void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
46 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
56 const CallExpr *CE,
91 void UnixAPIChecker::CheckOpen(CheckerContext &C, const CallExpr *CE) const { in CheckOpen()
94 if (CE->getNumArgs() < 2) { in CheckOpen()
98 } else if (CE->getNumArgs() == 3) { in CheckOpen()
99 const Expr *Arg = CE->getArg(2); in CheckOpen()
107 } else if (CE->getNumArgs() > 3) { in CheckOpen()
110 CE->getArg(3)->getSourceRange()); in CheckOpen()
130 const Expr *oflagsEx = CE->getArg(1); in CheckOpen()
156 if (CE->getNumArgs() < 3) { in CheckOpen()
169 const CallExpr *CE) const { in CheckPthreadOnce()
174 if (CE->getNumArgs() < 1) in CheckPthreadOnce()
181 state->getSVal(CE->getArg(0), C.getLocationContext()).getAsRegion(); in CheckPthreadOnce()
204 report->addRange(CE->getArg(0)->getSourceRange()); in CheckPthreadOnce()
256 const CallExpr *CE, in BasicAllocationCheck() argument
261 if (CE->getNumArgs() != numArgs) in BasicAllocationCheck()
267 const Expr *arg = CE->getArg(sizeArg); in BasicAllocationCheck()
285 const CallExpr *CE) const { in CheckCallocZero()
286 unsigned int nArgs = CE->getNumArgs(); in CheckCallocZero()
295 const Expr *arg = CE->getArg(i); in CheckCallocZero()
321 const CallExpr *CE) const { in CheckMallocZero()
322 BasicAllocationCheck(C, CE, 1, 0, "malloc"); in CheckMallocZero()
326 const CallExpr *CE) const { in CheckReallocZero()
327 BasicAllocationCheck(C, CE, 2, 1, "realloc"); in CheckReallocZero()
331 const CallExpr *CE) const { in CheckReallocfZero()
332 BasicAllocationCheck(C, CE, 2, 1, "reallocf"); in CheckReallocfZero()
336 const CallExpr *CE) const { in CheckAllocaZero()
337 BasicAllocationCheck(C, CE, 1, 0, "alloca"); in CheckAllocaZero()
341 const CallExpr *CE) const { in CheckVallocZero()
342 BasicAllocationCheck(C, CE, 1, 0, "valloc"); in CheckVallocZero()
350 void UnixAPIChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
352 const FunctionDecl *FD = C.getCalleeDecl(CE); in checkPreStmt()
373 (this->*SC)(C, CE); in checkPreStmt()