Home
last modified time | relevance | path

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

/external/clang/lib/AST/
DASTImporter.cpp845 FieldDecl *Field1, FieldDecl *Field2) { in IsStructurallyEquivalent() argument
851 if (Field1->isAnonymousStructOrUnion() && in IsStructurallyEquivalent()
853 RecordDecl *D1 = Field1->getType()->castAs<RecordType>()->getDecl(); in IsStructurallyEquivalent()
859 IdentifierInfo *Name1 = Field1->getIdentifier(); in IsStructurallyEquivalent()
865 Field1->getType(), Field2->getType())) { in IsStructurallyEquivalent()
871 Context.Diag1(Field1->getLocation(), diag::note_odr_field) in IsStructurallyEquivalent()
872 << Field1->getDeclName() << Field1->getType(); in IsStructurallyEquivalent()
877 if (Field1->isBitField() != Field2->isBitField()) { in IsStructurallyEquivalent()
881 if (Field1->isBitField()) { in IsStructurallyEquivalent()
882 Context.Diag1(Field1->getLocation(), diag::note_odr_bit_field) in IsStructurallyEquivalent()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp8945 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()
8952 if (Field1->isBitField()) { in isLayoutCompatible()
8954 unsigned Bits1 = Field1->getBitWidthValue(C); in isLayoutCompatible()
8997 Field1 = RD1->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()
9018 for (auto *Field1 : RD1->fields()) { in isLayoutCompatibleUnion() local
[all …]