Lines Matching refs:Owner

330   LabelDecl *Inst = LabelDecl::Create(SemaRef.Context, Owner, D->getLocation(),  in VisitLabelDecl()
332 Owner->addDecl(Inst); in VisitLabelDecl()
344 = NamespaceAliasDecl::Create(SemaRef.Context, Owner, in VisitNamespaceAliasDecl()
351 Owner->addDecl(Inst); in VisitNamespaceAliasDecl()
390 Typedef = TypeAliasDecl::Create(SemaRef.Context, Owner, D->getLocStart(), in InstantiateTypedefNameDecl()
393 Typedef = TypedefDecl::Create(SemaRef.Context, Owner, D->getLocStart(), in InstantiateTypedefNameDecl()
433 Owner->addDecl(Typedef); in VisitTypedefDecl()
440 Owner->addDecl(Typedef); in VisitTypeAliasDecl()
459 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName()); in VisitTypeAliasTemplateDecl()
471 = TypeAliasTemplateDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitTypeAliasTemplateDecl()
482 Owner->addDecl(Inst); in VisitTypeAliasTemplateDecl()
515 DeclContext *DC = Owner; in VisitVarDecl()
533 SemaRef.BuildVariableInstantiation(Var, D, TemplateArgs, LateAttrs, Owner, in VisitVarDecl()
549 = AccessSpecDecl::Create(SemaRef.Context, D->getAccess(), Owner, in VisitAccessSpecDecl()
551 Owner->addHiddenDecl(AD); in VisitAccessSpecDecl()
599 cast<RecordDecl>(Owner), in VisitFieldDecl()
608 cast<Decl>(Owner)->setInvalidDecl(); in VisitFieldDecl()
632 Owner->addDecl(Field); in VisitFieldDecl()
667 SemaRef.Context, Owner, D->getLocation(), D->getDeclName(), DI->getType(), in VisitMSPropertyDecl()
677 Owner->addDecl(Property); in VisitMSPropertyDecl()
698 SemaRef.Context, Owner, D->getLocation(), D->getIdentifier(), T, in VisitIndirectFieldDecl()
706 Owner->addDecl(IndirectField); in VisitIndirectFieldDecl()
735 Owner->addDecl(FD); in VisitFriendDecl()
750 FriendDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitFriendDecl()
754 Owner->addDecl(FD); in VisitFriendDecl()
787 EnumDecl *Enum = EnumDecl::Create(SemaRef.Context, Owner, D->getLocStart(), in VisitEnumDecl()
825 Owner->addDecl(Enum); in VisitEnumDecl()
958 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName()); in VisitClassTemplateDecl()
970 DeclContext *DC = Owner; in VisitClassTemplateDecl()
1086 Inst->setLexicalDeclContext(Owner); in VisitClassTemplateDecl()
1087 RecordInst->setLexicalDeclContext(Owner); in VisitClassTemplateDecl()
1096 Owner->addDecl(Inst); in VisitClassTemplateDecl()
1120 = Owner->lookup(ClassTemplate->getDeclName()); in VisitClassTemplatePartialSpecializationDecl()
1152 DeclContext::lookup_result Found = Owner->lookup(Pattern->getDeclName()); in VisitVarTemplateDecl()
1162 DeclContext *DC = Owner; in VisitVarTemplateDecl()
1179 Owner->addDecl(Inst); in VisitVarTemplateDecl()
1204 DeclContext::lookup_result Found = Owner->lookup(VarTemplate->getDeclName()); in VisitVarTemplatePartialSpecializationDecl()
1260 Owner->addDecl(InstTemplate); in VisitFunctionTemplateDecl()
1272 PrevDecl = cast<CXXRecordDecl>(Owner); in VisitCXXRecordDecl()
1282 = CXXRecordDecl::Create(SemaRef.Context, D->getTagKind(), Owner, in VisitCXXRecordDecl()
1325 Owner->addDecl(Record); in VisitCXXRecordDecl()
1400 Owner->isFunctionOrMethod() || in VisitFunctionDecl()
1401 !(isa<Decl>(Owner) && in VisitFunctionDecl()
1402 cast<Decl>(Owner)->isDefinedOutsideFunctionOrMethod()); in VisitFunctionDecl()
1424 DC = Owner; in VisitFunctionDecl()
1453 DeclContext *LexicalDC = Owner; in VisitFunctionDecl()
1677 !(isa<Decl>(Owner) && in VisitCXXMethodDecl()
1678 cast<Decl>(Owner)->isDefinedOutsideFunctionOrMethod()); in VisitCXXMethodDecl()
1709 DeclContext *DC = Owner; in VisitCXXMethodDecl()
1814 FunctionTemplate->setLexicalDeclContext(Owner); in VisitCXXMethodDecl()
1841 Method->setLexicalDeclContext(Owner); in VisitCXXMethodDecl()
1913 Owner->addDecl(Method); in VisitCXXMethodDecl()
1942 TemplateTypeParmDecl::Create(SemaRef.Context, Owner, in VisitTemplateTypeParmDecl()
2083 Param = NonTypeTemplateParmDecl::Create(SemaRef.Context, Owner, in VisitNonTypeTemplateParmDecl()
2094 Param = NonTypeTemplateParmDecl::Create(SemaRef.Context, Owner, in VisitNonTypeTemplateParmDecl()
2219 Param = TemplateTemplateParmDecl::Create(SemaRef.Context, Owner, in VisitTemplateTemplateParmDecl()
2226 Param = TemplateTemplateParmDecl::Create(SemaRef.Context, Owner, in VisitTemplateTemplateParmDecl()
2261 = UsingDirectiveDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitUsingDirectiveDecl()
2270 if (!Owner->isFunctionOrMethod()) in VisitUsingDirectiveDecl()
2271 Owner->addDecl(Inst); in VisitUsingDirectiveDecl()
2299 bool CheckRedeclaration = Owner->isRecord(); in VisitUsingDecl()
2304 UsingDecl *NewUD = UsingDecl::Create(SemaRef.Context, Owner, in VisitUsingDecl()
2314 SemaRef.LookupQualifiedName(Prev, Owner); in VisitUsingDecl()
2331 Owner->addDecl(NewUD); in VisitUsingDecl()
2342 bool isFunctionScope = Owner->isFunctionOrMethod(); in VisitUsingDecl()
2475 Owner->addDecl(TD); in VisitOMPThreadPrivateDecl()
2506 = Owner->lookup(ClassTemplate->getDeclName()); in VisitClassTemplateSpecializationDecl()
2579 Owner, in VisitClassTemplateSpecializationDecl()
2620 Owner->addDecl(InstD); in VisitClassTemplateSpecializationDecl()
2698 SemaRef.Context, Owner, D->getInnerLocStart(), D->getLocation(), in VisitVarTemplateSpecializationDecl()
2710 Owner, StartingScope); in VisitVarTemplateSpecializationDecl()
2734 Decl *Sema::SubstDecl(Decl *D, DeclContext *Owner, in SubstDecl() argument
2736 TemplateDeclInstantiator Instantiator(*this, Owner, TemplateArgs); in SubstDecl()
2878 Owner, in InstantiateClassTemplatePartialSpecialization()
3010 SemaRef.Context, Owner, PartialSpec->getInnerLocStart(), in InstantiateVarTemplatePartialSpecialization()
3027 LateAttrs, Owner, StartingScope); in InstantiateVarTemplatePartialSpecialization()
3042 ThisContext = cast<CXXRecordDecl>(Owner); in SubstFunctionType()
3613 LateInstantiatedAttrVec *LateAttrs, DeclContext *Owner, in BuildVariableInstantiation() argument
3624 NewVar->setLexicalDeclContext(Owner); in BuildVariableInstantiation()