Lines Matching refs:CurContext
90 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable) in CanUseDecl()
340 auto *DRD = dyn_cast<OMPDeclareReductionDecl>(CurContext); in DiagnoseUseOfDecl()
341 if (LangOpts.OpenMP && DRD && !CurContext->containsDecl(D) && in DiagnoseUseOfDecl()
2040 auto *MD = dyn_cast_or_null<CXXMethodDecl>(S.CurContext); in isCapturingReferenceToHostVarInCUDADeviceLambda()
2218 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseDependentMemberLookup()
2291 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr; in DiagnoseEmptyLookup()
2455 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext)) in recoverFromMSUnqualifiedLookup()
2951 if (const BlockDecl *BD = CurContext->getInnermostBlockDecl()) in BuildIvarRefExpr()
3421 if (BD->getDeclContext() != CurContext) { in BuildDeclarationNameExpr()
5395 auto *VD = VarDecl::Create(Context, CurContext, StartLoc, D.DeclIdentLoc, in ActOnOMPIteratorExpr()
5406 FilterLookupForScope(Previous, CurContext, S, /*ConsiderLinkage=*/false, in ActOnOMPIteratorExpr()
5416 CurContext->addDecl(VD); in ActOnOMPIteratorExpr()
5470 if (!CurContext->isDependentContext()) { in ActOnOMPIteratorExpr()
5559 VarDecl::Create(Context, CurContext, D.IteratorDecl->getBeginLoc(), in ActOnOMPIteratorExpr()
5917 return CXXDefaultArgExpr::Create(Context, CallLoc, Param, CurContext); in BuildCXXDefaultArgExpr()
5975 S.getScopeForContext(S.CurContext), nullptr, CCC, in TryTypoCorrectionForCall()
6557 DeclContext *EnclosingFunctionCtx = S.CurContext->getParent()->getParent(); in tryImplicitlyCaptureThisIfImplicitMemberFunctionAccessWithDependentArgs()
6566 } else if (S.CurContext->isDependentContext()) { in tryImplicitlyCaptureThisIfImplicitMemberFunctionAccessWithDependentArgs()
7256 bool isFileScope = !CurContext->isFunctionOrMethod(); in BuildCompoundLiteralExpr()
12613 DeclContext *DC = CurContext; in CheckCompareOperands()
13421 DeclContext *DC = S.CurContext, *Prev = nullptr; in isReferenceToNonConstCapture()
16163 BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc); in ActOnBlockStart()
16177 CurContext->addDecl(Block); in ActOnBlockStart()
16181 CurContext = Block; in ActOnBlockStart()
16521 if (const FunctionDecl *F = dyn_cast<FunctionDecl>(CurContext)) { in BuildVAArgExpr()
16778 return BuildSourceLocExpr(Kind, ResultTy, BuiltinLoc, RPLoc, CurContext); in ActOnSourceLocExpr()
17916 if (SemaRef.CurContext->isDependentContext()) in isOdrUseContext()
17942 bool IsRecursiveCall = CurContext == Func; in MarkFunctionReferenced()
18205 auto *FD = dyn_cast_or_null<FunctionDecl>(SemaRef.CurContext); in MarkVarDeclODRUsed()
18269 if (!S.getLangOpts().CPlusPlus && !S.CurContext->isFunctionOrMethod()) in diagnoseUncapturableValueReference()
18724 DeclContext *DC = CurContext; in tryCaptureVariable()
19539 (SemaRef.CurContext != Var->getDeclContext() && in DoMarkVarDeclReferenced()