Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCUDA.cpp730 FunctionDecl *CurFunContext = getCurFunctionDecl(/*AllowLambda=*/true); in CUDADiagIfDeviceCode()
760 FunctionDecl *CurFunContext = getCurFunctionDecl(/*AllowLambda=*/true); in CUDADiagIfHostCode()
796 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CheckCUDACall()
867 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CUDACheckLambdaCapture()
H A DSema.cpp1440 FunctionDecl *Sema::getCurFunctionDecl(bool AllowLambda) { in getCurFunctionDecl() function in Sema
1845 FD = FD ? FD : getCurFunctionDecl(); in targetDiag()
1873 DiagID, getCurFunctionDecl(), *this); in Diag()
H A DSemaExprMember.cpp986 const auto *FD = getCurFunctionDecl(); in BuildMemberReferenceExpr()
1423 else if (ObjCImpDecl && S.getCurFunctionDecl()) { in LookupMemberExpr()
H A DSemaStmt.cpp3949 if (const FunctionDecl *FD = getCurFunctionDecl()) { in BuildReturnStmt()
4112 FunctionDecl *FD = getCurFunctionDecl(); in BuildReturnStmt()
4128 assert((getCurFunctionDecl() || getCurMethodDecl()) && in BuildReturnStmt()
4179 getCurFunctionDecl()); in BuildReturnStmt()
H A DSemaAccess.cpp1956 else if (FunctionDecl *FD = getCurFunctionDecl()) { in IsSimplyAccessible()
H A DSemaOverload.cpp6505 if (const FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true)) in AddOverloadCandidate()
7015 if (const FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true)) in AddMethodCandidate()
9736 if (FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true)) { in isBetterOverloadCandidate()
10013 FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true); in isBetterOverloadCandidate()
10134 const FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true); in BestViableFunction()
11168 FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true); in DiagnoseBadTarget()
12234 if (FunctionDecl *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true)) in AddMatchingNonTemplateFunction()
12351 S.EraseUnwantedCUDAMatches(S.getCurFunctionDecl(/*AllowLambda=*/true), in EliminateSuboptimalCudaMatches()
H A DSemaExprCXX.cpp1603 const FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in isUsualDeallocationFunction()
1697 if (auto *Caller = S.getCurFunctionDecl(/*AllowLambda=*/true)) in UsualDeallocFnInfo()
2836 EraseUnwantedCUDAMatches(getCurFunctionDecl(/*AllowLambda=*/true), in FindAllocationFunctions()
H A DSemaDecl.cpp7667 FunctionDecl *CurFD = getCurFunctionDecl(); in ActOnVariableDeclarator()
7771 DeclAttrsMatchCUDAMode(getLangOpts(), getCurFunctionDecl())) in ActOnVariableDeclarator()
8424 FunctionDecl *FD = getCurFunctionDecl(); in CheckVariableDeclarationType()
14509 assert(getCurFunctionDecl() == nullptr && "Function parsing confused"); in ActOnStartOfFunctionDef()
15240 (FD == getCurFunctionDecl() || getCurLambda()->CallOperator == FD) && in ActOnFinishFunctionBody()
H A DSemaExpr.cpp164 FunctionDecl *Current = S.getCurFunctionDecl(); in diagnoseUseOfInternalDeclInInlineFunction()
6935 if (auto *Caller = getCurFunctionDecl()) { in BuildResolvedCallExpr()
14624 dyn_cast_or_null<CXXMethodDecl>(getCurFunctionDecl(true)); in getSelfAssignmentClassMemberCandidate()
H A DSemaChecking.cpp7052 if (const FunctionDecl *FD = S.getCurFunctionDecl()) in checkVAStartABI()
H A DSemaOpenMP.cpp7194 getCurFunctionDecl(), DSAStack->getConstructTraits()); in ActOnOpenMPCall()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h3454 FunctionDecl *getCurFunctionDecl(bool AllowLambda = false);