Home | History | Annotate | Download | only in Checkers

Lines Matching refs:FD

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);
118 const FunctionDecl *FD = CE->getDirectCallee();
120 if (!FD)
124 IdentifierInfo *II = FD->getIdentifier();
157 (this->*evalFunction)(CE, FD);
306 void WalkAST::checkCall_gets(const CallExpr *CE, const FunctionDecl *FD) {
310 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
342 void WalkAST::checkCall_getpw(const CallExpr *CE, const FunctionDecl *FD) {
346 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
382 void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) {
386 checkCall_mkstemp(CE, FD);
390 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
424 void WalkAST::checkCall_mkstemp(const CallExpr *CE, const FunctionDecl *FD) {
428 StringRef Name = FD->getIdentifier()->getName();
507 void WalkAST::checkCall_strcpy(const CallExpr *CE, const FunctionDecl *FD) {
511 if (!checkCall_strCommon(CE, FD))
534 void WalkAST::checkCall_strcat(const CallExpr *CE, const FunctionDecl *FD) {
538 if (!checkCall_strCommon(CE, FD))
558 bool WalkAST::checkCall_strCommon(const CallExpr *CE, const FunctionDecl *FD) {
559 const FunctionProtoType *FPT = FD->getType()->getAs<FunctionProtoType>();
589 void WalkAST::checkCall_rand(const CallExpr *CE, const FunctionDecl *FD) {
593 const FunctionProtoType *FTP = FD->getType()->getAs<FunctionProtoType>();
612 os1 << '\'' << *FD << "' is a poor random number generator";
616 os2 << "Function '" << *FD
632 void WalkAST::checkCall_random(const CallExpr *CE, const FunctionDecl *FD) {
636 const FunctionProtoType *FTP = FD->getType()->getAs<FunctionProtoType>();
660 void WalkAST::checkCall_vfork(const CallExpr *CE, const FunctionDecl *FD) {
687 const FunctionDecl *FD = CE->getDirectCallee();
688 if (!FD)
701 const IdentifierInfo *id = FD->getIdentifier();
711 const FunctionProtoType *FTP = FD->getType()->getAs<FunctionProtoType>();
728 os1 << "Return value is not checked in call to '" << *FD << '\'';
732 os2 << "The return value from the call to '" << *FD
733 << "' is not checked. If an error occurs in '" << *FD