Lines Matching refs:CurContext

79       cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)  in CanUseDecl()
305 auto *DRD = dyn_cast<OMPDeclareReductionDecl>(CurContext); in DiagnoseUseOfDecl()
306 if (LangOpts.OpenMP && DRD && !CurContext->containsDecl(D) && in DiagnoseUseOfDecl()
1838 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr; in DiagnoseEmptyLookup()
1854 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseEmptyLookup()
2036 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext)) in recoverFromMSUnqualifiedLookup()
2488 if (CurContext->isClosure()) in LookupInObjCMethod()
2977 BD->getDeclContext() != CurContext) in BuildDeclarationNameExpr()
2978 diagnoseUncapturableValueReference(*this, Loc, BD, CurContext); in BuildDeclarationNameExpr()
4829 S.getScopeForContext(S.CurContext), nullptr, in TryTypoCorrectionForCall()
5386 DeclContext *EnclosingFunctionCtx = S.CurContext->getParent()->getParent(); in tryImplicitlyCaptureThisIfImplicitMemberFunctionAccessWithDependentArgs()
5395 } else if (S.CurContext->isDependentContext()) { in tryImplicitlyCaptureThisIfImplicitMemberFunctionAccessWithDependentArgs()
5872 bool isFileScope = !CurContext->isFunctionOrMethod(); in BuildCompoundLiteralExpr()
10489 DeclContext *DC = CurContext; in CheckCompareOperands()
10951 DeclContext *DC = S.CurContext, *Prev = nullptr; in isReferenceToNonConstCapture()
13523 BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc); in ActOnBlockStart()
13536 CurContext->addDecl(Block); in ActOnBlockStart()
13540 CurContext = Block; in ActOnBlockStart()
13817 if (const FunctionDecl *F = dyn_cast<FunctionDecl>(CurContext)) { in BuildVAArgExpr()
14604 if (SkipDependentUses && SemaRef.CurContext->isDependentContext()) in isOdrUseContext()
14739 if (CurContext == Func) return; in MarkFunctionReferenced()
14821 if (!S.getLangOpts().CPlusPlus && !S.CurContext->isFunctionOrMethod()) in diagnoseUncapturableValueReference()
15290 DeclContext *DC = CurContext; in tryCaptureVariable()
15687 (SemaRef.CurContext != Var->getDeclContext() && in DoMarkVarDeclReferenced()