Lines Matching refs:Owner
160 LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(),
162 Owner->addDecl(Inst);
174 = NamespaceAliasDecl::Create(SemaRef.Context, Owner,
181 Owner->addDecl(Inst);
220 Typedef = TypeAliasDecl::Create(SemaRef.Context, Owner, D->getLocStart(),
223 Typedef = TypedefDecl::Create(SemaRef.Context, Owner, D->getLocStart(),
262 Owner->addDecl(Typedef);
268 Owner->addDecl(Typedef);
287 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName());
299 = TypeAliasTemplateDecl::Create(SemaRef.Context, Owner, D->getLocation(),
309 Owner->addDecl(Inst);
337 VarDecl *Var = VarDecl::Create(SemaRef.Context, Owner,
376 SemaRef.LookupQualifiedName(Previous, Owner, false);
387 Owner->makeDeclVisibleInContext(Var);
389 Owner->addDecl(Var);
390 if (Owner->isFunctionOrMethod())
432 if (!Var->isInvalidDecl() && Owner->isFunctionOrMethod() && !Var->isUsed() &&
441 = AccessSpecDecl::Create(SemaRef.Context, D->getAccess(), Owner,
443 Owner->addHiddenDecl(AD);
491 cast<RecordDecl>(Owner),
500 cast<Decl>(Owner)->setInvalidDecl();
524 Owner->addDecl(Field);
547 = IndirectFieldDecl::Create(SemaRef.Context, Owner, D->getLocation(),
554 Owner->addDecl(IndirectField);
583 Owner->addDecl(FD);
593 // decl should almost certainly not be placed in Owner.
598 FriendDecl::Create(SemaRef.Context, Owner, D->getLocation(),
602 Owner->addDecl(FD);
635 EnumDecl *Enum = EnumDecl::Create(SemaRef.Context, Owner, D->getLocStart(),
663 Owner->addDecl(Enum);
794 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName());
806 DeclContext *DC = Owner;
926 Inst->setLexicalDeclContext(Owner);
927 RecordInst->setLexicalDeclContext(Owner);
936 Owner->addDecl(Inst);
960 = Owner->lookup(ClassTemplate->getDeclName());
1019 Owner->addDecl(InstTemplate);
1031 PrevDecl = cast<CXXRecordDecl>(Owner);
1041 = CXXRecordDecl::Create(SemaRef.Context, D->getTagKind(), Owner,
1070 Owner->addDecl(Record);
1129 Owner->isFunctionOrMethod() ||
1130 !(isa<Decl>(Owner) &&
1131 cast<Decl>(Owner)->isDefinedOutsideFunctionOrMethod());
1149 // in the owner; otherwise we need to find the instantiated context.
1152 DC = Owner;
1176 DeclContext *LexicalDC = Owner;
1317 // inherit its namespace state and add it to the owner.
1437 !(isa<Decl>(Owner) &&
1438 cast<Decl>(Owner)->isDefinedOutsideFunctionOrMethod());
1487 DeclContext *DC = Owner;
1563 FunctionTemplate->setLexicalDeclContext(Owner);
1591 Method->setLexicalDeclContext(Owner);
1663 Owner->addDecl(Method);
1692 TemplateTypeParmDecl::Create(SemaRef.Context, Owner,
1828 Param = NonTypeTemplateParmDecl::Create(SemaRef.Context, Owner,
1839 Param = NonTypeTemplateParmDecl::Create(SemaRef.Context, Owner,
1961 Param = TemplateTemplateParmDecl::Create(SemaRef.Context, Owner,
1968 Param = TemplateTemplateParmDecl::Create(SemaRef.Context, Owner,
1989 = UsingDirectiveDecl::Create(SemaRef.Context, Owner, D->getLocation(),
1998 if (!Owner->isFunctionOrMethod())
1999 Owner->addDecl(Inst);
2027 bool CheckRedeclaration = Owner->isRecord();
2032 UsingDecl *NewUD = UsingDecl::Create(SemaRef.Context, Owner,
2042 SemaRef.LookupQualifiedName(Prev, Owner);
2059 Owner->addDecl(NewUD);
2071 bool isFunctionScope = Owner->isFunctionOrMethod();
2186 Decl *Sema::SubstDecl(Decl *D, DeclContext *Owner,
2188 TemplateDeclInstantiator Instantiator(*this, Owner, TemplateArgs);
2329 Owner,