Lines Matching refs:Entity
1544 static Module *getDefiningModule(Sema &S, Decl *Entity) { in getDefiningModule() argument
1545 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Entity)) { in getDefiningModule()
1549 Entity = Pattern; in getDefiningModule()
1550 } else if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(Entity)) { in getDefiningModule()
1552 Entity = Pattern; in getDefiningModule()
1553 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(Entity)) { in getDefiningModule()
1555 Entity = Pattern; in getDefiningModule()
1556 } else if (VarDecl *VD = dyn_cast<VarDecl>(Entity)) { in getDefiningModule()
1558 Entity = Pattern; in getDefiningModule()
1563 DeclContext *Context = Entity->getLexicalDeclContext(); in getDefiningModule()
1565 return S.getOwningModule(Entity); in getDefiningModule()
1573 Module *M = CodeSynthesisContexts[I].Entity ? in getLookupModules()
1574 getDefiningModule(*this, CodeSynthesisContexts[I].Entity) : in getLookupModules()
4339 DeclContext *Entity = S->getLookupEntity(); in lookupInScope() local
4340 if (Entity) { in lookupInScope()
4346 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx); in lookupInScope()
4384 Entity = Result.getSema().Context.getTranslationUnitDecl(); in lookupInScope()
4385 lookupInDeclContext(Entity, Result, /*QualifiedNameLookup=*/false, in lookupInScope()
4389 if (Entity) { in lookupInScope()
4392 for (const UnqualUsingEntry &UUE : UDirs.getNamespacesFor(Entity)) in lookupInScope()