Lines Matching defs:FDecl
97 bool checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl,
144 getTaintPropagationRule(const FunctionDecl *FDecl,
199 const FunctionDecl *FDecl,
233 if ( (BId = FDecl->getMemoryFunctionKind()) )
252 if (C.isCLibraryFunction(FDecl, "snprintf") ||
253 C.isCLibraryFunction(FDecl, "sprintf"))
255 else if (C.isCLibraryFunction(FDecl, "strcpy") ||
256 C.isCLibraryFunction(FDecl, "stpcpy") ||
257 C.isCLibraryFunction(FDecl, "strcat"))
259 else if (C.isCLibraryFunction(FDecl, "bcopy"))
261 else if (C.isCLibraryFunction(FDecl, "strdup") ||
262 C.isCLibraryFunction(FDecl, "strdupa"))
264 else if (C.isCLibraryFunction(FDecl, "wcsdup"))
295 const FunctionDecl *FDecl = C.getCalleeDecl(CE);
296 if (!FDecl || FDecl->getKind() != Decl::Function)
299 StringRef Name = C.getCalleeName(FDecl);
305 TaintPropagationRule::getTaintPropagationRule(FDecl, Name, C);
372 const FunctionDecl *FDecl = C.getCalleeDecl(CE);
373 if (!FDecl || FDecl->getKind() != Decl::Function)
376 StringRef Name = C.getCalleeName(FDecl);
409 const FunctionDecl *FDecl = C.getCalleeDecl(CE);
410 if (!FDecl || FDecl->getKind() != Decl::Function)
413 StringRef Name = C.getCalleeName(FDecl);
420 if (checkTaintedBufferSize(CE, FDecl, C))
612 const FunctionDecl *FDecl = C.getCalleeDecl(CE);
613 if (!FDecl)
615 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) {
699 const FunctionDecl *FDecl,
704 if ( (BId = FDecl->getMemoryFunctionKind()) )
719 if (C.isCLibraryFunction(FDecl, "malloc") ||
720 C.isCLibraryFunction(FDecl, "calloc") ||
721 C.isCLibraryFunction(FDecl, "alloca"))
723 else if (C.isCLibraryFunction(FDecl, "memccpy"))
725 else if (C.isCLibraryFunction(FDecl, "realloc"))
727 else if (C.isCLibraryFunction(FDecl, "bcopy"))