• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching refs:DeclContext

57     const DeclContext *Nominated;
58 const DeclContext *CommonAncestor;
61 UnqualUsingEntry(const DeclContext *Nominated,
62 const DeclContext *CommonAncestor)
66 const DeclContext *getCommonAncestor() const {
70 const DeclContext *getNominatedNamespace() const {
80 bool operator()(const UnqualUsingEntry &E, const DeclContext *DC) {
84 bool operator()(const DeclContext *DC, const UnqualUsingEntry &E) {
98 llvm::SmallPtrSet<DeclContext*, 8> visited;
108 DeclContext *InnermostFileDC = InnermostFileScope->getEntity();
115 DeclContext *Ctx = S->getEntity();
133 void visit(DeclContext *DC, DeclContext *EffectiveDC) {
143 void visit(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) {
144 DeclContext *NS = UD->getNominatedNamespace();
155 void addUsingDirectives(DeclContext *DC, DeclContext *EffectiveDC) {
156 SmallVector<DeclContext*, 4> queue;
159 DeclContext *NS = UD->getNominatedNamespace();
180 void addUsingDirective(UsingDirectiveDecl *UD, DeclContext *EffectiveDC) {
183 DeclContext *Common = UD->getNominatedNamespace();
199 getNamespacesFor(DeclContext *DC) const {
351 static DeclContext *getContextForScopeMatching(Decl *D) {
355 DeclContext *DC = D->getLexicalDeclContext();
641 for (DeclContext::lookup_iterator DI = I->Decls.begin(),
809 DeclContext *Parent = Context.getTranslationUnitDecl();
975 const DeclContext *DC) {
1028 static bool LookupDirect(Sema &S, LookupResult &R, const DeclContext *DC) {
1037 DeclContext::lookup_result DR = DC->lookup(R.getLookupName());
1131 DeclContext *NS, UnqualUsingDirectiveSet &UDirs) {
1150 if (DeclContext *Ctx = S->getEntity())
1158 static DeclContext *findOuterContext(Scope *S) {
1160 if (DeclContext *DC = OuterS->getLookupEntity())
1196 if (DeclContext *DC = PreS->getEntity())
1280 if (DeclContext *Ctx = S->getLookupEntity()) {
1281 DeclContext *OuterCtx = findOuterContext(S);
1320 for (DeclContext *UCtx = Ctx; UCtx; UCtx = UCtx->getParent()) {
1371 // FIXME: Cache this sorted list in Scope structure, and DeclContext, so we
1406 DeclContext *Ctx = S->getLookupEntity();
1408 DeclContext *OuterCtx = findOuterContext(S);
1453 // visible too. They're not (necessarily) within a mergeable DeclContext.
1479 DeclContext *Context = Entity->getLexicalDeclContext();
1633 auto IsEffectivelyFileContext = [](const DeclContext *DC) {
1640 DeclContext *DC = D->getLexicalDeclContext();
1916 // Compute the DeclContext, if we need it.
1917 DeclContext *DC = nullptr;
1928 // Match based on DeclContext.
1929 DeclContext *LastDC
1992 DeclContext *StartDC) {
2000 llvm::SmallPtrSet<DeclContext*, 8> Visited;
2133 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx,
2149 DeclContext *Context;
2150 // Set flag in DeclContext informing debugger that we're looking for qualified name
2151 QualifiedLookupInScope(DeclContext *ctx) : Context(ctx) {
2290 DeclContext::lookup_iterator FirstD = FirstPath->Decls.begin();
2291 DeclContext::lookup_iterator CurrentD = Path->Decls.begin();
2371 bool Sema::LookupQualifiedName(LookupResult &R, DeclContext *LookupCtx,
2413 if (DeclContext *DC = computeDeclContext(*SS, EnteringContext)) {
2492 DeclContext::lookup_iterator Found = Paths->front().Decls.begin();
2583 DeclContext *Ctx) {
2631 DeclContext *Ctx = ClassTemplate->getDeclContext();
2674 DeclContext *Ctx = Class->getDeclContext();
2692 DeclContext *Ctx = Spec->getSpecializedTemplate()->getDeclContext();
2735 DeclContext *BaseCtx = BaseDecl->getDeclContext();
2816 DeclContext *Ctx = Enum->getDeclContext();
3138 DeclContext::lookup_result R = RD->lookup(Name);
3250 DeclContext::lookup_result Sema::LookupConstructors(CXXRecordDecl *Class) {
3499 DeclContext::lookup_result R = NS->lookup(Name);
3563 llvm::SmallPtrSet<DeclContext *, 8> VisitedContexts;
3570 bool visitedContext(DeclContext *Ctx) {
3574 bool alreadyVisitedContext(DeclContext *Ctx) {
3685 void lookupVisibleDecls(Sema &SemaRef, DeclContext *Ctx,
3698 void lookupInDeclContext(DeclContext *Ctx, LookupResult &Result,
3905 DeclContext *Entity = S->getLookupEntity();
3910 DeclContext *OuterCtx = findOuterContext(S);
3912 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx);
3960 const_cast<DeclContext *>(UUE.getNominatedNamespace()), Result,
3986 void Sema::LookupVisibleDecls(DeclContext *Ctx, LookupNameKind Kind,
4041 DeclContext *MemberContext,
4127 DeclContext *Ctx, bool InBaseClass) {
4287 DeclContext *TempMemberContext = MemberContext;
4339 DeclContext *Ctx = NSI.DeclCtx;
4414 ASTContext &Context, DeclContext *CurContext, CXXScopeSpec *CurScopeSpec)
4426 for (DeclContext *C : llvm::reverse(CurContextChain)) {
4432 SpecifierInfo SI = {cast<DeclContext>(Context.getTranslationUnitDecl()),
4438 DeclContext *Start) -> DeclContextList {
4441 for (DeclContext *DC = Start->getPrimaryContext(); DC != nullptr;
4455 for (DeclContext *C : llvm::reverse(DeclChain)) {
4469 DeclContext *Ctx) {
4475 // Eliminate common elements from the two DeclContext chains.
4476 for (DeclContext *C : llvm::reverse(CurContextChain)) {
4536 DeclContext *MemberContext,
4740 DeclContext *MemberContext, bool EnteringContext,
4812 DeclContext *QualifiedDC = MemberContext;
4917 DeclContext *MemberContext,
5051 DeclContext *MemberContext, bool EnteringContext,
5188 // unless the method being corrected--or the current DeclContext, if the