Lines Matching refs:CurContext

97       cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)  in CanUseDecl()
337 auto *DRD = dyn_cast<OMPDeclareReductionDecl>(CurContext); in DiagnoseUseOfDecl()
338 if (LangOpts.OpenMP && DRD && !CurContext->containsDecl(D) && in DiagnoseUseOfDecl()
1992 Decl *CurrentDecl = getPredefinedExprDecl(CurContext); in ExpandFunctionLocalPredefinedMacros()
2225 auto *MD = dyn_cast_or_null<CXXMethodDecl>(S.CurContext); in isCapturingReferenceToHostVarInCUDADeviceLambda()
2383 const auto *CurMethod = dyn_cast<CXXMethodDecl>(CurContext); in DiagnoseDependentMemberLookup()
2455 LookupCtx ? LookupCtx : (SS.isEmpty() ? CurContext : nullptr); in DiagnoseEmptyLookup()
2619 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext)) in recoverFromMSUnqualifiedLookup()
3468 Decl *currentDecl = getPredefinedExprDecl(CurContext); in BuildPredefinedExpr()
5434 if (DC == SemaRef.CurContext) in TransformSourceLocExpr()
5446 !SemaRef.CurContext->isDependentContext() || DC->isDependentContext()) in TransformSourceLocExpr()
5447 DC = SemaRef.CurContext; in TransformSourceLocExpr()
5465 InitializationContext.emplace(CallLoc, Param, CurContext); in BuildCXXDefaultArgExpr()
5499 CallLoc, Param, CurContext}; in BuildCXXDefaultArgExpr()
5543 InitializationContext.emplace(Loc, Field, CurContext); in BuildCXXDefaultInitExpr()
5585 CurContext}; in BuildCXXDefaultInitExpr()
5705 S.getScopeForContext(S.CurContext), nullptr, CCC, in TryTypoCorrectionForCall()
6319 DeclContext *EnclosingFunctionCtx = S.CurContext->getParent()->getParent(); in tryImplicitlyCaptureThisIfImplicitMemberFunctionAccessWithDependentArgs()
6328 } else if (S.CurContext->isDependentContext()) { in tryImplicitlyCaptureThisIfImplicitMemberFunctionAccessWithDependentArgs()
7035 bool isFileScope = !CurContext->isFunctionOrMethod(); in BuildCompoundLiteralExpr()
12319 DeclContext *DC = CurContext; in CheckCompareOperands()
13135 DeclContext *DC = S.CurContext, *Prev = nullptr; in isReferenceToNonConstCapture()
15933 BlockDecl *Block = BlockDecl::Create(Context, CurContext, CaretLoc); in ActOnBlockStart()
15947 CurContext->addDecl(Block); in ActOnBlockStart()
15951 CurContext = Block; in ActOnBlockStart()
16294 if (const FunctionDecl *F = dyn_cast<FunctionDecl>(CurContext)) { in BuildVAArgExpr()
16557 return BuildSourceLocExpr(Kind, ResultTy, BuiltinLoc, RPLoc, CurContext); in ActOnSourceLocExpr()
17835 if (SemaRef.CurContext->isDependentContext()) in isOdrUseContext()
17859 bool IsRecursiveCall = CurContext == Func; in MarkFunctionReferenced()
18148 auto *FD = dyn_cast_or_null<FunctionDecl>(SemaRef.CurContext); in MarkVarDeclODRUsed()
18218 if (!S.getLangOpts().CPlusPlus && !S.CurContext->isFunctionOrMethod()) in diagnoseUncapturableValueReferenceOrBinding()
18692 DeclContext *DC = CurContext; in tryCaptureVariable()
18764 !LSI || LSI->AfterParameterList || CurContext == LSI->CallOperator; in tryCaptureVariable()
19435 (SemaRef.CurContext != VD->getDeclContext() && in DoMarkPotentialCapture()
19676 if (LSI->Lambda && !LSI->Lambda->Encloses(SemaRef.CurContext) && in FixDependencyOfIdExpressionsInLambdaWithDependentObjectParameter()