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

12

/freebsd-12-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.cpp300 bool CheckHiddenResult(Result &R, DeclContext *CurContext,
309 /// \param CurContext the context in which this result will be named.
310 void MaybeAddResult(Result R, DeclContext *CurContext = nullptr);
317 /// \param CurContext the context in which this result will be named.
323 void AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding,
371 if (isa<BlockDecl>(S.CurContext)) {
377 } else if (const auto *Function = dyn_cast<FunctionDecl>(S.CurContext)) {
381 } else if (const auto *Method = dyn_cast<ObjCMethodDecl>(S.CurContext)) {
652 /// (\p CurContext) to the target context (\p TargetContext).
656 /// \param CurContext th
665 getRequiredQualification(ASTContext &Context, const DeclContext *CurContext, const DeclContext *TargetContext) argument
769 CheckHiddenResult(Result &R, DeclContext *CurContext, const NamedDecl *Hiding) argument
1043 MaybeAddResult(Result R, DeclContext *CurContext) argument
1217 AddResult(Result R, DeclContext *CurContext, NamedDecl *Hiding, bool InBaseClass = false) argument
3980 DeclContext *CurContext = S.CurContext; local
4266 AddEnumerators(ResultBuilder &Results, ASTContext &Context, EnumDecl *Enum, DeclContext *CurContext, const CoveredEnumerators &Enumerators) argument
4504 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
5774 CurContext, nullptr, false); local
6215 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
7098 AddProtocolResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, ResultBuilder &Results) argument
7108 Result(Proto, Results.getBasePriority(Proto), nullptr), CurContext, local
7161 AddInterfaceResults(DeclContext *Ctx, DeclContext *CurContext, bool OnlyForwardDeclarations, bool OnlyUnimplemented, ResultBuilder &Results) argument
7173 Result(Class, Results.getBasePriority(Class), nullptr), CurContext, local
7267 CurContext, nullptr, false); local
7303 CurContext, nullptr, false); local
7401 CurContext, nullptr, false); local
[all...]
H A DSemaCUDA.cpp618 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) ==
630 dyn_cast<FunctionDecl>(CurContext), *this);
647 return (getEmissionStatus(cast<FunctionDecl>(CurContext)) ==
656 dyn_cast<FunctionDecl>(CurContext), *this);
669 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext);
736 FunctionDecl *CurFn = 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.cpp718 DeclContext *const DC = CurContext;
864 CurContext->addHiddenDecl(New);
2338 return dyn_cast_or_null<CXXRecordDecl>(CurContext);
2365 CurDecl = dyn_cast_or_null<CXXRecordDecl>(CurContext);
2961 AccessSpecDecl *ASDecl = AccessSpecDecl::Create(Context, Access, CurContext,
2963 CurContext->addHiddenDecl(ASDecl);
3169 assert(isa<CXXRecordDecl>(CurContext));
3176 if (cast<CXXRecordDecl>(CurContext)->isInterface()) {
3341 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D,
3347 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Lo
[all...]
H A DSemaDecl.cpp241 for (DeclContext *DC = S.CurContext;
570 NNS = synthesizeCurrentNestedNameSpecifier(Context, CurContext);
573 findRecordWithDependentBasesOfEnclosingMethod(CurContext)) {
643 if (CurContext->isRecord()) {
649 CXXRecordDecl *RD = cast<CXXRecordDecl>(CurContext);
655 return CurContext->isFunctionOrMethod() || S->isFunctionPrototypeScope();
1298 assert(getContainingDC(DC) == CurContext &&
1300 CurContext = DC;
1305 assert(CurContext && "DeclContext imbalance!");
1307 CurContext
[all...]
H A DSemaOpenMP.cpp1173 DeclContext *DC = SemaRef.CurContext;
2310 if (!CurContext->isDependentContext())
2501 CurContext->addDecl(D);
2783 if (!CurContext->isFileContext()) {
2788 CurContext->addDecl(D);
3734 auto *CED = OMPCapturedExprDecl::Create(C, S.CurContext, Id, Ty,
3738 S.CurContext->addHiddenDecl(CED);
3807 if (!CurContext->isDependentContext() &&
3827 if (!VDC->Encloses(CurContext))
4358 assert(!S.CurContext
[all...]
H A DSemaCoroutine.cpp195 auto *FD = dyn_cast<FunctionDecl>(S.CurContext);
197 S.Diag(Loc, isa<ObjCMethodDecl>(S.CurContext)
482 assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
483 auto *FD = cast<FunctionDecl>(CurContext);
579 assert(isa<FunctionDecl>(S.CurContext) && "not in a function scope");
614 auto *Fn = cast<FunctionDecl>(CurContext);
1517 VarDecl *Decl = VarDecl::Create(S.Context, S.CurContext, Loc, Loc, II, Type,
1526 assert(isa<FunctionDecl>(CurContext) && "not in a function scope");
1527 auto *FD = cast<FunctionDecl>(CurContext);
H A DSemaLambda.cpp245 DeclContext *DC = CurContext;
319 inTemplateInstantiation() || CurContext->isDependentContext();
326 isInInlineFunction(CurContext)) {
406 Method->setLexicalDeclContext(CurContext);
417 TemplateMethod->setLexicalDeclContext(CurContext);
866 VarDecl *NewVD = VarDecl::Create(Context, CurContext, Loc,
1685 // set as CurContext seems more faithful to the source.
1711 if (!CurContext->isDependentContext() && !IsImplicit &&
1832 if (!CurContext->isDependentContext()) {
1890 BlockDecl *Block = BlockDecl::Create(Context, CurContext, ConvLocatio
[all...]
H A DSemaDeclObjC.cpp764 return ObjCTypeParamDecl::Create(Context, CurContext, variance, varianceLoc,
1037 CurContext,
1056 = ObjCInterfaceDecl::Create(Context, CurContext, AtInterfaceLoc, ClassName,
1172 ObjCCompatibleAliasDecl::Create(Context, CurContext, AtLoc, AliasName, CDecl);
1227 PDecl = ObjCProtocolDecl::Create(Context, CurContext, ProtocolName,
1247 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 DSemaTemplate.cpp1630 SemanticContext = CurContext;
1685 DeclContext *OutermostContext = CurContext;
1739 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1799 if (!(TUK == TUK_Friend && CurContext->isDependentContext()) &&
1829 = !(TUK == TUK_Friend && CurContext->isDependentContext());
1879 NewClass->setLexicalDeclContext(CurContext);
1880 NewTemplate->setLexicalDeclContext(CurContext);
1908 if (!CurContext->isDependentContext()) {
1917 Context, CurContext, NewClass->getLocation(), NewTemplate, FriendLoc);
1919 CurContext
9160 DeclContext *CurContext = S.CurContext->getRedeclContext(); local
[all...]
H A DSemaLookup.cpp4092 Res = LabelDecl::Create(Context, CurContext, Loc, II, GnuLabelLoc);
4102 if (Res && Res->getDeclContext() != CurContext)
4106 Res = LabelDecl::Create(Context, CurContext, Loc, II);
4501 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec)
4502 : Context(Context), CurContextChain(buildContextChain(CurContext)) {
4756 if (isa<CXXMethodDecl>(SemaRef.CurContext) &&
4757 cast<CXXMethodDecl>(SemaRef.CurContext)->isInstance())
4837 if (getLangOpts().MSVCCompat && CurContext->isDependentContext() &&
4838 isa<CXXMethodDecl>(CurContext))
5228 CurContext(SemaRe
[all...]
H A DSema.cpp151 CodeCompleter(CodeCompleter), CurContext(nullptr),
435 FunctionDecl *fn = dyn_cast<FunctionDecl>(CurContext);
1284 DeclContext *DC = CurContext;
1845 !CurBSI->TheDecl->Encloses(CurContext)) {
1869 if (LSI->Lambda && !LSI->Lambda->Encloses(CurContext)) {
1896 !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.cpp1091 if (ThisTy.isNull() && isLambdaCallOperator(CurContext) &&
1110 if (!ThisTy.isNull() && isLambdaCallOperator(CurContext))
1112 CurContext, Context);
1437 const FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext);
1516 if (auto *Caller = dyn_cast<FunctionDecl>(S.CurContext))
2558 EraseUnwantedCUDAMatches(dyn_cast<FunctionDecl>(CurContext), Matches);
6977 FunctionDecl *CurFD = dyn_cast<FunctionDecl>(CurContext);
7697 assert(S.CurContext->isDependentContext());
7699 DeclContext *DC = S.CurContext;
7704 "The current call operator must be synchronized with Sema's CurContext");
[all...]
H A DSemaStmt.cpp2018 SemaRef.CurContext->addHiddenDecl(Decl);
2059 DeclContext *DC = SemaRef.CurContext;
3313 if (!CurContext->isDependentContext())
3660 FunctionDecl *FD = cast<FunctionDecl>(CurContext);
4194 DeclContext *DC = CurContext;
4274 DeclContext *DC = CurContext;
4291 CD = CapturedDecl::Create(Context, CurContext, NumParams);
4361 CurContext = CD;
4420 CurContext = CD;
H A DSemaExpr.cpp79 cast<Decl>(CurContext)->getAvailability() != AR_Unavailable)
323 auto *DRD = dyn_cast<OMPDeclareReductionDecl>(CurContext);
324 if (LangOpts.OpenMP && DRD && !CurContext->containsDecl(D) &&
336 auto *DMD = dyn_cast<OMPDeclareMapperDecl>(CurContext);
337 if (LangOpts.OpenMP && DMD && !CurContext->containsDecl(D) &&
2053 DeclContext *DC = SS.isEmpty() ? CurContext : nullptr;
2062 // During a default argument instantiation the CurContext points
2069 CXXMethodDecl *CurMethod = dyn_cast<CXXMethodDecl>(CurContext);
2243 else if (auto *MD = dyn_cast<CXXMethodDecl>(S.CurContext))
2732 if (const BlockDecl *BD = CurContext
[all...]
H A DSemaObjCProperty.cpp197 ObjCContainerDecl *ClassDecl = cast<ObjCContainerDecl>(CurContext);
428 ObjCCategoryDecl *CDecl = cast<ObjCCategoryDecl>(CurContext);
430 DeclContext *DC = CurContext;
1094 dyn_cast<ObjCContainerDecl>(CurContext);
1436 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 DSemaTemplateInstantiateDecl.cpp2940 if (auto *RD = dyn_cast<CXXRecordDecl>(SemaRef.CurContext))
4676 // FIXME: Is CurContext correct for this? Should we go to the (instantiation
5349 cast<CXXRecordDecl>(CurContext->getParent()));
5710 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
5719 Decl *Inst = SubstDecl(D, CurContext, TemplateArgs);
5741 DeclContext *DC = CurContext;
/freebsd-12-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-12-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h103 Namespaces(SemaRef.Context, SemaRef.CurContext, SS),
233 NamespaceSpecifierSet(ASTContext &Context, DeclContext *CurContext,
H A DTypoCorrection.h393 DeclContext *CurContext; member in class:clang::FunctionCallFilterCCC
/freebsd-12-stable/contrib/llvm-project/clang/lib/Parse/
H A DParseCXXInlineMethods.cpp115 ((Actions.CurContext->isDependentContext() ||

Completed in 775 milliseconds

12