/external/clang/lib/StaticAnalyzer/Checkers/ |
D | GenericTaintChecker.cpp | 97 bool checkTaintedBufferSize(const CallExpr *CE, const FunctionDecl *FDecl, 144 getTaintPropagationRule(const FunctionDecl *FDecl, 199 const FunctionDecl *FDecl, in REGISTER_SET_WITH_PROGRAMSTATE() 233 if ( (BId = FDecl->getMemoryFunctionKind()) ) in REGISTER_SET_WITH_PROGRAMSTATE() 252 if (C.isCLibraryFunction(FDecl, "snprintf") || in REGISTER_SET_WITH_PROGRAMSTATE() 253 C.isCLibraryFunction(FDecl, "sprintf")) in REGISTER_SET_WITH_PROGRAMSTATE() 255 else if (C.isCLibraryFunction(FDecl, "strcpy") || in REGISTER_SET_WITH_PROGRAMSTATE() 256 C.isCLibraryFunction(FDecl, "stpcpy") || in REGISTER_SET_WITH_PROGRAMSTATE() 257 C.isCLibraryFunction(FDecl, "strcat")) in REGISTER_SET_WITH_PROGRAMSTATE() 259 else if (C.isCLibraryFunction(FDecl, "bcopy")) in REGISTER_SET_WITH_PROGRAMSTATE() [all …]
|
D | CStringChecker.cpp | 1872 const FunctionDecl *FDecl = C.getCalleeDecl(CE); in evalCall() local 1874 if (!FDecl) in evalCall() 1879 if (C.isCLibraryFunction(FDecl, "memcpy")) in evalCall() 1881 else if (C.isCLibraryFunction(FDecl, "mempcpy")) in evalCall() 1883 else if (C.isCLibraryFunction(FDecl, "memcmp")) in evalCall() 1885 else if (C.isCLibraryFunction(FDecl, "memmove")) in evalCall() 1887 else if (C.isCLibraryFunction(FDecl, "strcpy")) in evalCall() 1889 else if (C.isCLibraryFunction(FDecl, "strncpy")) in evalCall() 1891 else if (C.isCLibraryFunction(FDecl, "stpcpy")) in evalCall() 1893 else if (C.isCLibraryFunction(FDecl, "strcat")) in evalCall() [all …]
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 729 const NamedDecl *FDecl, in CheckNonNullArguments() argument 733 for (const auto *NonNull : FDecl->specific_attrs<NonNullAttr>()) { in CheckNonNullArguments() 740 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(FDecl)) in CheckNonNullArguments() 742 else if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(FDecl)) in CheckNonNullArguments() 756 void Sema::checkCall(NamedDecl *FDecl, ArrayRef<const Expr *> Args, in checkCall() argument 766 if (FDecl) { in checkCall() 767 for (const auto *I : FDecl->specific_attrs<FormatAttr>()) { in checkCall() 788 if (FDecl) { in checkCall() 789 CheckNonNullArguments(*this, FDecl, Args.data(), Loc); in checkCall() 792 for (const auto *I : FDecl->specific_attrs<ArgumentWithTypeTagAttr>()) in checkCall() [all …]
|
D | SemaExpr.cpp | 854 FunctionDecl *FDecl) { in DefaultVariadicArgumentPromotion() argument 859 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion() 2627 FunctionDecl *FDecl = cast<FunctionDecl>(D); in UseArgumentDependentLookup() local 2630 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup() 4040 Sema::getVariadicCallType(FunctionDecl *FDecl, const FunctionProtoType *Proto, in getVariadicCallType() argument 4043 if (dyn_cast_or_null<CXXConstructorDecl>(FDecl)) in getVariadicCallType() 4047 else if (FDecl) { in getVariadicCallType() 4048 if (CXXMethodDecl *Method = dyn_cast_or_null<CXXMethodDecl>(FDecl)) in getVariadicCallType() 4081 FunctionDecl *FDecl, in TryTypoCorrectionForCall() argument 4084 DeclarationName FuncName = FDecl->getDeclName(); in TryTypoCorrectionForCall() [all …]
|
D | SemaCodeComplete.cpp | 2824 FunctionDecl *FDecl = getFunction(); in CreateSignatureString() local 2825 AddResultTypeChunk(S.Context, Policy, FDecl, Result); in CreateSignatureString() 2828 if (!FDecl && !Proto) { in CreateSignatureString() 2840 if (FDecl) in CreateSignatureString() 2842 Result.getAllocator().CopyString(FDecl->getNameAsString())); in CreateSignatureString() 2848 unsigned NumParams = FDecl ? FDecl->getNumParams() : Proto->getNumParams(); in CreateSignatureString() 2856 if (FDecl) { in CreateSignatureString() 2857 ArgString = FDecl->getParamDecl(I)->getNameAsString(); in CreateSignatureString() 2858 ArgType = FDecl->getParamDecl(I)->getOriginalType(); in CreateSignatureString() 3852 FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); in CodeCompleteCall() local [all …]
|
D | SemaOverload.cpp | 10579 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 10581 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr() 10583 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 10584 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr() 10621 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 10622 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 10623 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr()
|
D | SemaLookup.cpp | 2306 FunctionDecl *FDecl = (*I)->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() local 2310 addAssociatedClassesAndNamespaces(Result, FDecl->getType()); in FindAssociatedClassesAndNamespaces()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 3566 FunctionDecl *FDecl, 7554 VariadicCallType getVariadicCallType(FunctionDecl *FDecl, 7579 bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, 7590 FunctionDecl *FDecl); 8200 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, 8207 void CheckConstructorCall(FunctionDecl *FDecl, 8212 void checkCall(NamedDecl *FDecl, ArrayRef<const Expr *> Args, 8285 const FunctionDecl *FDecl,
|
/external/clang/lib/AST/ |
D | Expr.cpp | 1220 const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl()); in getBuiltinCallee() local 1221 if (!FDecl) in getBuiltinCallee() 1224 if (!FDecl->getIdentifier()) in getBuiltinCallee() 1227 return FDecl->getBuiltinID(); in getBuiltinCallee()
|
/external/clang/lib/Rewrite/Frontend/ |
D | RewriteModernObjC.cpp | 208 if (FunctionDecl *FDecl = dyn_cast<FunctionDecl>(*I)) { in HandleTopLevelDecl() local 213 if (FDecl->isThisDeclarationADefinition() && in HandleTopLevelDecl() 215 !FDecl->isTopLevelDeclInObjCContainer()) { in HandleTopLevelDecl() 216 FunctionDefinitionsSeen.push_back(FDecl); in HandleTopLevelDecl() 5973 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local 5974 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()
|