Lines Matching refs:RecordDecl
108 bool ImportDefinition(RecordDecl *From, RecordDecl *To,
124 bool IsStructuralMatch(RecordDecl *FromRecord, RecordDecl *ToRecord,
139 Decl *VisitRecordDecl(RecordDecl *D);
846 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent()
853 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent()
854 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent()
926 static Optional<unsigned> findAnonymousStructOrUnionIndex(RecordDecl *Anon) { in findAnonymousStructOrUnionIndex()
930 RecordDecl *Owner = dyn_cast<RecordDecl>(Anon->getDeclContext()); in findAnonymousStructOrUnionIndex()
951 RecordDecl *D1, RecordDecl *D2) { in IsStructurallyEquivalent()
1072 RecordDecl::field_iterator Field2 = D2->field_begin(), in IsStructurallyEquivalent()
1074 for (RecordDecl::field_iterator Field1 = D1->field_begin(), in IsStructurallyEquivalent()
1322 if (RecordDecl *Record1 = dyn_cast<RecordDecl>(D1)) { in Finish()
1323 if (RecordDecl *Record2 = dyn_cast<RecordDecl>(D2)) { in Finish()
1711 RecordDecl *ToDecl in VisitRecordType()
1712 = dyn_cast_or_null<RecordDecl>(Importer.Import(T->getDecl())); in VisitRecordType()
1866 if (RecordDecl *FromRecord = dyn_cast<RecordDecl>(FromD)) { in ImportDefinitionIfNeeded()
1867 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) { in ImportDefinitionIfNeeded()
1929 bool ASTNodeImporter::ImportDefinition(RecordDecl *From, RecordDecl *To, in ImportDefinition()
2184 bool ASTNodeImporter::IsStructuralMatch(RecordDecl *FromRecord, in IsStructuralMatch()
2185 RecordDecl *ToRecord, bool Complain) { in IsStructuralMatch()
2190 RecordDecl *ToOriginRecord = dyn_cast<RecordDecl>(ToOrigin); in IsStructuralMatch()
2474 Decl *ASTNodeImporter::VisitRecordDecl(RecordDecl *D) { in VisitRecordDecl()
2504 RecordDecl *AdoptDecl = nullptr; in VisitRecordDecl()
2519 if (RecordDecl *FoundRecord = dyn_cast<RecordDecl>(Found)) { in VisitRecordDecl()
2534 if (RecordDecl *FoundDef = FoundRecord->getDefinition()) { in VisitRecordDecl()
2582 RecordDecl *D2 = AdoptDecl; in VisitRecordDecl()
2593 D2 = RecordDecl::Create(Importer.getToContext(), D->getTagKind(), in VisitRecordDecl()
2859 RecordDecl *Owner = dyn_cast<RecordDecl>(F->getDeclContext()); in getFieldIndex()
4157 if (RecordDecl *FoundDef = D2->getDefinition()) { in VisitClassTemplateSpecializationDecl()
4718 if (RecordDecl *ToRecord = dyn_cast<RecordDecl>(ToDC)) { in ImportContext()
4719 RecordDecl *FromRecord = cast<RecordDecl>(FromDC); in ImportContext()
5011 if (RecordDecl *ToRecord = dyn_cast<RecordDecl>(To)) { in ImportDefinition()
5013 Importer.ImportDefinition(cast<RecordDecl>(FromDC), ToRecord, in ImportDefinition()