Searched refs:CurContext (Results 26 - 42 of 42) sorted by relevance

12

/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h410 /// CurContext - This is the current declaration context of parsing.
411 DeclContext *CurContext; member in class:clang::final
884 : S(S), SavedContext(S.CurContext),
891 S.CurContext = ContextToPush;
901 S.CurContext = SavedContext;
953 Ctx.Entity = cast<Decl>(S.CurContext);
962 if (auto *FD = dyn_cast<FunctionDecl>(S.CurContext))
3701 if (cast<Decl>(CurContext)
11699 /// - If CurContext is a __host__ function, does not emit any diagnostics.
11700 /// - If CurContext i
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp115 ((Actions.CurContext->isDependentContext() ||
H A DParser.cpp1222 Actions.CurContext->isTranslationUnit()) {
H A DParseDecl.cpp6294 Actions.CurContext->isRecord());
6315 ThisScope.emplace(Actions, dyn_cast<CXXRecordDecl>(Actions.CurContext), Q,
H A DParseExpr.cpp2861 DeclContext *CodeDC = Actions.CurContext;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaExceptionSpec.cpp43 auto *RD = dyn_cast<CXXRecordDecl>(CurContext);
H A DSemaTemplateInstantiateDecl.cpp2944 if (auto *RD = dyn_cast<CXXRecordDecl>(SemaRef.CurContext))
4780 // FIXME: Is CurContext correct for this? Should we go to the (instantiation
5451 cast<CXXRecordDecl>(CurContext->getParent()));
5832 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
5841 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
5863 DeclContext *DC = CurContext;
H A DSemaExprObjC.cpp1649 ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(CurContext);
1909 dyn_cast_or_null<ObjCMethodDecl>(CurContext->getNonClosureAncestor());
3358 ObjCMethodDecl *method = dyn_cast<ObjCMethodDecl>(CurContext);
H A DSemaPseudoObject.cpp559 cast<ObjCMethodDecl>(S.CurContext->getNonClosureAncestor());
H A DTreeTransform.h2204 getSema().CurContext->addDecl(Var);
2957 getSema().CurContext);
2968 getSema().CurContext);
7605 auto *FD = cast<FunctionDecl>(SemaRef.CurContext);
11136 getSema().CurContext != E->getParentContext();
11143 getSema().CurContext);
11396 E->getUsedContext() == SemaRef.CurContext)
11411 E->getUsedContext() == SemaRef.CurContext)
11952 getSema().Context, getSema().CurContext,
H A DSemaTemplateInstantiate.cpp1246 Decl *Inst = getSema().SubstDecl(D, getSema().CurContext, TemplateArgs);
2463 // FIXME: OldParm may come from a FunctionProtoType, in which case CurContext
2465 NewParm->setDeclContext(CurContext);
H A DSemaDeclAttr.cpp7652 DeclContext *SavedContext = CurContext;
7653 CurContext = Context.getTranslationUnitDecl();
7654 NewD->setDeclContext(CurContext);
7655 NewD->setLexicalDeclContext(CurContext);
7657 CurContext = SavedContext;
H A DSemaInit.cpp9079 isa<CXXConstructorDecl>(S.CurContext)) {
9085 = cast<CXXConstructorDecl>(S.CurContext);
9163 isa<CXXConstructorDecl>(S.CurContext)) {
9167 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(S.CurContext);
H A DSemaType.cpp3308 if (isa<ObjCContainerDecl>(SemaRef.CurContext)) {
3311 switch (cast<TagDecl>(SemaRef.CurContext)->getTagKind()) {
3532 !S.CurContext->isFunctionOrMethod() ||
4050 for (DeclContext *ctx = S.CurContext; ctx; ctx = ctx->getParent()) {
H A DSemaTemplateDeduction.cpp2722 if (Inst.isInvalid() || !S.SubstDecl(TTP, S.CurContext, Args))
4150 DeclContext *CallingCtx = CurContext;
H A DSemaChecking.cpp4265 if (CurContext->isDependentContext())
5536 DeclContext *Caller = S.CurContext;
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DDeclCXX.h1485 bool isCurrentInstantiation(const DeclContext *CurContext) const;

Completed in 898 milliseconds

12