Lines Matching refs:Entity
1529 static Module *getDefiningModule(Sema &S, Decl *Entity) { in getDefiningModule() argument
1530 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Entity)) { in getDefiningModule()
1534 Entity = Pattern; in getDefiningModule()
1535 } else if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(Entity)) { in getDefiningModule()
1537 Entity = Pattern; in getDefiningModule()
1538 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(Entity)) { in getDefiningModule()
1540 Entity = Pattern; in getDefiningModule()
1541 } else if (VarDecl *VD = dyn_cast<VarDecl>(Entity)) { in getDefiningModule()
1543 Entity = Pattern; in getDefiningModule()
1548 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1550 return S.getOwningModule(Entity); in getDefiningModule()
1558 Module *M = CodeSynthesisContexts[I].Entity ? in getLookupModules()
1559 getDefiningModule(*this, CodeSynthesisContexts[I].Entity) : in getLookupModules()
4309 DeclContext *Entity = S->getLookupEntity(); in lookupInScope() local
4310 if (Entity) { in lookupInScope()
4316 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in lookupInScope()
4354 Entity = Result.getSema().Context.getTranslationUnitDecl(); in lookupInScope()
4355 lookupInDeclContext(Entity, Result, /*QualifiedNameLookup=*/false, in lookupInScope()
4359 if (Entity) { in lookupInScope()
4362 for (const UnqualUsingEntry &UUE : UDirs.getNamespacesFor(Entity)) in lookupInScope()