Lines Matching refs:CE
79 void VisitCallExpr(CallExpr *CE);
87 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
93 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
94 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
95 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
96 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
97 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
98 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
99 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
100 void checkCall_random(const CallExpr *CE, const FunctionDecl *FD);
101 void checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD);
102 void checkUncheckedReturnValue(CallExpr *CE);
116 void WalkAST::VisitCallExpr(CallExpr *CE) { in VisitCallExpr() argument
118 const FunctionDecl *FD = CE->getDirectCallee(); in VisitCallExpr()
157 (this->*evalFunction)(CE, FD); in VisitCallExpr()
160 VisitChildren(CE); in VisitCallExpr()
166 if (CallExpr *CE = dyn_cast<CallExpr>(Child)) in VisitCompoundStmt() local
167 checkUncheckedReturnValue(CE); in VisitCompoundStmt()
306 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_gets() argument
328 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_gets()
334 CELoc, CE->getCallee()->getSourceRange()); in checkCall_gets()
342 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_getpw() argument
368 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_getpw()
374 CELoc, CE->getCallee()->getSourceRange()); in checkCall_getpw()
382 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mktemp() argument
386 checkCall_mkstemp(CE, FD); in checkCall_mktemp()
409 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mktemp()
416 CELoc, CE->getCallee()->getSourceRange()); in checkCall_mktemp()
424 void WalkAST::checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_mkstemp() argument
440 unsigned numArgs = CE->getNumArgs(); in checkCall_mkstemp()
445 dyn_cast<StringLiteral>(CE->getArg((unsigned)ArgSuffix.first) in checkCall_mkstemp()
462 const Expr *suffixEx = CE->getArg((unsigned)ArgSuffix.second); in checkCall_mkstemp()
481 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_mkstemp()
507 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcpy() argument
511 if (!checkCall_strCommon(CE, FD)) in checkCall_strcpy()
516 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_strcpy()
525 CELoc, CE->getCallee()->getSourceRange()); in checkCall_strcpy()
534 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strcat() argument
538 if (!checkCall_strCommon(CE, FD)) in checkCall_strcat()
543 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_strcat()
552 CELoc, CE->getCallee()->getSourceRange()); in checkCall_strcat()
558 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_strCommon() argument
589 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_rand() argument
621 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_rand()
624 CE->getCallee()->getSourceRange()); in checkCall_rand()
632 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_random() argument
646 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_random()
652 "instead", CELoc, CE->getCallee()->getSourceRange()); in checkCall_random()
660 void WalkAST::checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) { in checkCall_vfork() argument
666 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkCall_vfork()
675 CELoc, CE->getCallee()->getSourceRange()); in checkCall_vfork()
683 void WalkAST::checkUncheckedReturnValue(CallExpr *CE) { in checkUncheckedReturnValue() argument
687 const FunctionDecl *FD = CE->getDirectCallee(); in checkUncheckedReturnValue()
737 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC); in checkUncheckedReturnValue()
740 CE->getCallee()->getSourceRange()); in checkUncheckedReturnValue()