/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 | 1041 return !isUnion() && !hasUserDeclaredConstructor() && 1106 (!isUnion() || hasInClassInitializer());
|
D | Decl.h | 2565 bool isUnion() const { return getTagKind() == TTK_Union; } in isUnion() function
|
/external/clang/lib/CodeGen/ |
D | CGRecordLayoutBuilder.cpp | 213 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()
|
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() 1407 if (record->isUnion() && field->getDeclName()) in EmitNullConstant()
|
D | CGDebugInfo.cpp | 573 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()
|
D | CGCall.cpp | 515 if (RD->isUnion()) { in GetExpandedTypes() 566 if (RD->isUnion()) { in ExpandTypeFromArgs() 2052 if (RD->isUnion()) { in ExpandTypeToArgs()
|
D | TargetInfo.cpp | 3123 Members = (RD->isUnion() ? in isHomogeneousAggregate() 3378 if (!RD->isUnion()) in isIntegerLikeType() 3397 if (!RD->isUnion()) { in isIntegerLikeType()
|
D | CGExprAgg.cpp | 1193 if (record->isUnion()) { in VisitInitListExpr()
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 3259 = 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 …]
|
D | SemaDeclCXX.cpp | 869 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 …]
|
D | SemaInit.cpp | 361 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()
|
D | Sema.cpp | 774 if (RD && !RD->isUnion() && in ActOnEndOfTranslationUnit()
|
D | SemaChecking.cpp | 5798 if (RD->isUnion()) return false; in IsTailPaddedMemberArray() 6596 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible() 6599 if (RD1->isUnion()) in isLayoutCompatible()
|
D | SemaDeclObjC.cpp | 2018 if (left->isUnion() != right->isUnion()) return false; in tryMatchRecordTypes()
|
D | SemaCast.cpp | 2016 if (DestRecordTy && DestRecordTy->getDecl()->isUnion()) { in CheckCStyleCast()
|
/external/clang/lib/AST/ |
D | ExprConstant.cpp | 1065 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 …]
|
D | DeclCXX.cpp | 711 if (isUnion()) { in addedMember() 810 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember() 840 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
|
D | Type.cpp | 406 return RT->getDecl()->isUnion(); in isUnionType() 462 if (RT->getDecl()->isUnion()) in getAsUnionType() 468 if (!RT->getDecl()->isUnion()) in getAsUnionType()
|
D | CommentSema.cpp | 849 return RD->isUnion(); in isUnionDecl()
|
D | ASTContext.cpp | 5143 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/ |
D | MemRegion.cpp | 1248 if (RD->isUnion() || !RD->isCompleteDefinition()) { in getAsOffset()
|
D | RegionStore.cpp | 700 return FR->getDecl()->getParent()->isUnion(); in isUnionField()
|