Home
last modified time | relevance | path

Searched refs:isUnion (Results 1 – 25 of 34) 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.h1041 return !isUnion() && !hasUserDeclaredConstructor() &&
1106 (!isUnion() || hasInClassInitializer());
DDecl.h2565 bool isUnion() const { return getTagKind() == TTK_Union; } in isUnion() function
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp213 if (D->isUnion()) { in Layout()
478 assert(D->isUnion() && "Can't call LayoutUnion on a non-union record!"); in LayoutUnion()
756 assert(!D->isUnion() && "Can't call LayoutFields on a union!"); in LayoutFields()
975 if (isa<CXXRecordDecl>(D) && !D->isUnion()) { in ComputeRecordLayout()
1072 if (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()
1407 if (record->isUnion() && field->getDeclName()) in EmitNullConstant()
DCGDebugInfo.cpp573 else if (RD->isUnion()) in createRecordFwdDecl()
1380 if (RD->isUnion()) in CreateType()
2046 if (RD->isUnion()) in CreateLimitedType()
2551 if (RD->isUnion() && RD->isAnonymousStructOrUnion()) { in EmitDeclare()
DCGCall.cpp515 if (RD->isUnion()) { in GetExpandedTypes()
566 if (RD->isUnion()) { in ExpandTypeFromArgs()
2052 if (RD->isUnion()) { in ExpandTypeToArgs()
DTargetInfo.cpp3123 Members = (RD->isUnion() ? in isHomogeneousAggregate()
3378 if (!RD->isUnion()) in isIntegerLikeType()
3397 if (!RD->isUnion()) { in isIntegerLikeType()
DCGExprAgg.cpp1193 if (record->isUnion()) { in VisitInitListExpr()
/external/clang/lib/Sema/
DSemaDecl.cpp3259 = AnonRecord->isUnion() ? diag::err_anonymous_union_member_redecl in InjectAnonymousStructOrUnionMembers()
3366 if (Record->isUnion() && !getLangOpts().CPlusPlus && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
3368 else if (!Record->isUnion() && getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
3370 else if (!Record->isUnion() && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
3379 if (Record->isUnion()) { in BuildAnonymousStructOrUnion()
3414 << Record->isUnion() << 0 in BuildAnonymousStructOrUnion()
3419 << Record->isUnion() << 1 in BuildAnonymousStructOrUnion()
3424 << Record->isUnion() << 2 in BuildAnonymousStructOrUnion()
3444 << (int)Record->isUnion() << (int)(FD->getAccess() == AS_protected); in BuildAnonymousStructOrUnion()
3468 << (int)Record->isUnion(); in BuildAnonymousStructOrUnion()
[all …]
DSemaDeclCXX.cpp869 if (!RD->isUnion() || Inits.count(*I)) in CheckConstexprCtorInitializer()
941 if (RD->isUnion()) { in CheckConstexprFunctionBody()
1090 if (Class->isUnion()) { in CheckBaseSpecifier()
2966 if (!Field->getParent()->isUnion()) { in BuildImplicitMemberInitializer()
3062 if (Record->isUnion()) in isWithinAnonymousUnion()
3112 if (Field->getParent()->isUnion() || in CollectFieldInitializer()
3468 while (Parent->isAnonymousStructOrUnion() || Parent->isUnion()) { in CheckRedundantUnionInit()
3469 if (Parent->isUnion()) { in CheckRedundantUnionInit()
3566 if (ClassDecl->isDependentContext() || ClassDecl->isUnion()) in MarkBaseAndMemberDestructorsReferenced()
3597 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()
1768 if (RT->getDecl()->isUnion()) { in CheckDesignatedInitializer()
1889 if (RT->getDecl()->isUnion()) in CheckDesignatedInitializer()
2111 if (RDecl->isUnion()) in getStructuredSubobjectInit()
DSema.cpp774 if (RD && !RD->isUnion() && in ActOnEndOfTranslationUnit()
DSemaChecking.cpp5798 if (RD->isUnion()) return false; in IsTailPaddedMemberArray()
6596 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible()
6599 if (RD1->isUnion()) in isLayoutCompatible()
DSemaDeclObjC.cpp2018 if (left->isUnion() != right->isUnion()) return false; in tryMatchRecordTypes()
DSemaCast.cpp2016 if (DestRecordTy && DestRecordTy->getDecl()->isUnion()) { in CheckCStyleCast()
/external/clang/lib/AST/
DExprConstant.cpp1065 if (Value.isUnion() && Value.getUnionField()) { in CheckConstantExpression()
1607 if (RD->isUnion()) { in ExtractSubobject()
2210 if (!RD->isUnion() && Result.isUninit()) in HandleConstructorCall()
2245 if (RD->isUnion()) { in HandleConstructorCall()
2265 (Value->isUnion() && Value->getUnionField() != FD)) { in HandleConstructorCall()
2266 if (CD->isUnion()) in HandleConstructorCall()
2274 if (CD->isUnion()) in HandleConstructorCall()
3296 assert(!RD->isUnion() && "Expected non-union class type"); in HandleClassZeroInitialization()
3340 if (RD->isUnion()) { in ZeroInitialization()
3406 if (RD->isUnion()) { in VisitInitListExpr()
[all …]
DDeclCXX.cpp711 if (isUnion()) { in addedMember()
810 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember()
840 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
DType.cpp406 return RT->getDecl()->isUnion(); in isUnionType()
462 if (RT->getDecl()->isUnion()) in getAsUnionType()
468 if (!RT->getDecl()->isUnion()) in getAsUnionType()
DCommentSema.cpp849 return RD->isUnion(); in isUnionDecl()
DASTContext.cpp5143 S += RDecl->isUnion() ? '(' : '{'; in getObjCEncodingForTypeImpl()
5161 if (!RDecl->isUnion()) { in getObjCEncodingForTypeImpl()
5188 S += RDecl->isUnion() ? ')' : '}'; in getObjCEncodingForTypeImpl()
5356 assert(!RDecl->isUnion() && "Should not be called for unions"); in getObjCEncodingForStructureImpl()
/external/clang/lib/StaticAnalyzer/Core/
DMemRegion.cpp1248 if (RD->isUnion() || !RD->isCompleteDefinition()) { in getAsOffset()
DRegionStore.cpp700 return FR->getDecl()->getParent()->isUnion(); in isUnionField()

12