Searched refs:Field2 (Results 1 – 2 of 2) sorted by relevance
/external/clang/lib/AST/ |
D | ASTImporter.cpp | 845 FieldDecl *Field1, FieldDecl *Field2) { in IsStructurallyEquivalent() argument 846 RecordDecl *Owner2 = cast<RecordDecl>(Field2->getDeclContext()); in IsStructurallyEquivalent() 852 Field2->isAnonymousStructOrUnion()) { in IsStructurallyEquivalent() 854 RecordDecl *D2 = Field2->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent() 860 IdentifierInfo *Name2 = Field2->getIdentifier(); in IsStructurallyEquivalent() 865 Field1->getType(), Field2->getType())) { in IsStructurallyEquivalent() 869 Context.Diag2(Field2->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent() 870 << Field2->getDeclName() << Field2->getType(); in IsStructurallyEquivalent() 877 if (Field1->isBitField() != Field2->isBitField()) { in IsStructurallyEquivalent() 885 Context.Diag2(Field2->getLocation(), diag::note_odr_not_bit_field) in IsStructurallyEquivalent() [all …]
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 8945 bool isLayoutCompatible(ASTContext &C, FieldDecl *Field1, FieldDecl *Field2) { in isLayoutCompatible() argument 8946 if (!isLayoutCompatible(C, Field1->getType(), Field2->getType())) in isLayoutCompatible() 8949 if (Field1->isBitField() != Field2->isBitField()) in isLayoutCompatible() 8955 unsigned Bits2 = Field2->getBitWidthValue(C); in isLayoutCompatible() 8995 RecordDecl::field_iterator Field2 = RD2->field_begin(), in isLayoutCompatibleStruct() local 8999 for ( ; Field1 != Field1End && Field2 != Field2End; ++Field1, ++Field2) { in isLayoutCompatibleStruct() 9000 if (!isLayoutCompatible(C, *Field1, *Field2)) in isLayoutCompatibleStruct() 9003 if (Field1 != Field1End || Field2 != Field2End) in isLayoutCompatibleStruct() 9015 for (auto *Field2 : RD2->fields()) in isLayoutCompatibleUnion() local 9016 UnmatchedFields.insert(Field2); in isLayoutCompatibleUnion()
|