Home
last modified time | relevance | path

Searched refs:isUnion (Results 1 – 25 of 40) sorted by relevance

12

/external/clang/utils/ABITest/
DTypeGen.py85 def __init__(self, index, isUnion, fields): argument
87 self.isUnion = isUnion
98 return '%s { %s }'%(('struct','union')[self.isUnion],
113 return 'typedef %s %s { %s } %s;'%(('struct','union')[self.isUnion],
370 isUnion,I = False,N
372 isUnion,I = (I&1),I>>1
374 return RecordType(N, isUnion, fields)
DABITestGen.py228 if t.isUnion:
329 if t.isUnion:
/external/clang/include/clang/AST/
DAPValue.h190 bool isUnion() const { return Kind == Union; } in isUnion() function
323 assert(isUnion() && "Invalid accessor"); in getUnionField()
327 assert(isUnion() && "Invalid accessor"); in getUnionValue()
382 assert(isUnion() && "Invalid accessor"); in setUnion()
DDeclCXX.h1118 return !isUnion() && !hasUserDeclaredConstructor() && in hasUninitializedReferenceMember()
1195 (!isUnion() || hasInClassInitializer() || !hasVariantMembers()); in defaultedDefaultConstructorIsConstexpr()
/external/clang/lib/AST/
DItaniumCXXABI.cpp45 assert(RT->getDecl()->isUnion() && "RecordType is expected to be a union."); in findAnonymousUnionVarDeclName()
DDeclCXX.cpp670 if (isUnion() && !Field->isAnonymousStructOrUnion()) in addedMember()
762 if (isUnion()) { in addedMember()
859 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember()
896 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
DExprConstant.cpp1376 if (Value.isUnion() && Value.getUnionField()) { in CheckConstantExpression()
2103 if (!RD || (RD->isUnion() && !RD->field_empty())) in isReadByLvalueToRvalueConversion()
2136 (RD->isUnion() || isReadByLvalueToRvalueConversion(Field->getType()))) { in diagnoseUnreadableFields()
2303 if (RD->isUnion()) { in findSubobject()
3731 (MD->getParent()->isUnion() || hasFields(MD->getParent()))) { in HandleFunctionCall()
3798 (Definition->getParent()->isUnion() || in HandleConstructorCall()
3807 if (!RD->isUnion() && Result.isUninit()) in HandleConstructorCall()
3845 if (RD->isUnion()) { in HandleConstructorCall()
3863 (Value->isUnion() && Value->getUnionField() != FD)) { in HandleConstructorCall()
3864 if (CD->isUnion()) in HandleConstructorCall()
[all …]
DType.cpp387 return RT->getDecl()->isUnion(); in isUnionType()
447 if (RT->getDecl()->isUnion()) in getAsUnionType()
453 if (!RT->getDecl()->isUnion()) in getAsUnionType()
DCommentSema.cpp881 return RD->isUnion(); in isUnionDecl()
DRecordLayoutBuilder.cpp1234 IsUnion = RD->isUnion(); in InitializeLayout()
2376 IsUnion = RD->isUnion(); in initializeLayout()
DASTContext.cpp5476 S += RDecl->isUnion() ? '(' : '{'; in getObjCEncodingForTypeImpl()
5494 if (!RDecl->isUnion()) { in getObjCEncodingForTypeImpl()
5520 S += RDecl->isUnion() ? ')' : '}'; in getObjCEncodingForTypeImpl()
5712 assert(!RDecl->isUnion() && "Should not be called for unions"); in getObjCEncodingForStructureImpl()
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp257 if (D->isUnion()) in lower()
677 if (isa<CXXRecordDecl>(D) && !D->isUnion() && !D->hasAttr<FinalAttr>()) { in ComputeRecordLayout()
771 if (D->isUnion()) { in ComputeRecordLayout()
DCGExprConstant.cpp368 if (RD->isUnion() && ILE->getInitializedFieldInUnion() != *Field) in Build()
463 if (RD->isUnion() && Val.getUnionField() != *Field) in Build()
472 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build()
1352 if (record->isUnion() && Field->getDeclName()) in EmitNullConstant()
DCGDebugInfo.cpp628 else if (RD->isUnion()) in getTagForRecord()
826 else if (RD && (RD->isStruct() || RD->isUnion())) in getAccessFlag()
2875 if (RD->isUnion() && RD->isAnonymousStructOrUnion()) { in EmitDeclare()
DCGExprAgg.cpp1169 if (record->isUnion()) { in VisitInitListExpr()
DTargetInfo.cpp3540 Members = (RD->isUnion() ? in isHomogeneousAggregate()
4767 if (!RD->isUnion()) in isIntegerLikeType()
4786 if (!RD->isUnion()) { in isIntegerLikeType()
/external/clang/lib/Sema/
DSemaDecl.cpp3659 << Record->isUnion() << DS.getSourceRange(); in ParsedFreeStandingDeclSpec()
3828 = AnonRecord->isUnion() ? diag::err_anonymous_union_member_redecl in InjectAnonymousStructOrUnionMembers()
3926 if (!Parent->isUnion() || !Parent->hasInClassInitializer()) in checkDuplicateDefaultInit()
3935 if (!Parent->isUnion() || !Parent->hasInClassInitializer()) in checkDuplicateDefaultInit()
3952 if (Record->isUnion() && !getLangOpts().CPlusPlus && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
3954 else if (!Record->isUnion() && getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
3956 else if (!Record->isUnion() && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
3965 if (Record->isUnion()) { in BuildAnonymousStructOrUnion()
4000 << Record->isUnion() << "const" in BuildAnonymousStructOrUnion()
4005 << Record->isUnion() << "volatile" in BuildAnonymousStructOrUnion()
[all …]
DSemaDeclCXX.cpp984 if (!RD->isUnion() || Inits.count(I)) in CheckConstexprCtorInitializer()
1153 if (RD->isUnion()) { in CheckConstexprFunctionBody()
1388 if (Class->isUnion()) { in CheckBaseSpecifier()
3656 if (!Field->getParent()->isUnion()) { in BuildImplicitMemberInitializer()
3746 if (!Record->isUnion()) in isInactiveUnionMember()
3931 if (FD && FD->getParent()->isUnion()) in SetCtorInitializers()
3936 if (FD->getParent()->isUnion()) in SetCtorInitializers()
4218 while (Parent->isAnonymousStructOrUnion() || Parent->isUnion()) { in CheckRedundantUnionInit()
4219 if (Parent->isUnion()) { in CheckRedundantUnionInit()
4318 if (ClassDecl->isDependentContext() || ClassDecl->isUnion()) in MarkBaseAndMemberDestructorsReferenced()
[all …]
DSemaInit.cpp534 if (RDecl->isUnion() && ILE->getInitializedFieldInUnion()) in FillInEmptyInitializations()
537 else if (RDecl->isUnion() && isa<CXXRecordDecl>(RDecl) && in FillInEmptyInitializations()
561 if (RDecl->isUnion()) in FillInEmptyInitializations()
679 if (structDecl->isUnion()) in numStructUnionElements()
2018 if (RT->getDecl()->isUnion()) { in CheckDesignatedInitializer()
2160 if (RT->getDecl()->isUnion()) in CheckDesignatedInitializer()
2440 if (RDecl->isUnion()) in getStructuredSubobjectInit()
5677 if (RD->isUnion() && ILE->getInitializedFieldInUnion() && in performLifetimeExtension()
DSema.cpp855 if (RD && !RD->isUnion() && in ActOnEndOfTranslationUnit()
DSemaDeclObjC.cpp2154 if (left->isUnion() != right->isUnion()) return false; in tryMatchRecordTypes()
DSemaChecking.cpp7912 if (RD->isUnion()) return false; in IsTailPaddedMemberArray()
9039 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible()
9042 if (RD1->isUnion()) in isLayoutCompatible()
DSemaCast.cpp2269 if (DestRecordTy && DestRecordTy->getDecl()->isUnion()) { in CheckCStyleCast()
/external/clang/lib/StaticAnalyzer/Core/
DMemRegion.cpp1308 if (RD->isUnion() || !RD->isCompleteDefinition()) { in getAsOffset()
DRegionStore.cpp765 return FR->getDecl()->getParent()->isUnion(); in isUnionField()

12