Lines Matching refs:FD

76   bool checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD);
83 void checkCall_gets(const CallExpr *CE, const FunctionDecl *FD);
84 void checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD);
85 void checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD);
86 void checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD);
87 void checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD);
88 void checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD);
89 void checkCall_rand(const CallExpr *CE, const FunctionDecl *FD);
90 void checkCall_random(const CallExpr *CE, const FunctionDecl *FD);
91 void checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD);
108 const FunctionDecl *FD = CE->getDirectCallee();
110 if (!FD)
114 IdentifierInfo *II = FD->getIdentifier();
147 (this->*evalFunction)(CE, FD);
296 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) {
300 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
332 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) {
336 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
372 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) {
376 checkCall_mkstemp(CE, FD);
380 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
414 void WalkAST::checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) {
418 StringRef Name = FD->getIdentifier()->getName();
497 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) {
501 if (!checkCall_strCommon(CE, FD))
524 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) {
528 if (!checkCall_strCommon(CE, FD))
548 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) {
549 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
579 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) {
583 const FunctionProtoType *FTP = FD->getType()->getAs<FunctionProtoType>();
603 os1 << '\'' << *FD << "' is a poor random number generator";
607 os2 << "Function '" << *FD
622 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) {
626 const FunctionProtoType *FTP = FD->getType()->getAs<FunctionProtoType>();
650 void WalkAST::checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) {
677 const FunctionDecl *FD = CE->getDirectCallee();
678 if (!FD)
691 const IdentifierInfo *id = FD->getIdentifier();
701 const FunctionProtoType *FTP = FD->getType()->getAs<FunctionProtoType>();
718 os1 << "Return value is not checked in call to '" << *FD << '\'';
722 os2 << "The return value from the call to '" << *FD
723 << "' is not checked. If an error occurs in '" << *FD