Lines Matching defs:Entity
1549 static Module *getDefiningModule(Sema &S, Decl *Entity) {
1550 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(Entity)) {
1554 Entity = Pattern;
1555 } else if (CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(Entity)) {
1557 Entity = Pattern;
1558 } else if (EnumDecl *ED = dyn_cast<EnumDecl>(Entity)) {
1560 Entity = Pattern;
1561 } else if (VarDecl *VD = dyn_cast<VarDecl>(Entity)) {
1563 Entity = Pattern;
1568 DeclContext *Context = Entity->getLexicalDeclContext();
1570 return S.getOwningModule(Entity);
1578 Module *M = CodeSynthesisContexts[I].Entity ?
1579 getDefiningModule(*this, CodeSynthesisContexts[I].Entity) :
3991 DeclContext *Entity = nullptr;
3996 Entity = S->getEntity();
3999 for (DeclContext *Ctx = Entity; Ctx && !Ctx->Equals(OuterCtx);
4037 Entity = Result.getSema().Context.getTranslationUnitDecl();
4038 lookupInDeclContext(Entity, Result, /*QualifiedNameLookup=*/false,
4042 if (Entity) {
4045 for (const UnqualUsingEntry &UUE : UDirs.getNamespacesFor(Entity))