| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantStringInitCheck.cpp | 133 if (const auto *FDecl = Result.Nodes.getNodeAs<FieldDecl>("fieldDecl")) { in check() local 136 SourceRange ReplaceRange(FDecl->getLocation(), FDecl->getEndLoc()); in check() 137 diag(FDecl->getLocation(), "redundant string initialization") in check() 138 << FixItHint::CreateReplacement(ReplaceRange, FDecl->getName()); in check()
|
| H A D | IdentifierNamingCheck.cpp | 977 const auto *FDecl = in isParamInMainLikeFunction() local 979 if (!FDecl) in isParamInMainLikeFunction() 981 if (FDecl->isMain()) in isParamInMainLikeFunction() 985 if (FDecl->getAccess() != AS_public && FDecl->getAccess() != AS_none) in isParamInMainLikeFunction() 989 if (!FDecl->getDeclName().isIdentifier()) in isParamInMainLikeFunction() 1014 if (!IsIntType(FDecl->getReturnType())) in isParamInMainLikeFunction() 1016 if (FDecl->getNumParams() < 2 || FDecl->getNumParams() > 3) in isParamInMainLikeFunction() 1018 if (!IsIntType(FDecl->parameters()[0]->getType())) in isParamInMainLikeFunction() 1023 if (FDecl->getNumParams() == 3 && in isParamInMainLikeFunction() 1031 return Matcher.match(FDecl->getName()); in isParamInMainLikeFunction() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | TargetLibraryInfoTest.cpp | 43 ::testing::AssertionResult isLibFunc(const Function *FDecl, in isLibFunc() argument 47 if (!FDecl) in isLibFunc() 51 if (!TLI.getLibFunc(*FDecl, F)) in isLibFunc()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProTypeVarargCheck.cpp | 157 const auto *FDecl = dyn_cast<FunctionDecl>(C->getCalleeDecl()); in hasSingleVariadicArgumentWithValue() local 158 if (!FDecl) in hasSingleVariadicArgumentWithValue() 161 auto N = FDecl->getNumParams(); // Number of parameters without '...' in hasSingleVariadicArgumentWithValue()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetLibraryInfo.h | 121 bool getLibFunc(const Function &FDecl, LibFunc &F) const; 298 bool getLibFunc(const Function &FDecl, LibFunc &F) const { in getLibFunc() argument 299 return Impl->getLibFunc(FDecl, F); in getLibFunc()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 2421 << FDecl; in CheckBuiltinFunctionCall() 5544 if (FDecl) { in CheckNonNullArguments() 5566 if (FDecl && (isa<FunctionDecl>(FDecl) || isa<ObjCMethodDecl>(FDecl))) { in CheckNonNullArguments() 5699 << ParamName << (FDecl != nullptr) << FDecl; in CheckArgAlignment() 5715 if (FDecl) { in checkCall() 5731 : FDecl && isa<FunctionDecl>(FDecl) in checkCall() 5733 : FDecl && isa<ObjCMethodDecl>(FDecl) in checkCall() 5750 if (FDecl) { in checkCall() 5787 if (FDecl && FDecl->hasAttr<AllocAlignAttr>()) { in checkCall() 10851 if (!FDecl) in emitReplacement() [all …]
|
| H A D | SemaExpr.cpp | 1021 (FDecl && FDecl->hasAttr<CFAuditedTransferAttr>()))) { in DefaultVariadicArgumentPromotion() 3176 if (FDecl->getBuiltinID() && FDecl->isImplicit()) in UseArgumentDependentLookup() 6017 if (FDecl) in ConvertArgumentsForCall() 6752 if (FDecl && FDecl->getBuiltinID()) { in BuildCallExpr() 6920 unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0); in BuildResolvedCallExpr() 6923 if (FDecl && FDecl->hasAttr<AnyX86InterruptAttr>()) { in BuildResolvedCallExpr() 7065 if (FDecl && !FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr() 7077 if (FDecl && FDecl->hasAttr<CUDAGlobalAttr>()) in BuildResolvedCallExpr() 7127 (!FDecl || (!FDecl->isImplicit() && in BuildResolvedCallExpr() 7131 << (FDecl != nullptr) << FDecl; in BuildResolvedCallExpr() [all …]
|
| H A D | SemaCodeComplete.cpp | 3691 auto FDecl = Result.getFunction(); in getParameterComment() local 3692 if (!FDecl) in getParameterComment() 3694 if (ArgIndex < FDecl->getNumParams()) in getParameterComment() 3695 return Ctx.getRawCommentForAnyRedecl(FDecl->getParamDecl(ArgIndex)); in getParameterComment() 3890 FunctionDecl *FDecl = getFunction(); in CreateSignatureString() local 3898 } else if (FDecl) { in CreateSignatureString() 3903 AddResultTypeChunk(S.Context, Policy, FDecl, QualType(), Result); in CreateSignatureString() 3907 FDecl->getDeclName().print(OS, Policy); in CreateSignatureString() 3921 AddOverloadParameterChunks(S.getASTContext(), Policy, FDecl, Proto, in CreateSignatureString()
|
| H A D | SemaOverload.cpp | 13248 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13250 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc())) in FinishOverloadedCallExpr() 13252 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13253 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr() 13309 FunctionDecl *FDecl = (*Best)->Function; in FinishOverloadedCallExpr() local 13310 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl); in FinishOverloadedCallExpr() 13311 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc, in FinishOverloadedCallExpr()
|
| H A D | SemaLookup.cpp | 3269 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() local 3273 addAssociatedClassesAndNamespaces(Result, FDecl->getType()); in FindAssociatedClassesAndNamespaces()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 63 if (const auto *FDecl = dyn_cast<FunctionDecl>(DRE->getDecl())) in isBuiltinUnreachable() local 64 return FDecl->getIdentifier() && in isBuiltinUnreachable() 65 FDecl->getBuiltinID() == Builtin::BI__builtin_unreachable; in isBuiltinUnreachable()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | LowerTypeTests.cpp | 1055 Function *FDecl; in importFunction() local 1059 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1061 FDecl->setVisibility(GlobalValue::HiddenVisibility); in importFunction() 1065 FDecl = Function::Create(F->getFunctionType(), GlobalValue::ExternalLinkage, in importFunction() 1067 FDecl->setVisibility(Visibility); in importFunction() 1086 replaceWeakDeclarationWithJumpTablePtr(F, FDecl, isJumpTableCanonical); in importFunction() 1088 replaceCfiUses(F, FDecl, isJumpTableCanonical); in importFunction()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | GenericTaintChecker.cpp | 933 const FunctionDecl *FDecl = CallDecl->getAsFunction(); in getPrintfFormatArgumentNum() local 934 if (!FDecl) in getPrintfFormatArgumentNum() 939 for (const auto *Format : FDecl->specific_attrs<FormatAttr>()) { in getPrintfFormatArgumentNum()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | TargetLibraryInfo.cpp | 1806 bool TargetLibraryInfoImpl::getLibFunc(const Function &FDecl, in getLibFunc() argument 1811 if (FDecl.isIntrinsic()) return false; in getLibFunc() 1813 const Module *M = FDecl.getParent(); in getLibFunc() 1816 return getLibFunc(FDecl.getName(), F) && in getLibFunc() 1817 isValidProtoForLibFunc(*FDecl.getFunctionType(), F, *M); in getLibFunc()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 5696 FunctionDecl *FDecl, 11909 VariadicCallType getVariadicCallType(FunctionDecl *FDecl, 11947 bool GatherArgumentsForCall(SourceLocation CallLoc, FunctionDecl *FDecl, 11958 FunctionDecl *FDecl); 13048 bool CheckFunctionCall(FunctionDecl *FDecl, CallExpr *TheCall, 13055 void CheckConstructorCall(FunctionDecl *FDecl, QualType ThisType, 13061 void CheckArgAlignment(SourceLocation Loc, NamedDecl *FDecl, 13064 void checkCall(NamedDecl *FDecl, const FunctionProtoType *Proto, 13072 ExprResult CheckBuiltinFunctionCall(FunctionDecl *FDecl, 13216 const FunctionDecl *FDecl); [all …]
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 211 if (FunctionDecl *FDecl = dyn_cast<FunctionDecl>(*I)) { in HandleTopLevelDecl() local 216 if (FDecl->isThisDeclarationADefinition() && in HandleTopLevelDecl() 218 !FDecl->isTopLevelDeclInObjCContainer()) { in HandleTopLevelDecl() 219 FunctionDefinitionsSeen.push_back(FDecl); in HandleTopLevelDecl() 5834 FunctionDecl *FDecl = FunctionDefinitionsSeen[i]; in HandleTranslationUnit() local 5835 HandleTopLevelSingleDecl(FDecl); in HandleTranslationUnit()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Expr.cpp | 1483 auto *FDecl = getDirectCallee(); in getBuiltinCallee() local 1484 return FDecl ? FDecl->getBuiltinID() : 0; in getBuiltinCallee()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 2294 if (const FunctionDecl *FDecl = dyn_cast<FunctionDecl>(TargetDecl)) in ConstructAttributeList() local 2295 HasStrictReturn &= !FDecl->isExternC(); in ConstructAttributeList()
|