Lines Matching refs:FDecl
106 FunctionData(const FunctionDecl *FDecl, StringRef Name, in FunctionData()
108 : FDecl(FDecl), Name(Name), FullName(std::move(FullName)) {} in FunctionData()
119 const FunctionDecl *FDecl = Call.getDecl()->getAsFunction(); in create() local
120 if (!FDecl || (FDecl->getKind() != Decl::Function && in create()
121 FDecl->getKind() != Decl::CXXMethod)) in create()
124 StringRef Name = C.getCalleeName(FDecl); in create()
125 std::string FullName = FDecl->getQualifiedNameAsString(); in create()
129 return FunctionData{FDecl, Name, std::move(FullName)}; in create()
136 const FunctionDecl *const FDecl; member
471 assert(FData.FDecl); in getTaintPropagationRule()
475 const FunctionDecl *FDecl = FData.FDecl; in getTaintPropagationRule() local
477 if ((BId = FDecl->getMemoryFunctionKind())) { in getTaintPropagationRule()
497 const auto OneOf = [FDecl](const auto &... Name) { in getTaintPropagationRule()
502 0, (ret |= CheckerContext::isCLibraryFunction(FDecl, Name), 0)...}); in getTaintPropagationRule()
799 const FunctionDecl *FDecl = Call.getDecl()->getAsFunction(); in getPrintfFormatArgumentNum() local
800 if (!FDecl) in getPrintfFormatArgumentNum()
802 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum()
810 if (C.getCalleeName(FDecl).find("setproctitle") != StringRef::npos) { in getPrintfFormatArgumentNum()
887 const auto *FDecl = Call.getDecl()->getAsFunction(); in checkTaintedBufferSize() local
891 if ((BId = FDecl->getMemoryFunctionKind())) { in checkTaintedBufferSize()
908 if (CCtx::isCLibraryFunction(FDecl, "malloc") || in checkTaintedBufferSize()
909 CCtx::isCLibraryFunction(FDecl, "calloc") || in checkTaintedBufferSize()
910 CCtx::isCLibraryFunction(FDecl, "alloca")) in checkTaintedBufferSize()
912 else if (CCtx::isCLibraryFunction(FDecl, "memccpy")) in checkTaintedBufferSize()
914 else if (CCtx::isCLibraryFunction(FDecl, "realloc")) in checkTaintedBufferSize()
916 else if (CCtx::isCLibraryFunction(FDecl, "bcopy")) in checkTaintedBufferSize()