Lines Matching refs:RD2
9539 RecordDecl *RD2) { in isLayoutCompatibleStruct() argument
9544 const CXXRecordDecl *D2CXX = cast<CXXRecordDecl>(RD2); in isLayoutCompatibleStruct()
9559 } else if (const CXXRecordDecl *D2CXX = dyn_cast<CXXRecordDecl>(RD2)) { in isLayoutCompatibleStruct()
9566 RecordDecl::field_iterator Field2 = RD2->field_begin(), in isLayoutCompatibleStruct()
9567 Field2End = RD2->field_end(), in isLayoutCompatibleStruct()
9584 RecordDecl *RD2) { in isLayoutCompatibleUnion() argument
9586 for (auto *Field2 : RD2->fields()) in isLayoutCompatibleUnion()
9609 bool isLayoutCompatible(ASTContext &C, RecordDecl *RD1, RecordDecl *RD2) { in isLayoutCompatible() argument
9610 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible()
9614 return isLayoutCompatibleUnion(C, RD1, RD2); in isLayoutCompatible()
9616 return isLayoutCompatibleStruct(C, RD1, RD2); in isLayoutCompatible()