Lines Matching refs:CE

49   void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
51 void CheckOpen(CheckerContext &C, const CallExpr *CE) const;
52 void CheckOpenAt(CheckerContext &C, const CallExpr *CE) const;
53 void CheckPthreadOnce(CheckerContext &C, const CallExpr *CE) const;
56 const CallExpr *CE, OpenVariant Variant) const;
67 void checkPreStmt(const CallExpr *CE, CheckerContext &C) const;
74 void CheckCallocZero(CheckerContext &C, const CallExpr *CE) const;
75 void CheckMallocZero(CheckerContext &C, const CallExpr *CE) const;
76 void CheckReallocZero(CheckerContext &C, const CallExpr *CE) const;
77 void CheckReallocfZero(CheckerContext &C, const CallExpr *CE) const;
78 void CheckAllocaZero(CheckerContext &C, const CallExpr *CE) const;
79 void CheckAllocaWithAlignZero(CheckerContext &C, const CallExpr *CE) const;
80 void CheckVallocZero(CheckerContext &C, const CallExpr *CE) const;
87 const CallExpr *CE,
99 void UnixAPIMisuseChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
101 const FunctionDecl *FD = C.getCalleeDecl(CE); in checkPreStmt()
116 CheckOpen(C, CE); in checkPreStmt()
119 CheckOpenAt(C, CE); in checkPreStmt()
122 CheckPthreadOnce(C, CE); in checkPreStmt()
138 const CallExpr *CE) const { in CheckOpen()
139 CheckOpenVariant(C, CE, OpenVariant::Open); in CheckOpen()
143 const CallExpr *CE) const { in CheckOpenAt()
144 CheckOpenVariant(C, CE, OpenVariant::OpenAt); in CheckOpenAt()
148 const CallExpr *CE, in CheckOpenVariant() argument
177 if (CE->getNumArgs() < MinArgCount) { in CheckOpenVariant()
180 } else if (CE->getNumArgs() == MaxArgCount) { in CheckOpenVariant()
181 const Expr *Arg = CE->getArg(CreateModeArgIndex); in CheckOpenVariant()
195 } else if (CE->getNumArgs() > MaxArgCount) { in CheckOpenVariant()
203 CE->getArg(MaxArgCount)->getSourceRange()); in CheckOpenVariant()
223 const Expr *oflagsEx = CE->getArg(FlagsArgIndex); in CheckOpenVariant()
250 if (CE->getNumArgs() < MaxArgCount) { in CheckOpenVariant()
268 const CallExpr *CE) const { in CheckPthreadOnce()
273 if (CE->getNumArgs() < 1) in CheckPthreadOnce()
279 const MemRegion *R = C.getSVal(CE->getArg(0)).getAsRegion(); in CheckPthreadOnce()
301 report->addRange(CE->getArg(0)->getSourceRange()); in CheckPthreadOnce()
353 const CallExpr *CE, in BasicAllocationCheck() argument
358 if (CE->getNumArgs() != numArgs) in BasicAllocationCheck()
364 const Expr *arg = CE->getArg(sizeArg); in BasicAllocationCheck()
382 const CallExpr *CE) const { in CheckCallocZero()
383 unsigned int nArgs = CE->getNumArgs(); in CheckCallocZero()
392 const Expr *arg = CE->getArg(i); in CheckCallocZero()
418 const CallExpr *CE) const { in CheckMallocZero()
419 BasicAllocationCheck(C, CE, 1, 0, "malloc"); in CheckMallocZero()
423 const CallExpr *CE) const { in CheckReallocZero()
424 BasicAllocationCheck(C, CE, 2, 1, "realloc"); in CheckReallocZero()
428 const CallExpr *CE) const { in CheckReallocfZero()
429 BasicAllocationCheck(C, CE, 2, 1, "reallocf"); in CheckReallocfZero()
433 const CallExpr *CE) const { in CheckAllocaZero()
434 BasicAllocationCheck(C, CE, 1, 0, "alloca"); in CheckAllocaZero()
439 const CallExpr *CE) const { in CheckAllocaWithAlignZero()
440 BasicAllocationCheck(C, CE, 2, 0, "__builtin_alloca_with_align"); in CheckAllocaWithAlignZero()
444 const CallExpr *CE) const { in CheckVallocZero()
445 BasicAllocationCheck(C, CE, 1, 0, "valloc"); in CheckVallocZero()
448 void UnixAPIPortabilityChecker::checkPreStmt(const CallExpr *CE, in checkPreStmt() argument
450 const FunctionDecl *FD = C.getCalleeDecl(CE); in checkPreStmt()
465 CheckCallocZero(C, CE); in checkPreStmt()
468 CheckMallocZero(C, CE); in checkPreStmt()
471 CheckReallocZero(C, CE); in checkPreStmt()
474 CheckReallocfZero(C, CE); in checkPreStmt()
477 CheckAllocaZero(C, CE); in checkPreStmt()
480 CheckAllocaWithAlignZero(C, CE); in checkPreStmt()
483 CheckVallocZero(C, CE); in checkPreStmt()