Lines Matching refs:Field2
951 FieldDecl *Field1, FieldDecl *Field2) { in IsStructurallyEquivalent() argument
952 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent()
958 Field2->isAnonymousStructOrUnion()) { in IsStructurallyEquivalent()
960 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent()
966 IdentifierInfo *Name2 = Field2->getIdentifier(); in IsStructurallyEquivalent()
971 Field1->getType(), Field2->getType())) { in IsStructurallyEquivalent()
975 Context.Diag2(Field2->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent()
976 << Field2->getDeclName() << Field2->getType(); in IsStructurallyEquivalent()
983 if (Field1->isBitField() != Field2->isBitField()) { in IsStructurallyEquivalent()
991 Context.Diag2(Field2->getLocation(), diag::note_odr_not_bit_field) in IsStructurallyEquivalent()
992 << Field2->getDeclName(); in IsStructurallyEquivalent()
994 Context.Diag2(Field2->getLocation(), diag::note_odr_bit_field) in IsStructurallyEquivalent()
995 << Field2->getDeclName() << Field2->getType() in IsStructurallyEquivalent()
996 << Field2->getBitWidthValue(Context.C2); in IsStructurallyEquivalent()
1007 unsigned Bits2 = Field2->getBitWidthValue(Context.C2); in IsStructurallyEquivalent()
1013 Context.Diag2(Field2->getLocation(), diag::note_odr_bit_field) in IsStructurallyEquivalent()
1014 << Field2->getDeclName() << Field2->getType() << Bits2; in IsStructurallyEquivalent()
1194 RecordDecl::field_iterator Field2 = D2->field_begin(), in IsStructurallyEquivalent() local
1199 ++Field1, ++Field2) { in IsStructurallyEquivalent()
1200 if (Field2 == Field2End) { in IsStructurallyEquivalent()
1211 if (!IsStructurallyEquivalent(Context, *Field1, *Field2)) in IsStructurallyEquivalent()
1215 if (Field2 != Field2End) { in IsStructurallyEquivalent()
1219 Context.Diag2(Field2->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent()
1220 << Field2->getDeclName() << Field2->getType(); in IsStructurallyEquivalent()