Home
last modified time | relevance | path

Searched refs:Field2 (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/AST/
DASTImporter.cpp951 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()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp10537 bool isLayoutCompatible(ASTContext &C, FieldDecl *Field1, FieldDecl *Field2) { in isLayoutCompatible() argument
10538 if (!isLayoutCompatible(C, Field1->getType(), Field2->getType())) in isLayoutCompatible()
10541 if (Field1->isBitField() != Field2->isBitField()) in isLayoutCompatible()
10547 unsigned Bits2 = Field2->getBitWidthValue(C); in isLayoutCompatible()
10587 RecordDecl::field_iterator Field2 = RD2->field_begin(), in isLayoutCompatibleStruct() local
10591 for ( ; Field1 != Field1End && Field2 != Field2End; ++Field1, ++Field2) { in isLayoutCompatibleStruct()
10592 if (!isLayoutCompatible(C, *Field1, *Field2)) in isLayoutCompatibleStruct()
10595 if (Field1 != Field1End || Field2 != Field2End) in isLayoutCompatibleStruct()
10607 for (auto *Field2 : RD2->fields()) in isLayoutCompatibleUnion() local
10608 UnmatchedFields.insert(Field2); in isLayoutCompatibleUnion()