Searched refs:Field1 (Results 1 – 2 of 2) sorted by relevance
/external/clang/lib/AST/ |
D | ASTImporter.cpp | 951 FieldDecl *Field1, FieldDecl *Field2) { in IsStructurallyEquivalent() argument 957 if (Field1->isAnonymousStructOrUnion() && in IsStructurallyEquivalent() 959 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent() 965 IdentifierInfo *Name1 = Field1->getIdentifier(); in IsStructurallyEquivalent() 971 Field1->getType(), Field2->getType())) { in IsStructurallyEquivalent() 977 Context.Diag1(Field1->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent() 978 << Field1->getDeclName() << Field1->getType(); in IsStructurallyEquivalent() 983 if (Field1->isBitField() != Field2->isBitField()) { in IsStructurallyEquivalent() 987 if (Field1->isBitField()) { in IsStructurallyEquivalent() 988 Context.Diag1(Field1->getLocation(), diag::note_odr_bit_field) in IsStructurallyEquivalent() [all …]
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 10537 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() 10544 if (Field1->isBitField()) { in isLayoutCompatible() 10546 unsigned Bits1 = Field1->getBitWidthValue(C); in isLayoutCompatible() 10589 Field1 = RD1->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() 10610 for (auto *Field1 : RD1->fields()) { in isLayoutCompatibleUnion() local [all …]
|