Lines Matching refs:Entity
1556 static Module *getDefiningModule(Sema &S, Decl *Entity) { in getDefiningModule() argument
1557 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Entity)) { in getDefiningModule()
1561 Entity = Pattern; in getDefiningModule()
1562 } else if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(Entity)) { in getDefiningModule()
1564 Entity = Pattern; in getDefiningModule()
1565 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(Entity)) { in getDefiningModule()
1567 Entity = Pattern; in getDefiningModule()
1568 } else if (VarDecl *VD = dyn_cast<VarDecl>(Entity)) { in getDefiningModule()
1570 Entity = Pattern; in getDefiningModule()
1575 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1577 return S.getOwningModule(Entity); in getDefiningModule()
1585 Module *M = CodeSynthesisContexts[I].Entity ? in getLookupModules()
1586 getDefiningModule(*this, CodeSynthesisContexts[I].Entity) : in getLookupModules()
4273 DeclContext *Entity = S->getLookupEntity(); in lookupInScope() local
4274 if (Entity) { in lookupInScope()
4280 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in lookupInScope()
4318 Entity = Result.getSema().Context.getTranslationUnitDecl(); in lookupInScope()
4319 lookupInDeclContext(Entity, Result, /*QualifiedNameLookup=*/false, in lookupInScope()
4323 if (Entity) { in lookupInScope()
4326 for (const UnqualUsingEntry &UUE : UDirs.getNamespacesFor(Entity)) in lookupInScope()