/external/clang/utils/ABITest/ |
D | TypeGen.py | 81 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)
|
D | ABITestGen.py | 228 if t.isUnion: 329 if t.isUnion:
|
/external/clang/include/clang/AST/ |
D | APValue.h | 184 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()
|
D | DeclCXX.h | 1098 (!isUnion() || hasInClassInitializer());
|
D | Decl.h | 2630 bool isUnion() const { return getTagKind() == TTK_Union; } in isUnion() function
|
/external/clang/lib/CodeGen/ |
D | CGRecordLayoutBuilder.cpp | 211 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()
|
D | CGExprConstant.cpp | 397 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()
|
D | CGDebugInfo.cpp | 528 else if (RD->isUnion()) in createRecordFwdDecl() 1276 if (RD->isUnion()) in CreateType() 1875 if (RD->isUnion()) in CreateLimitedType() 2364 if (RD->isUnion()) { in EmitDeclare()
|
D | CGCall.cpp | 477 if (RD->isUnion()) { in GetExpandedTypes() 528 if (RD->isUnion()) { in ExpandTypeFromArgs() 1870 if (RD->isUnion()) { in ExpandTypeToArgs()
|
D | TargetInfo.cpp | 2774 Members = (RD->isUnion() ? in isHomogeneousAggregate() 2924 if (!RD->isUnion()) in isIntegerLikeType() 2943 if (!RD->isUnion()) { in isIntegerLikeType()
|
D | CGExprAgg.cpp | 1034 if (record->isUnion()) { in VisitInitListExpr()
|
D | CGClass.cpp | 1026 if (ClassDecl->isUnion()) in EnterDtorCleanups()
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 2847 = 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 …]
|
D | SemaDeclCXX.cpp | 850 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 …]
|
D | SemaInit.cpp | 361 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()
|
D | Sema.cpp | 731 if (RD && !RD->isUnion() && in ActOnEndOfTranslationUnit()
|
D | SemaChecking.cpp | 5084 if (RD->isUnion()) return false; in IsTailPaddedMemberArray() 5803 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible() 5806 if (RD1->isUnion()) in isLayoutCompatible()
|
D | SemaDeclObjC.cpp | 1975 if (left->isUnion() != right->isUnion()) return false; in tryMatchRecordTypes()
|
D | SemaCast.cpp | 1992 if (DestRecordTy && DestRecordTy->getDecl()->isUnion()) { in CheckCStyleCast()
|
D | SemaDeclAttr.cpp | 3042 if (!RD || !RD->isUnion()) { in handleTransparentUnionAttr() 4050 if (!RD || RD->isUnion()) { in handleNSBridgedAttr()
|
/external/clang/lib/AST/ |
D | ExprConstant.cpp | 1056 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 …]
|
D | Type.cpp | 379 return RT->getDecl()->isUnion(); in isUnionType() 435 if (RT->getDecl()->isUnion()) in getAsUnionType() 441 if (!RT->getDecl()->isUnion()) in getAsUnionType()
|
D | DeclCXX.cpp | 899 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember() 907 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
|
D | ASTContext.cpp | 4899 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()
|
D | RecordLayoutBuilder.cpp | 1578 IsUnion = RD->isUnion(); in InitializeLayout()
|