Lines Matching refs:RecordDecl
107 bool ImportDefinition(RecordDecl *From, RecordDecl *To,
123 bool IsStructuralMatch(RecordDecl *FromRecord, RecordDecl *ToRecord,
138 Decl *VisitRecordDecl(RecordDecl *D);
844 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext());
851 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl();
852 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl();
924 static Optional<unsigned> findAnonymousStructOrUnionIndex(RecordDecl *Anon) {
928 RecordDecl *Owner = dyn_cast<RecordDecl>(Anon->getDeclContext());
949 RecordDecl *D1, RecordDecl *D2) {
1070 RecordDecl::field_iterator Field2 = D2->field_begin(),
1072 for (RecordDecl::field_iterator Field1 = D1->field_begin(),
1320 if (RecordDecl *Record1 = dyn_cast<RecordDecl>(D1)) {
1321 if (RecordDecl *Record2 = dyn_cast<RecordDecl>(D2)) {
1710 RecordDecl *ToDecl
1711 = dyn_cast_or_null<RecordDecl>(Importer.Import(T->getDecl()));
1844 if (RecordDecl *FromRecord = dyn_cast<RecordDecl>(FromD)) {
1845 if (RecordDecl *ToRecord = cast_or_null<RecordDecl>(ToD)) {
1907 bool ASTNodeImporter::ImportDefinition(RecordDecl *From, RecordDecl *To,
2161 bool ASTNodeImporter::IsStructuralMatch(RecordDecl *FromRecord,
2162 RecordDecl *ToRecord, bool Complain) {
2167 RecordDecl *ToOriginRecord = dyn_cast<RecordDecl>(ToOrigin);
2451 Decl *ASTNodeImporter::VisitRecordDecl(RecordDecl *D) {
2481 RecordDecl *AdoptDecl = nullptr;
2496 if (RecordDecl *FoundRecord = dyn_cast<RecordDecl>(Found)) {
2511 if (RecordDecl *FoundDef = FoundRecord->getDefinition()) {
2559 RecordDecl *D2 = AdoptDecl;
2570 D2 = RecordDecl::Create(Importer.getToContext(), D->getTagKind(),
2835 RecordDecl *Owner = dyn_cast<RecordDecl>(F->getDeclContext());
4100 if (RecordDecl *FoundDef = D2->getDefinition()) {
4661 if (RecordDecl *ToRecord = dyn_cast<RecordDecl>(ToDC)) {
4662 RecordDecl *FromRecord = cast<RecordDecl>(FromDC);
4941 if (RecordDecl *ToRecord = dyn_cast<RecordDecl>(To)) {
4943 Importer.ImportDefinition(cast<RecordDecl>(FromDC), ToRecord,