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