Home
last modified time | relevance | path

Searched refs:getCurFunctionDecl (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp729 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true); in RecordImplicitHostDeviceFuncUsedByDevice()
844 SemaRef.getCurFunctionDecl(/*AllowLambda=*/true); in DiagIfDeviceCode()
876 SemaRef.getCurFunctionDecl(/*AllowLambda=*/true); in DiagIfHostCode()
913 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true); in CheckCall()
988 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true); in CheckLambdaCapture()
H A DSemaBase.cpp75 DiagID, SemaRef.getCurFunctionDecl(), SemaRef); in Diag()
H A DSemaARM.cpp645 SemaRef.getCurFunctionDecl(/*AllowLambda=*/true)) { in CheckSMEBuiltinFunctionCall()
686 SemaRef.getCurFunctionDecl(/*AllowLambda=*/true)) { in CheckSVEBuiltinFunctionCall()
716 SemaRef.getCurFunctionDecl(/*AllowLambda=*/true)) { in CheckNeonBuiltinFunctionCall()
1434 SemaRef.getCurFunctionDecl(/*AllowLambda=*/true)) { in areCompatibleSveTypes()
1479 SemaRef.getCurFunctionDecl(/*AllowLambda=*/true)) { in areLaxCompatibleSveTypes()
H A DSemaAMDGPU.cpp30 const auto *FD = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true); in CheckAMDGCNBuiltinFunctionCall()
H A DSemaRISCV.cpp558 const FunctionDecl *FD = SemaRef.getCurFunctionDecl(); in CheckBuiltinFunctionCall()
640 const FunctionDecl *FD = SemaRef.getCurFunctionDecl(); in CheckBuiltinFunctionCall()
H A DSemaStmt.cpp3923 if (const FunctionDecl *FD = getCurFunctionDecl()) { in BuildReturnStmt()
4094 FunctionDecl *FD = getCurFunctionDecl(); in BuildReturnStmt()
4110 assert((getCurFunctionDecl() || getCurMethodDecl()) && in BuildReturnStmt()
4161 getCurFunctionDecl()); in BuildReturnStmt()
4603 if (const FunctionDecl *FD = S.getCurFunctionDecl(/*AllowLambda=*/true)) { in isOpenMPCapturedRegionInArmSMEFunction()
H A DSema.cpp735 FunctionDecl *FD = getCurFunctionDecl(); in diagnoseZeroToNullptrConversion()
1646 FunctionDecl *Sema::getCurFunctionDecl(bool AllowLambda) const { in getCurFunctionDecl() function in Sema
2096 FD = FD ? FD : getCurFunctionDecl(); in targetDiag()
H A DSemaExprMember.cpp912 const auto *FD = getCurFunctionDecl(); in BuildMemberReferenceExpr()
1405 else if (ObjCImpDecl && S.getCurFunctionDecl()) { in LookupMemberExpr()
H A DSemaAccess.cpp1957 else if (FunctionDecl *FD = getCurFunctionDecl()) { in IsSimplyAccessible()
H A DSemaOverload.cpp7234 const FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in AddOverloadCandidate()
7795 if (!CUDA().IsAllowedCall(getCurFunctionDecl(/*AllowLambda=*/true), in AddMethodCandidate()
10766 if (FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true)) { in isBetterOverloadCandidate()
11059 FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true); in isBetterOverloadCandidate()
11313 const FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true); in CudaExcludeWrongSideCandidates()
12475 FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true); in DiagnoseBadTarget()
13667 FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true); in AddMatchingNonTemplateFunction()
13816 S.CUDA().EraseUnwantedMatches(S.getCurFunctionDecl(/*AllowLambda=*/true), in EliminateSuboptimalCudaMatches()
13948 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in resolveAddressOfSingleOverloadCandidate()
H A DSemaCoroutine.cpp894 getCurFunctionDecl(/*AllowLambda=*/true)->getReturnType()); in BuildUnresolvedCoawaitExpr()
H A DSemaExprCXX.cpp1680 const FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in isUsualDeallocationFunction()
1818 S.getCurFunctionDecl(/*AllowLambda=*/true), FD);
3197 CUDA().EraseUnwantedMatches(getCurFunctionDecl(/*AllowLambda=*/true), in FindAllocationFunctions()
H A DSemaDecl.cpp7961 FunctionDecl *CurFD = getCurFunctionDecl(); in ActOnVariableDeclarator()
8083 DeclAttrsMatchCUDAMode(getLangOpts(), getCurFunctionDecl())) in ActOnVariableDeclarator()
8799 FunctionDecl *FD = getCurFunctionDecl(); in CheckVariableDeclarationType()
8872 if (FunctionDecl *FD = getCurFunctionDecl(); in CheckVariableDeclarationType()
15637 assert(getCurFunctionDecl() == nullptr && "Function parsing confused"); in ActOnStartOfFunctionDef()
16536 assert((FD == getCurFunctionDecl(/*AllowLambdas=*/true)) && in ActOnFinishFunctionBody()
H A DSemaExpr.cpp172 FunctionDecl *Current = S.getCurFunctionDecl(); in diagnoseUseOfInternalDeclInInlineFunction()
6853 if (auto *Caller = getCurFunctionDecl()) { in BuildResolvedCallExpr()
14785 dyn_cast_or_null<CXXMethodDecl>(getCurFunctionDecl(true)); in getSelfAssignmentClassMemberCandidate()
H A DSemaChecking.cpp5028 if (const FunctionDecl *FD = S.getCurFunctionDecl()) in checkVAStartABI()
H A DSemaOpenMP.cpp7166 SemaRef.getCurFunctionDecl(), in ActOnOpenMPCall()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h1143 FunctionDecl *getCurFunctionDecl(bool AllowLambda = false) const;
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Demangle/
H A DDemangleTestCases.inc4640 {"_ZN5clang4Sema18getCurFunctionDeclEv", "clang::Sema::getCurFunctionDecl()"},