Searched refs:Field2 (Results 1 – 2 of 2) sorted by relevance
/external/clang/lib/AST/ |
D | ASTImporter.cpp | 888 FieldDecl *Field1, FieldDecl *Field2) { in IsStructurallyEquivalent() argument 889 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent() 895 Field2->isAnonymousStructOrUnion()) { in IsStructurallyEquivalent() 897 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent() 903 IdentifierInfo *Name2 = Field2->getIdentifier(); in IsStructurallyEquivalent() 908 Field1->getType(), Field2->getType())) { in IsStructurallyEquivalent() 912 Context.Diag2(Field2->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent() 913 << Field2->getDeclName() << Field2->getType(); in IsStructurallyEquivalent() 920 if (Field1->isBitField() != Field2->isBitField()) { in IsStructurallyEquivalent() 928 Context.Diag2(Field2->getLocation(), diag::note_odr_not_bit_field) in IsStructurallyEquivalent() [all …]
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 9516 bool isLayoutCompatible(ASTContext &C, FieldDecl *Field1, FieldDecl *Field2) { in isLayoutCompatible() argument 9517 if (!isLayoutCompatible(C, Field1->getType(), Field2->getType())) in isLayoutCompatible() 9520 if (Field1->isBitField() != Field2->isBitField()) in isLayoutCompatible() 9526 unsigned Bits2 = Field2->getBitWidthValue(C); in isLayoutCompatible() 9566 RecordDecl::field_iterator Field2 = RD2->field_begin(), in isLayoutCompatibleStruct() local 9570 for ( ; Field1 != Field1End && Field2 != Field2End; ++Field1, ++Field2) { in isLayoutCompatibleStruct() 9571 if (!isLayoutCompatible(C, *Field1, *Field2)) in isLayoutCompatibleStruct() 9574 if (Field1 != Field1End || Field2 != Field2End) in isLayoutCompatibleStruct() 9586 for (auto *Field2 : RD2->fields()) in isLayoutCompatibleUnion() local 9587 UnmatchedFields.insert(Field2); in isLayoutCompatibleUnion()
|