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

12

/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp347 checkModuleImportContext(*this, Mod, ImportLoc, CurContext);
384 ImportDecl *Import = ImportDecl::Create(Context, CurContext, StartLoc,
386 CurContext->addDecl(Import);
405 checkModuleImportContext(*this, Mod, DirectiveLoc, CurContext, true);
439 checkModuleImportContext(*this, Mod, DirectiveLoc, CurContext, true);
452 for (auto *DC = CurContext; DC; DC = DC->getLexicalParent()) {
493 for (auto *DC = CurContext; DC; DC = DC->getLexicalParent()) {
525 ExportDecl *D = ExportDecl::Create(Context, CurContext, ExportLoc);
547 for (const DeclContext *DC = CurContext; DC; DC = DC->getLexicalParent()) {
577 CurContext
[all...]
H A DSemaCodeComplete.cpp313 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
322 /// \param CurContext the context in which this result will be named.
323 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr);
330 /// \param CurContext the context in which this result will be named.
336 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
384 if (isa<BlockDecl>(S.CurContext)) {
390 } else if (const auto *Function = dyn_cast<FunctionDecl>(S.CurContext)) {
394 } else if (const auto *Method = dyn_cast<ObjCMethodDecl>(S.CurContext)) {
665 /// (\p CurContext) to the target context (\p TargetContext).
669 /// \param CurContext th
678 getRequiredQualification(ASTContext &Context, const DeclContext *CurContext, const DeclContext *TargetContext) argument
782 CheckHiddenResult(Result &R, DeclContext *CurContext, const NamedDecl *Hiding) argument
1056 MaybeAddResult(Result R, DeclContext *CurContext) argument
1230 AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, bool InBaseClass = false) argument
4012 DeclContext *CurContext = S.CurContext; local
4298 AddEnumerators(ResultBuilder &Results, ASTContext &Context, EnumDecl *Enum, DeclContext *CurContext, const CoveredEnumerators &Enumerators) argument
4536 AddObjCProperties(const CodeCompletionContext &CCContext, ObjCContainerDecl *Container, bool AllowCategories, bool AllowNullaryMethods, DeclContext *CurContext, AddedPropertiesSet &AddedProperties, ResultBuilder &Results, bool IsBaseExprStatement = false, bool IsClassProperty = false, bool InOriginalClass = true) argument
6257 CurContext, nullptr, false); local
6758 AddObjCMethods(ObjCContainerDecl *Container, bool WantInstanceMethods, ObjCMethodKind WantKind, ArrayRef<IdentifierInfo *> SelIdents, DeclContext *CurContext, VisitedSelectorSet &Selectors, bool AllowSameLength, ResultBuilder &Results, bool InOriginalClass = true, bool IsRootClass = false) argument
7641 AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, ResultBuilder &Results) argument
7651 Result(Proto, Results.getBasePriority(Proto), nullptr), CurContext, local
7704 AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, bool OnlyUnimplemented, ResultBuilder &Results) argument
7716 Result(Class, Results.getBasePriority(Class), nullptr), CurContext, local
7810 CurContext, nullptr, false); local
7846 CurContext, nullptr, false); local
7944 CurContext, nullptr, false); local
[all...]
H A DSemaCUDA.cpp655 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) ==
667 dyn_cast<FunctionDecl>(CurContext), *this);
684 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) ==
693 dyn_cast<FunctionDecl>(CurContext), *this);
706 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext);
770 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext);
H A DSemaCXXScopeSpec.cpp28 DeclContext *CurContext) {
36 Record->isCurrentInstantiation(CurContext))
58 return ::getCurrentInstantiationOf(T, CurContext);
187 return ::getCurrentInstantiationOf(T, CurContext);
798 DeclContext *DC = LookupCtx ? LookupCtx : CurContext;
1025 if (isa<ObjCContainerDecl>(CurContext) || isa<ObjCMethodDecl>(CurContext))
1050 return CurContext->getRedeclContext()->isFileContext();
27 getCurrentInstantiationOf(QualType T, DeclContext *CurContext) argument
H A DSemaDeclCXX.cpp732 DeclContext *const DC = CurContext;
878 CurContext->addHiddenDecl(New);
2347 return dyn_cast_or_null<CXXRecordDecl>(CurContext);
2374 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
2973 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
2975 CurContext->addHiddenDecl(ASDecl);
3191 assert(isa<CXXRecordDecl>(CurContext));
3198 if (cast<CXXRecordDecl>(CurContext)->isInterface()) {
3363 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D,
3369 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Lo
[all...]
H A DSemaDecl.cpp243 for (DeclContext *DC = S.CurContext;
572 NNS = synthesizeCurrentNestedNameSpecifier(Context, CurContext);
575 findRecordWithDependentBasesOfEnclosingMethod(CurContext)) {
645 if (CurContext->isRecord()) {
651 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext);
657 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope();
1264 assert(DC->getLexicalParent() == CurContext &&
1266 CurContext = DC;
1271 assert(CurContext && "DeclContext imbalance!");
1273 CurContext
[all...]
H A DSemaCoroutine.cpp196 auto *FD = dyn_cast<FunctionDecl>(S.CurContext);
198 S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext)
489 assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
490 auto *FD = cast<FunctionDecl>(CurContext);
593 assert(isa<FunctionDecl>(S.CurContext) && "not in a function scope");
636 S.Diag(cast<FunctionDecl>(S.CurContext)->getLocation(),
702 auto *Fn = cast<FunctionDecl>(CurContext);
1605 VarDecl *Decl = VarDecl::Create(S.Context, S.CurContext, Loc, Loc, II, Type,
1614 assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
1615 auto *FD = cast<FunctionDecl>(CurContext);
[all...]
H A DSemaOpenMP.cpp1372 DeclContext *DC = SemaRef.CurContext;
2660 if (!CurContext->isDependentContext())
2852 CurContext->addDecl(D);
3133 if (!CurContext->isFileContext()) {
3138 CurContext->addDecl(D);
4127 auto *CED = OMPCapturedExprDecl::Create(C, S.CurContext, Id, Ty,
4131 S.CurContext->addHiddenDecl(CED);
4200 if (!CurContext->isDependentContext() &&
4220 if (!VDC->Encloses(CurContext))
4850 assert(!S.CurContext
[all...]
H A DSemaLambda.cpp245 DeclContext *DC = CurContext;
319 inTemplateInstantiation() || CurContext->isDependentContext();
326 isInInlineFunction(CurContext)) {
406 Method->setLexicalDeclContext(CurContext);
417 TemplateMethod->setLexicalDeclContext(CurContext);
867 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Loc,
1688 // set as CurContext seems more faithful to the source.
1714 if (!CurContext->isDependentContext() && !IsImplicit &&
1839 if (!CurContext->isDependentContext()) {
1897 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocatio
[all...]
H A DSemaDeclObjC.cpp765 return ObjCTypeParamDecl::Create(Context, CurContext, variance, varianceLoc,
1036 CurContext,
1055 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName,
1171 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl);
1226 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
1246 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
1778 = ObjCProtocolDecl::Create(Context, CurContext, Ident,
1816 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLoc,
1820 CurContext->addDecl(CDecl);
1863 CDecl = ObjCCategoryDecl::Create(Context, CurContext, AtInterfaceLo
[all...]
H A DSemaLookup.cpp4005 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc);
4015 if (Res && Res->getDeclContext() != CurContext)
4019 Res = LabelDecl::Create(Context, CurContext, Loc, II);
4414 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec)
4415 : Context(Context), CurContextChain(buildContextChain(CurContext)) {
4669 if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
4670 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
4750 if (getLangOpts().MSVCCompat && CurContext->isDependentContext() &&
4751 isa<CXXMethodDecl>(CurContext))
5141 CurContext(SemaRe
[all...]
H A DSemaTemplate.cpp1636 SemanticContext = CurContext;
1691 DeclContext *OutermostContext = CurContext;
1745 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1805 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1835 = !(TUK == TUK_Friend && CurContext->isDependentContext());
1885 NewClass->setLexicalDeclContext(CurContext);
1886 NewTemplate->setLexicalDeclContext(CurContext);
1914 if (!CurContext->isDependentContext()) {
1923 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc);
1925 CurContext
9226 DeclContext *CurContext = S.CurContext->getRedeclContext(); local
[all...]
H A DSemaStmt.cpp402 if (FunctionDecl *F = dyn_cast<FunctionDecl>(CurContext))
2033 SemaRef.CurContext->addHiddenDecl(Decl);
2074 DeclContext *DC = SemaRef.CurContext;
3322 if (!CurContext->isDependentContext())
3675 FunctionDecl *FD = cast<FunctionDecl>(CurContext);
4209 DeclContext *DC = CurContext;
4289 DeclContext *DC = CurContext;
4306 CD = CapturedDecl::Create(Context, CurContext, NumParams);
4376 CurContext = CD;
4435 CurContext
[all...]
H A DSema.cpp156 CodeCompleter(CodeCompleter), CurContext(nullptr),
440 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext);
1292 DeclContext *DC = CurContext;
1983 !CurBSI->TheDecl->Encloses(CurContext)) {
2007 if (LSI->Lambda && !LSI->Lambda->Encloses(CurContext)) {
2034 !CurLSI->Lambda->Encloses(CurContext)) {
H A DSemaAccess.cpp1458 EffectiveContext EC(S.CurContext);
1678 ObjectClass = cast<CXXConstructorDecl>(CurContext)->getParent();
1793 EffectiveContext EC(CurContext);
1906 EffectiveContext EC(CurContext);
H A DSemaExprCXX.cpp1165 if (ThisTy.isNull() && isLambdaCallOperator(CurContext) &&
1184 if (!ThisTy.isNull() && isLambdaCallOperator(CurContext))
1186 CurContext, Context);
1511 const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext);
1590 if (auto *Caller = dyn_cast<FunctionDecl>(S.CurContext))
2694 EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(CurContext), Matches);
7123 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext);
7785 assert(S.CurContext->isDependentContext());
7787 DeclContext *DC = S.CurContext;
7792 "The current call operator must be synchronized with Sema's CurContext");
[all...]
H A DSemaAttr.cpp425 !(CurContext->isTranslationUnit()) && !CurContext->isNamespace()) {
H A DSemaExpr.cpp82 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)
329 auto *DRD = dyn_cast<OMPDeclareReductionDecl>(CurContext);
330 if (LangOpts.OpenMP && DRD && !CurContext->containsDecl(D) &&
342 auto *DMD = dyn_cast<OMPDeclareMapperDecl>(CurContext);
343 if (LangOpts.OpenMP && DMD && !CurContext->containsDecl(D) &&
2086 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr;
2095 // During a default argument instantiation the CurContext points
2102 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext);
2276 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext))
2765 if (const BlockDecl *BD = CurContext
[all...]
H A DSemaObjCProperty.cpp195 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext);
426 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext);
428 DeclContext *DC = CurContext;
1093 dyn_cast<ObjCContainerDecl>(CurContext);
1432 ObjCPropertyImplDecl::Create(Context, CurContext, AtLoc, PropertyLoc,
H A DSemaExprMember.cpp1815 auto *CurMethod = dyn_cast<CXXMethodDecl>(CurContext);
1827 !CurContext->isDependentContext() &&
H A DSemaStmtAsm.cpp129 FunctionDecl *Func = dyn_cast<FunctionDecl>(S.CurContext);
H A DSemaOverload.cpp1056 (OldIsUsingDecl || NewIsUsingDecl) && CurContext->isRecord() &&
6314 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext))
6829 if (const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext))
9746 FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext);
9853 const FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext);
10852 FunctionDecl *Caller = cast<FunctionDecl>(S.CurContext);
11892 if (FunctionDecl *Caller = dyn_cast<FunctionDecl>(S.CurContext))
12009 S.EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(S.CurContext), Matches);
12544 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) {
12787 CurContext
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DCXXInheritance.cpp140 CXXRecordDecl::isCurrentInstantiation(const DeclContext *CurContext) const {
143 for (; !CurContext->isFileContext(); CurContext = CurContext->getParent())
144 if (CurContext->Equals(this))
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h103 Namespaces(SemaRef.Context, SemaRef.CurContext, SS),
238 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
H A DTypoCorrection.h393 DeclContext *CurContext; member in class:clang::FunctionCallFilterCCC

Completed in 617 milliseconds

12