Home
last modified time | relevance | path

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

12

/external/clang/utils/ABITest/
DTypeGen.py81 def __init__(self, index, isUnion, fields): argument
83 self.isUnion = isUnion
94 return '%s { %s }'%(('struct','union')[self.isUnion],
109 return 'typedef %s %s { %s } %s;'%(('struct','union')[self.isUnion],
366 isUnion,I = False,N
368 isUnion,I = (I&1),I>>1
370 return RecordType(N, isUnion, fields)
DABITestGen.py228 if t.isUnion:
329 if t.isUnion:
/external/clang/include/clang/AST/
DAPValue.h184 bool isUnion() const { return Kind == Union; } in isUnion() function
317 assert(isUnion() && "Invalid accessor"); in getUnionField()
321 assert(isUnion() && "Invalid accessor"); in getUnionValue()
376 assert(isUnion() && "Invalid accessor"); in setUnion()
DDeclCXX.h1098 (!isUnion() || hasInClassInitializer());
DDecl.h2630 bool isUnion() const { return getTagKind() == TTK_Union; } in isUnion() function
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp211 if (D->isUnion()) { in Layout()
527 assert(D->isUnion() && "Can't call LayoutUnion on a non-union record!"); in LayoutUnion()
805 assert(!D->isUnion() && "Can't call LayoutFields on a union!"); in LayoutFields()
1007 if (isa<CXXRecordDecl>(D) && !D->isUnion()) { in ComputeRecordLayout()
DCGExprConstant.cpp397 if (RD->isUnion() && ILE->getInitializedFieldInUnion() != *Field) in Build()
497 if (RD->isUnion() && Val.getUnionField() != *Field) in Build()
508 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build()
1392 if (record->isUnion() && field->getDeclName()) in EmitNullConstant()
DCGDebugInfo.cpp528 else if (RD->isUnion()) in createRecordFwdDecl()
1276 if (RD->isUnion()) in CreateType()
1875 if (RD->isUnion()) in CreateLimitedType()
2364 if (RD->isUnion()) { in EmitDeclare()
DCGCall.cpp477 if (RD->isUnion()) { in GetExpandedTypes()
528 if (RD->isUnion()) { in ExpandTypeFromArgs()
1870 if (RD->isUnion()) { in ExpandTypeToArgs()
DTargetInfo.cpp2774 Members = (RD->isUnion() ? in isHomogeneousAggregate()
2924 if (!RD->isUnion()) in isIntegerLikeType()
2943 if (!RD->isUnion()) { in isIntegerLikeType()
DCGExprAgg.cpp1034 if (record->isUnion()) { in VisitInitListExpr()
DCGClass.cpp1026 if (ClassDecl->isUnion()) in EnterDtorCleanups()
/external/clang/lib/Sema/
DSemaDecl.cpp2847 = AnonRecord->isUnion() ? diag::err_anonymous_union_member_redecl in InjectAnonymousStructOrUnionMembers()
2954 if (Record->isUnion() && !getLangOpts().CPlusPlus && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
2956 else if (!Record->isUnion() && getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
2958 else if (!Record->isUnion() && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
2967 if (Record->isUnion()) { in BuildAnonymousStructOrUnion()
3002 << Record->isUnion() << 0 in BuildAnonymousStructOrUnion()
3007 << Record->isUnion() << 1 in BuildAnonymousStructOrUnion()
3012 << Record->isUnion() << 2 in BuildAnonymousStructOrUnion()
3032 << (int)Record->isUnion() << (int)(FD->getAccess() == AS_protected); in BuildAnonymousStructOrUnion()
3056 << (int)Record->isUnion(); in BuildAnonymousStructOrUnion()
[all …]
DSemaDeclCXX.cpp850 if (!RD->isUnion() || Inits.count(*I)) in CheckConstexprCtorInitializer()
922 if (RD->isUnion()) { in CheckConstexprFunctionBody()
1035 if (Class->isUnion()) { in CheckBaseSpecifier()
2754 if (!Field->getParent()->isUnion()) { in BuildImplicitMemberInitializer()
2847 if (Record->isUnion()) in isWithinAnonymousUnion()
2897 if (Field->getParent()->isUnion() || in CollectFieldInitializer()
3268 while (Parent->isAnonymousStructOrUnion() || Parent->isUnion()) { in CheckRedundantUnionInit()
3269 if (Parent->isUnion()) { in CheckRedundantUnionInit()
3371 if (ClassDecl->isDependentContext() || ClassDecl->isUnion()) in MarkBaseAndMemberDestructorsReferenced()
3402 if (FieldClassDecl->isUnion() && FieldClassDecl->isAnonymousStructOrUnion()) in MarkBaseAndMemberDestructorsReferenced()
[all …]
DSemaInit.cpp361 if (RType->getDecl()->isUnion() && in FillInValueInitializations()
384 if (RType->getDecl()->isUnion()) in FillInValueInitializations()
514 if (structDecl->isUnion()) in numStructUnionElements()
1766 if (RT->getDecl()->isUnion()) { in CheckDesignatedInitializer()
1887 if (RT->getDecl()->isUnion()) in CheckDesignatedInitializer()
2109 if (RDecl->isUnion()) in getStructuredSubobjectInit()
DSema.cpp731 if (RD && !RD->isUnion() && in ActOnEndOfTranslationUnit()
DSemaChecking.cpp5084 if (RD->isUnion()) return false; in IsTailPaddedMemberArray()
5803 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible()
5806 if (RD1->isUnion()) in isLayoutCompatible()
DSemaDeclObjC.cpp1975 if (left->isUnion() != right->isUnion()) return false; in tryMatchRecordTypes()
DSemaCast.cpp1992 if (DestRecordTy && DestRecordTy->getDecl()->isUnion()) { in CheckCStyleCast()
DSemaDeclAttr.cpp3042 if (!RD || !RD->isUnion()) { in handleTransparentUnionAttr()
4050 if (!RD || RD->isUnion()) { in handleNSBridgedAttr()
/external/clang/lib/AST/
DExprConstant.cpp1056 if (Value.isUnion() && Value.getUnionField()) { in CheckConstantExpression()
1598 if (RD->isUnion()) { in ExtractSubobject()
2201 if (!RD->isUnion() && Result.isUninit()) in HandleConstructorCall()
2236 if (RD->isUnion()) { in HandleConstructorCall()
2256 (Value->isUnion() && Value->getUnionField() != FD)) { in HandleConstructorCall()
2257 if (CD->isUnion()) in HandleConstructorCall()
2265 if (CD->isUnion()) in HandleConstructorCall()
3293 assert(!RD->isUnion() && "Expected non-union class type"); in HandleClassZeroInitialization()
3337 if (RD->isUnion()) { in ZeroInitialization()
3403 if (RD->isUnion()) { in VisitInitListExpr()
[all …]
DType.cpp379 return RT->getDecl()->isUnion(); in isUnionType()
435 if (RT->getDecl()->isUnion()) in getAsUnionType()
441 if (!RT->getDecl()->isUnion()) in getAsUnionType()
DDeclCXX.cpp899 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember()
907 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
DASTContext.cpp4899 S += RDecl->isUnion() ? '(' : '{'; in getObjCEncodingForTypeImpl()
4919 if (!RDecl->isUnion()) { in getObjCEncodingForTypeImpl()
4946 S += RDecl->isUnion() ? ')' : '}'; in getObjCEncodingForTypeImpl()
5101 assert(!RDecl->isUnion() && "Should not be called for unions"); in getObjCEncodingForStructureImpl()
DRecordLayoutBuilder.cpp1578 IsUnion = RD->isUnion(); in InitializeLayout()

12