Lines Matching refs:RD2
10560 RecordDecl *RD2) { in isLayoutCompatibleStruct() argument
10565 const CXXRecordDecl *D2CXX = cast<CXXRecordDecl>(RD2); in isLayoutCompatibleStruct()
10580 } else if (const CXXRecordDecl *D2CXX = dyn_cast<CXXRecordDecl>(RD2)) { in isLayoutCompatibleStruct()
10587 RecordDecl::field_iterator Field2 = RD2->field_begin(), in isLayoutCompatibleStruct()
10588 Field2End = RD2->field_end(), in isLayoutCompatibleStruct()
10605 RecordDecl *RD2) { in isLayoutCompatibleUnion() argument
10607 for (auto *Field2 : RD2->fields()) in isLayoutCompatibleUnion()
10630 bool isLayoutCompatible(ASTContext &C, RecordDecl *RD1, RecordDecl *RD2) { in isLayoutCompatible() argument
10631 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible()
10635 return isLayoutCompatibleUnion(C, RD1, RD2); in isLayoutCompatible()
10637 return isLayoutCompatibleStruct(C, RD1, RD2); in isLayoutCompatible()