Home
last modified time | relevance | path

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

/external/clang/lib/AST/
DASTImporter.cpp888 FieldDecl *Field1, FieldDecl *Field2) { in IsStructurallyEquivalent() argument
894 if (Field1->isAnonymousStructOrUnion() && in IsStructurallyEquivalent()
896 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent()
902 IdentifierInfo *Name1 = Field1->getIdentifier(); in IsStructurallyEquivalent()
908 Field1->getType(), Field2->getType())) { in IsStructurallyEquivalent()
914 Context.Diag1(Field1->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent()
915 << Field1->getDeclName() << Field1->getType(); in IsStructurallyEquivalent()
920 if (Field1->isBitField() != Field2->isBitField()) { in IsStructurallyEquivalent()
924 if (Field1->isBitField()) { in IsStructurallyEquivalent()
925 Context.Diag1(Field1->getLocation(), diag::note_odr_bit_field) in IsStructurallyEquivalent()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp9516 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()
9523 if (Field1->isBitField()) { in isLayoutCompatible()
9525 unsigned Bits1 = Field1->getBitWidthValue(C); in isLayoutCompatible()
9568 Field1 = RD1->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()
9589 for (auto *Field1 : RD1->fields()) { in isLayoutCompatibleUnion() local
[all …]