Lines Matching refs:RD2
8968 RecordDecl *RD2) { in isLayoutCompatibleStruct() argument
8973 const CXXRecordDecl *D2CXX = cast<CXXRecordDecl>(RD2); in isLayoutCompatibleStruct()
8988 } else if (const CXXRecordDecl *D2CXX = dyn_cast<CXXRecordDecl>(RD2)) { in isLayoutCompatibleStruct()
8995 RecordDecl::field_iterator Field2 = RD2->field_begin(), in isLayoutCompatibleStruct()
8996 Field2End = RD2->field_end(), in isLayoutCompatibleStruct()
9013 RecordDecl *RD2) { in isLayoutCompatibleUnion() argument
9015 for (auto *Field2 : RD2->fields()) in isLayoutCompatibleUnion()
9038 bool isLayoutCompatible(ASTContext &C, RecordDecl *RD1, RecordDecl *RD2) { in isLayoutCompatible() argument
9039 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible()
9043 return isLayoutCompatibleUnion(C, RD1, RD2); in isLayoutCompatible()
9045 return isLayoutCompatibleStruct(C, RD1, RD2); in isLayoutCompatible()