Lines Matching refs:FD
59 bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
66 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
67 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
68 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
69 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
70 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
71 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
72 void checkCall_random(const CallExpr *CE, const FunctionDecl *FD);
73 void checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD);
90 const FunctionDecl *FD = CE->getDirectCallee();
92 if (!FD)
96 IdentifierInfo *II = FD->getIdentifier();
126 (this->*evalFunction)(CE, FD);
270 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) {
272 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens());
304 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) {
306 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens());
342 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) {
344 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens());
378 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) {
379 if (!checkCall_strCommon(CE, FD))
402 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) {
403 if (!checkCall_strCommon(CE, FD))
423 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) {
425 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens());
455 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) {
460 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens());
480 os1 << '\'' << *FD << "' is a poor random number generator";
484 os2 << "Function '" << *FD
499 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) {
504 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens());
528 void WalkAST::checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) {
549 const FunctionDecl *FD = CE->getDirectCallee();
550 if (!FD)
563 const IdentifierInfo *id = FD->getIdentifier();
574 = dyn_cast<FunctionProtoType>(FD->getType().IgnoreParens());
591 os1 << "Return value is not checked in call to '" << *FD << '\'';
595 os2 << "The return value from the call to '" << *FD
596 << "' is not checked. If an error occurs in '" << *FD