Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp104 << PC.getDecl()->getAsFunction()->getQualifiedNameAsString() in printJson()
113 << PC.getDecl()->getAsFunction()->getQualifiedNameAsString() in printJson()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp159 !(FnD && FnD->getAsFunction() && in ParseCXXInlineMethodDef()
160 FnD->getAsFunction()->getReturnType()->getContainedAutoType()) && in ParseCXXInlineMethodDef()
170 FunctionDecl *FD = FnD->getAsFunction(); in ParseCXXInlineMethodDef()
225 FunctionDecl *FD = FnD->getAsFunction(); in ParseCXXInlineMethodDef()
H A DParseTemplate.cpp1614 FunctionDecl *FunD = LPT.D->getAsFunction(); in ParseLateTemplatedFuncDef()
H A DParser.cpp1374 FunctionDecl *FnD = DP->getAsFunction(); in ParseFunctionDefinition()
/freebsd/contrib/llvm-project/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.cpp1076 const FunctionDecl *FDecl = CallDecl->getAsFunction(); in getPrintfFormatArgumentNum()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DCallGraph.h198 return getDecl()->getAsFunction()->getDefinition(); in getDefinition()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp774 FunctionDecl *OldD = D->getAsFunction(); in maybeAddHostDeviceAttrs()
1010 FunctionDecl *OldFD = OldND->getAsFunction(); in checkTargetOverload()
H A DSemaAccess.cpp1100 << isa<CXXDestructorDecl>(D->getAsFunction()); in TryDiagnoseProtectedAccess()
1829 assert(isa<CXXMethodDecl>(target->getAsFunction())); in CheckFriendAccess()
1838 CXXMethodDecl *method = cast<CXXMethodDecl>(target->getAsFunction()); in CheckFriendAccess()
H A DSemaLookup.cpp3257 const FunctionDecl *FDecl = D->getUnderlyingDecl()->getAsFunction(); in FindAssociatedClassesAndNamespaces()
3722 NoteOverloadCandidate(D, D->getUnderlyingDecl()->getAsFunction()); in LookupLiteralOperator()
3758 FunctionDecl *OldFD = Old->getAsFunction(); in insert()
3759 FunctionDecl *NewFD = New->getAsFunction(); in insert()
H A DSemaAvailability.cpp1015 if (auto *FD = D->getAsFunction()) { in DiagnoseUnguardedAvailabilityViolations()
H A DAnalysisBasedWarnings.cpp710 if (D->getAsFunction() && D->getAsFunction()->isCPUDispatchMultiVersion()) in CheckFallThroughForBody()
H A DSemaDecl.cpp1432 FunctionDecl *FD = D->getAsFunction(); in ActOnReenterFunctionContext()
3538 FunctionDecl *Old = OldD->getAsFunction(); in MergeFunctionDecl()
3558 ->getAsFunction(); in MergeFunctionDecl()
11275 if (D->getAsFunction()->getMultiVersionKind() != MultiVersionKind::None) in PreviousDeclsHaveMultiVersionAttribute()
11468 FunctionDecl *CurFD = ND->getAsFunction(); in CheckMultiVersionAdditionalDecl()
11712 if (!OldDecl || !OldDecl->getAsFunction() || in CheckMultiVersionFunction()
11722 FunctionDecl *OldFD = OldDecl->getAsFunction(); in CheckMultiVersionFunction()
11919 OldMD = dyn_cast_or_null<CXXMethodDecl>(OldDecl->getAsFunction()); in CheckFunctionDeclaration()
15692 if (const FunctionDecl *FD = D->getAsFunction()) { in canSkipFunctionBody()
15707 if (FunctionDecl *FD = Decl->getAsFunction()) in ActOnSkippedFunctionBody()
[all …]
H A DSemaConcept.cpp971 if (auto *FD = DeclInfo.getDecl()->getAsFunction()) in SubstituteConstraintExpressionWithoutSatisfaction()
H A DSemaOverload.cpp1040 if (FunctionsCorrespond(S.Context, EqFD, Op->getAsFunction())) in shouldAddReversedEqEq()
1046 auto *NotEqFD = Op->getAsFunction(); in shouldAddReversedEqEq()
1048 NotEqFD = UD->getUnderlyingDecl()->getAsFunction(); in shouldAddReversedEqEq()
1204 if (FunctionDecl *OldF = OldD->getAsFunction()) { in CheckOverload()
8292 if (Oper->getAsFunction() && in AddMemberOperatorCandidates()
8295 *this, {Args[1], Args[0]}, Oper->getAsFunction())) in AddMemberOperatorCandidates()
H A DSema.cpp2590 if (const auto *FD = Fn->getAsFunction()) { in noteOverloads()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h1128 FunctionDecl *getAsFunction() LLVM_READONLY;
1130 const FunctionDecl *getAsFunction() const { in getAsFunction() function
1131 return const_cast<Decl *>(this)->getAsFunction(); in getAsFunction()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp438 Call.getRuntimeDefinition().getDecl()->getAsFunction(); in castArgToParamTypeIfNeeded()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclCXX.cpp1672 cast<ValueDecl>(ND->getAsFunction())->getType()->castAs<FunctionType>(); in getLambdaStaticInvoker()
1748 cast<CXXConversionDecl>(Conv->getUnderlyingDecl()->getAsFunction()) in GetConversionType()
H A DDeclBase.cpp249 FunctionDecl *Decl::getAsFunction() { in getAsFunction() function in Decl
H A DExprCXX.cpp1588 if (cast<CXXMethodDecl>(decl->getUnderlyingDecl()->getAsFunction()) in hasOnlyNonStaticMemberFunctions()
H A DType.cpp5136 if (auto *FD = Callee.getAsFunction()) in canInferOnFunction()
H A DDecl.cpp1954 if (const auto *MD = dyn_cast_if_present<CXXMethodDecl>(D->getAsFunction())) in isCXXInstanceMember()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp1313 Decl->getAsFunction())); in getFragmentsForFunctionTemplate()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp1945 ->getAsFunction() in UpdateMultiVersionNames()
1952 ->getAsFunction() in UpdateMultiVersionNames()
4377 ExistingDecl.getDecl()->getAsFunction()->isDefined()) { in emitCPUDispatchDefinition()
5761 if (const auto *FD = D->getAsFunction()) in getLLVMLinkageForDeclarator()

12