Home
last modified time | relevance | path

Searched refs:getAsFunction (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Analysis/
H A DProgramPoint.cpp104 << PC.getDecl()->getAsFunction()->getQualifiedNameAsString() in printJson()
113 << PC.getDecl()->getAsFunction()->getQualifiedNameAsString() in printJson()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp113 !(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 DParseTemplate.cpp1682 FunctionDecl *FunD = LPT.D->getAsFunction(); in ParseLateTemplatedFuncDef()
H A DParser.cpp1292 FunctionDecl *FnD = DP->getAsFunction(); in ParseFunctionDefinition()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DCastValueChecker.cpp263 const FunctionDecl *FD = Call.getDecl()->getAsFunction(); in addInstanceOfTransition()
494 const FunctionDecl *FD = Call.getDecl()->getAsFunction(); in evalCall()
H A DGenericTaintChecker.cpp933 const FunctionDecl *FDecl = CallDecl->getAsFunction(); in getPrintfFormatArgumentNum()
/llvm-project-15.0.7/clang/include/clang/Analysis/
H A DCallGraph.h198 return getDecl()->getAsFunction()->getDefinition(); in getDefinition()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCUDA.cpp683 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs()
910 FunctionDecl *OldFD = OldND->getAsFunction(); in checkCUDATargetOverload()
H A DSemaAccess.cpp1092 << 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 DSemaAvailability.cpp891 if (auto *FD = D->getAsFunction()) { in DiagnoseUnguardedAvailabilityViolations()
H A DSemaLookup.cpp3269 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 DAnalysisBasedWarnings.cpp682 if (D->getAsFunction() && D->getAsFunction()->isCPUDispatchMultiVersion()) in CheckFallThroughForBody()
H A DSemaDecl.cpp1445 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 DSema.cpp2511 if (const auto *FD = Fn->getAsFunction()) { in noteOverloads()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHover.cpp283 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 DDumpAST.cpp214 if (!ND || llvm::isa_and_nonnull<CXXConstructorDecl>(ND->getAsFunction()) || in getDetail()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclBase.h1093 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 DSuspiciousCallArgumentCheck.cpp622 const FunctionDecl *CalleeFuncDecl = CalleeDecl->getAsFunction(); in check()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp8787 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 DNotNullTerminatedResultCheck.cpp108 if (const FunctionDecl *FD = D->getAsFunction()) in getStrlenExpr()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclCXX.cpp1564 cast<ValueDecl>(ND->getAsFunction())->getType()->castAs<FunctionType>(); in getLambdaStaticInvoker()
1636 cast<CXXConversionDecl>(Conv->getUnderlyingDecl()->getAsFunction()) in GetConversionType()
H A DDeclBase.cpp218 FunctionDecl *Decl::getAsFunction() { in getAsFunction() function in Decl
H A DExprCXX.cpp1452 if (cast<CXXMethodDecl>(decl->getUnderlyingDecl()->getAsFunction()) in hasOnlyNonStaticMemberFunctions()
H A DDecl.cpp1879 if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(D->getAsFunction())) in isCXXInstanceMember()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenModule.cpp1464 ->getAsFunction() in UpdateMultiVersionNames()
1471 ->getAsFunction() in UpdateMultiVersionNames()
3708 ExistingDecl.getDecl()->getAsFunction()->isDefined()) { in emitCPUDispatchDefinition()
5004 if (const auto *FD = D->getAsFunction()) in getLLVMLinkageForDeclarator()

12