/external/clang/utils/ABITest/ |
D | TypeGen.py | 85 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)
|
D | ABITestGen.py | 228 if t.isUnion: 329 if t.isUnion:
|
/external/clang/include/clang/AST/ |
D | APValue.h | 190 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()
|
D | DeclCXX.h | 1118 return !isUnion() && !hasUserDeclaredConstructor() && in hasUninitializedReferenceMember() 1195 (!isUnion() || hasInClassInitializer() || !hasVariantMembers()); in defaultedDefaultConstructorIsConstexpr()
|
/external/clang/lib/AST/ |
D | ItaniumCXXABI.cpp | 45 assert(RT->getDecl()->isUnion() && "RecordType is expected to be a union."); in findAnonymousUnionVarDeclName()
|
D | DeclCXX.cpp | 670 if (isUnion() && !Field->isAnonymousStructOrUnion()) in addedMember() 762 if (isUnion()) { in addedMember() 859 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember() 896 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
|
D | ExprConstant.cpp | 1376 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 …]
|
D | Type.cpp | 387 return RT->getDecl()->isUnion(); in isUnionType() 447 if (RT->getDecl()->isUnion()) in getAsUnionType() 453 if (!RT->getDecl()->isUnion()) in getAsUnionType()
|
D | CommentSema.cpp | 881 return RD->isUnion(); in isUnionDecl()
|
D | RecordLayoutBuilder.cpp | 1234 IsUnion = RD->isUnion(); in InitializeLayout() 2376 IsUnion = RD->isUnion(); in initializeLayout()
|
D | ASTContext.cpp | 5476 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/ |
D | CGRecordLayoutBuilder.cpp | 257 if (D->isUnion()) in lower() 677 if (isa<CXXRecordDecl>(D) && !D->isUnion() && !D->hasAttr<FinalAttr>()) { in ComputeRecordLayout() 771 if (D->isUnion()) { in ComputeRecordLayout()
|
D | CGExprConstant.cpp | 368 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()
|
D | CGDebugInfo.cpp | 628 else if (RD->isUnion()) in getTagForRecord() 826 else if (RD && (RD->isStruct() || RD->isUnion())) in getAccessFlag() 2875 if (RD->isUnion() && RD->isAnonymousStructOrUnion()) { in EmitDeclare()
|
D | CGExprAgg.cpp | 1169 if (record->isUnion()) { in VisitInitListExpr()
|
D | TargetInfo.cpp | 3540 Members = (RD->isUnion() ? in isHomogeneousAggregate() 4767 if (!RD->isUnion()) in isIntegerLikeType() 4786 if (!RD->isUnion()) { in isIntegerLikeType()
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 3659 << 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 …]
|
D | SemaDeclCXX.cpp | 984 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 …]
|
D | SemaInit.cpp | 534 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()
|
D | Sema.cpp | 855 if (RD && !RD->isUnion() && in ActOnEndOfTranslationUnit()
|
D | SemaDeclObjC.cpp | 2154 if (left->isUnion() != right->isUnion()) return false; in tryMatchRecordTypes()
|
D | SemaChecking.cpp | 7912 if (RD->isUnion()) return false; in IsTailPaddedMemberArray() 9039 if (RD1->isUnion() != RD2->isUnion()) in isLayoutCompatible() 9042 if (RD1->isUnion()) in isLayoutCompatible()
|
D | SemaCast.cpp | 2269 if (DestRecordTy && DestRecordTy->getDecl()->isUnion()) { in CheckCStyleCast()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | MemRegion.cpp | 1308 if (RD->isUnion() || !RD->isCompleteDefinition()) { in getAsOffset()
|
D | RegionStore.cpp | 765 return FR->getDecl()->getParent()->isUnion(); in isUnionField()
|