/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | GenericTaintChecker.cpp | 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, "bcop 198 getTaintPropagationRule( const FunctionDecl *FDecl, StringRef Name, CheckerContext &C) argument 295 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local 372 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local 409 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local 612 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local 698 checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl, CheckerContext &C) const argument [all...] |
H A D | CStringChecker.cpp | 1872 const FunctionDecl *FDecl = C.getCalleeDecl(CE); local 1874 if (!FDecl) 1879 if (C.isCLibraryFunction(FDecl, "memcpy")) 1881 else if (C.isCLibraryFunction(FDecl, "mempcpy")) 1883 else if (C.isCLibraryFunction(FDecl, "memcmp")) 1885 else if (C.isCLibraryFunction(FDecl, "memmove")) 1887 else if (C.isCLibraryFunction(FDecl, "strcpy")) 1889 else if (C.isCLibraryFunction(FDecl, "strncpy")) 1891 else if (C.isCLibraryFunction(FDecl, "stpcpy")) 1893 else if (C.isCLibraryFunction(FDecl, "strca [all...] |
/external/clang/lib/AST/ |
H A D | Expr.cpp | 1220 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); local 1221 if (!FDecl) 1224 if (!FDecl->getIdentifier()) 1227 return FDecl->getBuiltinID();
|
/external/clang/lib/Sema/ |
H A D | SemaCodeComplete.cpp | 2824 FunctionDecl *FDecl = getFunction(); local 2825 AddResultTypeChunk(S.Context, Policy, FDecl, Result); 2828 if (!FDecl && !Proto) { 2840 if (FDecl) 2842 Result.getAllocator().CopyString(FDecl->getNameAsString())); 2848 unsigned NumParams = FDecl ? FDecl->getNumParams() : Proto->getNumParams(); 2856 if (FDecl) { 2857 ArgString = FDecl->getParamDecl(I)->getNameAsString(); 2858 ArgType = FDecl 3852 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); local [all...] |
H A D | SemaLookup.cpp | 2306 FunctionDecl *FDecl = (*I)->getUnderlyingDecl()->getAsFunction(); local 2310 addAssociatedClassesAndNamespaces(Result, FDecl->getType());
|
H A D | SemaChecking.cpp | 729 const NamedDecl *FDecl, 733 for (const auto *NonNull : FDecl->specific_attrs<NonNullAttr>()) { 740 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(FDecl)) 742 else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(FDecl)) 756 void Sema::checkCall(NamedDecl *FDecl, ArrayRef<const Expr *> Args, argument 766 if (FDecl) { 767 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { 788 if (FDecl) { 789 CheckNonNullArguments(*this, FDecl, Args.data(), Loc); 792 for (const auto *I : FDecl 728 CheckNonNullArguments(Sema &S, const NamedDecl *FDecl, const Expr * const *ExprArgs, SourceLocation CallSiteLoc) argument 799 CheckConstructorCall(FunctionDecl *FDecl, ArrayRef<const Expr *> Args, const FunctionProtoType *Proto, SourceLocation Loc) argument 811 CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, const FunctionProtoType *Proto) argument 1287 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl()); local 1951 FunctionDecl *FDecl = cast<FunctionDecl>(DRE->getDecl()); local 3759 getAbsoluteValueFunctionKind(const FunctionDecl *FDecl) argument 3814 const FunctionDecl *FDecl = nullptr; local 3873 IsFunctionStdAbs(const FunctionDecl *FDecl) argument 3896 CheckAbsoluteValueFunction(const CallExpr *Call, const FunctionDecl *FDecl, IdentifierInfo *FnInfo) argument [all...] |
H A D | SemaOverload.cpp | 10579 FunctionDecl *FDecl = (*Best)->Function; local 10581 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) 10583 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); 10584 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, 10621 FunctionDecl *FDecl = (*Best)->Function; local 10622 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); 10623 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc,
|
H A D | SemaExpr.cpp | 854 FunctionDecl *FDecl) { 859 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { 2627 FunctionDecl *FDecl = cast<FunctionDecl>(D); local 2630 if (FDecl->getBuiltinID() && FDecl->isImplicit()) 4040 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, argument 4043 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl)) 4047 else if (FDecl) { 4048 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) 853 DefaultVariadicArgumentPromotion(Expr *E, VariadicCallType CT, FunctionDecl *FDecl) argument 4080 TryTypoCorrectionForCall(Sema &S, Expr *Fn, FunctionDecl *FDecl, ArrayRef<Expr *> Args) argument 4127 ConvertArgumentsForCall(CallExpr *Call, Expr *Fn, FunctionDecl *FDecl, const FunctionProtoType *Proto, ArrayRef<Expr *> Args, SourceLocation RParenLoc, bool IsExecConfig) argument 4243 GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, const FunctionProtoType *Proto, unsigned FirstParam, ArrayRef<Expr *> Args, SmallVectorImpl<Expr *> &AllArgs, VariadicCallType CallType, bool AllowExplicit, bool IsListInitialization) argument 4652 FunctionDecl *FDecl = dyn_cast_or_null<FunctionDecl>(NDecl); local [all...] |
/external/clang/lib/Rewrite/Frontend/ |
H A D | RewriteModernObjC.cpp | 208 if (FunctionDecl *FDecl = dyn_cast<FunctionDecl>(*I)) { 213 if (FDecl->isThisDeclarationADefinition() && 215 !FDecl->isTopLevelDeclInObjCContainer()) { 216 FunctionDefinitionsSeen.push_back(FDecl); 5973 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; local 5974 HandleTopLevelSingleDecl(FDecl);
|