| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ProgramPoint.cpp | 104 << PC.getDecl()->getAsFunction()->getQualifiedNameAsString() in printJson() 113 << PC.getDecl()->getAsFunction()->getQualifiedNameAsString() in printJson()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseCXXInlineMethods.cpp | 113 !(FnD && FnD->getAsFunction() && in ParseCXXInlineMethodDef() 114 FnD->getAsFunction()->getReturnType()->getContainedAutoType()) && in ParseCXXInlineMethodDef() 124 FunctionDecl *FD = FnD->getAsFunction(); in ParseCXXInlineMethodDef() 179 FunctionDecl *FD = FnD->getAsFunction(); in ParseCXXInlineMethodDef()
|
| H A D | ParseTemplate.cpp | 1682 FunctionDecl *FunD = LPT.D->getAsFunction(); in ParseLateTemplatedFuncDef()
|
| H A D | Parser.cpp | 1292 FunctionDecl *FnD = DP->getAsFunction(); in ParseFunctionDefinition()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CastValueChecker.cpp | 263 const FunctionDecl *FD = Call.getDecl()->getAsFunction(); in addInstanceOfTransition() 494 const FunctionDecl *FD = Call.getDecl()->getAsFunction(); in evalCall()
|
| H A D | GenericTaintChecker.cpp | 933 const FunctionDecl *FDecl = CallDecl->getAsFunction(); in getPrintfFormatArgumentNum()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | CallGraph.h | 198 return getDecl()->getAsFunction()->getDefinition(); in getDefinition()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 683 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs() 910 FunctionDecl *OldFD = OldND->getAsFunction(); in checkCUDATargetOverload()
|
| H A D | SemaAccess.cpp | 1092 << isa<CXXDestructorDecl>(D->getAsFunction()); in TryDiagnoseProtectedAccess() 1807 assert(isa<CXXMethodDecl>(target->getAsFunction())); in CheckFriendAccess() 1816 CXXMethodDecl *method = cast<CXXMethodDecl>(target->getAsFunction()); in CheckFriendAccess()
|
| H A D | SemaAvailability.cpp | 891 if (auto *FD = D->getAsFunction()) { in DiagnoseUnguardedAvailabilityViolations()
|
| H A D | SemaLookup.cpp | 3269 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces() 3759 NoteOverloadCandidate(*I, (*I)->getUnderlyingDecl()->getAsFunction()); in LookupLiteralOperator() 3795 FunctionDecl *OldFD = Old->getAsFunction(); in insert() 3796 FunctionDecl *NewFD = New->getAsFunction(); in insert()
|
| H A D | AnalysisBasedWarnings.cpp | 682 if (D->getAsFunction() && D->getAsFunction()->isCPUDispatchMultiVersion()) in CheckFallThroughForBody()
|
| H A D | SemaDecl.cpp | 1445 FunctionDecl *FD = D->getAsFunction(); in ActOnReenterFunctionContext() 3544 FunctionDecl *Old = OldD->getAsFunction(); in MergeFunctionDecl() 3564 ->getAsFunction(); in MergeFunctionDecl() 10919 if (D->getAsFunction()->getMultiVersionKind() != MultiVersionKind::None) in PreviousDeclsHaveMultiVersionAttribute() 11043 FunctionDecl *CurFD = ND->getAsFunction(); in CheckMultiVersionAdditionalDecl() 11210 if (!OldDecl || !OldDecl->getAsFunction() || in CheckMultiVersionFunction() 11220 FunctionDecl *OldFD = OldDecl->getAsFunction(); in CheckMultiVersionFunction() 11374 OldMD = dyn_cast_or_null<CXXMethodDecl>(OldDecl->getAsFunction()); in CheckFunctionDeclaration() 14921 if (const FunctionDecl *FD = D->getAsFunction()) { in canSkipFunctionBody() 14936 if (FunctionDecl *FD = Decl->getAsFunction()) in ActOnSkippedFunctionBody() [all …]
|
| H A D | Sema.cpp | 2511 if (const auto *FD = Fn->getAsFunction()) { in noteOverloads()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Hover.cpp | 283 return D->getAsFunction(); in getUnderlyingFunction() 303 } else if (const auto *FD = D->getAsFunction()) in getDeclForComment() 605 } else if (const FunctionDecl *FD = D->getAsFunction()) { in getHoverContents()
|
| H A D | DumpAST.cpp | 214 if (!ND || llvm::isa_and_nonnull<CXXConstructorDecl>(ND->getAsFunction()) || in getDetail()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclBase.h | 1093 FunctionDecl *getAsFunction() LLVM_READONLY; 1095 const FunctionDecl *getAsFunction() const { in getAsFunction() function 1096 return const_cast<Decl *>(this)->getAsFunction(); in getAsFunction()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | SuspiciousCallArgumentCheck.cpp | 622 const FunctionDecl *CalleeFuncDecl = CalleeDecl->getAsFunction(); in check()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndex.cpp | 8787 D ? dyn_cast_or_null<CXXConstructorDecl>(D->getAsFunction()) : nullptr; in clang_CXXConstructor_isDefaultConstructor() 8797 D ? dyn_cast_or_null<CXXConstructorDecl>(D->getAsFunction()) : nullptr; in clang_CXXConstructor_isCopyConstructor() 8807 D ? dyn_cast_or_null<CXXConstructorDecl>(D->getAsFunction()) : nullptr; in clang_CXXConstructor_isMoveConstructor() 8817 D ? dyn_cast_or_null<CXXConstructorDecl>(D->getAsFunction()) : nullptr; in clang_CXXConstructor_isConvertingConstructor() 8838 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr; in clang_CXXMethod_isPureVirtual() 8848 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr; in clang_CXXMethod_isConst() 8858 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr; in clang_CXXMethod_isDefaulted() 8868 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr; in clang_CXXMethod_isStatic() 8878 D ? dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction()) : nullptr; in clang_CXXMethod_isVirtual()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | NotNullTerminatedResultCheck.cpp | 108 if (const FunctionDecl *FD = D->getAsFunction()) in getStrlenExpr()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclCXX.cpp | 1564 cast<ValueDecl>(ND->getAsFunction())->getType()->castAs<FunctionType>(); in getLambdaStaticInvoker() 1636 cast<CXXConversionDecl>(Conv->getUnderlyingDecl()->getAsFunction()) in GetConversionType()
|
| H A D | DeclBase.cpp | 218 FunctionDecl *Decl::getAsFunction() { in getAsFunction() function in Decl
|
| H A D | ExprCXX.cpp | 1452 if (cast<CXXMethodDecl>(decl->getUnderlyingDecl()->getAsFunction()) in hasOnlyNonStaticMemberFunctions()
|
| H A D | Decl.cpp | 1879 if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction())) in isCXXInstanceMember()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 1464 ->getAsFunction() in UpdateMultiVersionNames() 1471 ->getAsFunction() in UpdateMultiVersionNames() 3708 ExistingDecl.getDecl()->getAsFunction()->isDefined()) { in emitCPUDispatchDefinition() 5004 if (const auto *FD = D->getAsFunction()) in getLLVMLinkageForDeclarator()
|