Home
last modified time | relevance | path

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

12

/external/clang/utils/ABITest/
DTypeGen.py85 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)
DABITestGen.py228 if t.isUnion:
329 if t.isUnion:
/external/clang/include/clang/AST/
DAPValue.h190 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()
DDeclCXX.h1118 return !isUnion() && !hasUserDeclaredConstructor() && in hasUninitializedReferenceMember()
1195 (!isUnion() || hasInClassInitializer() || !hasVariantMembers()); in defaultedDefaultConstructorIsConstexpr()
/external/clang/lib/AST/
DItaniumCXXABI.cpp45 assert(RT->getDecl()->isUnion() && "RecordType is expected to be a union."); in findAnonymousUnionVarDeclName()
DDeclCXX.cpp664 if (isUnion() && !Field->isAnonymousStructOrUnion()) in addedMember()
756 if (isUnion()) { in addedMember()
853 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember()
890 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
DExprConstant.cpp1455 if (Value.isUnion() && Value.getUnionField()) { in CheckConstantExpression()
2187 if (!RD || (RD->isUnion() && !RD->field_empty())) in isReadByLvalueToRvalueConversion()
2220 (RD->isUnion() || isReadByLvalueToRvalueConversion(Field->getType()))) { in diagnoseUnreadableFields()
2389 if (RD->isUnion()) { in findSubobject()
3829 (MD->getParent()->isUnion() || in HandleFunctionCall()
3901 (Definition->getParent()->isUnion() || in HandleConstructorCall()
3910 if (!RD->isUnion() && Result.isUninit()) in HandleConstructorCall()
3948 if (RD->isUnion()) { in HandleConstructorCall()
3966 (Value->isUnion() && Value->getUnionField() != FD)) { in HandleConstructorCall()
3967 if (CD->isUnion()) in HandleConstructorCall()
[all …]
DType.cpp393 return RT->getDecl()->isUnion(); in isUnionType()
453 if (RT->getDecl()->isUnion()) in getAsUnionType()
459 if (!RT->getDecl()->isUnion()) in getAsUnionType()
DCommentSema.cpp881 return RD->isUnion(); in isUnionDecl()
DRecordLayoutBuilder.cpp1231 IsUnion = RD->isUnion(); in InitializeLayout()
2408 IsUnion = RD->isUnion(); in initializeLayout()
DASTContext.cpp5644 S += RDecl->isUnion() ? '(' : '{'; in getObjCEncodingForTypeImpl()
5662 if (!RDecl->isUnion()) { in getObjCEncodingForTypeImpl()
5688 S += RDecl->isUnion() ? ')' : '}'; in getObjCEncodingForTypeImpl()
5873 assert(!RDecl->isUnion() && "Should not be called for unions"); in getObjCEncodingForStructureImpl()
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp264 if (D->isUnion()) in lower()
693 if (isa<CXXRecordDecl>(D) && !D->isUnion() && !D->hasAttr<FinalAttr>()) { in ComputeRecordLayout()
787 if (D->isUnion()) { in ComputeRecordLayout()
DCGExprConstant.cpp375 if (RD->isUnion() && ILE->getInitializedFieldInUnion() != *Field) in Build()
470 if (RD->isUnion() && Val.getUnionField() != *Field) in Build()
479 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build()
1130 if (RD->isUnion() && Updater->getInitializedFieldInUnion() != Field) in Build()
1524 if (record->isUnion()) { in EmitNullConstant()
DCGExprAgg.cpp1179 if (record->isUnion()) { in VisitInitListExpr()
1435 Record->isUnion()) && in EmitAggregateCopy()
DCGClass.cpp674 if (D->getParent()->isUnion() && D->isDefaulted()) in isMemcpyEquivalentSpecialMember()
1480 if (FieldClassDecl->isUnion() && FieldClassDecl->isAnonymousStructOrUnion()) in FieldHasTrivialDestructorBody()
1833 if (ClassDecl->isUnion()) in EnterDtorCleanups()
DCGDebugInfo.cpp679 else if (RD->isUnion()) in getTagForRecord()
874 else if (RD && (RD->isStruct() || RD->isUnion())) in getAccessFlag()
3004 if (RD->isUnion() && RD->isAnonymousStructOrUnion()) { in EmitDeclare()
/external/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp129 if (RD->isUnion()) in shouldSkipDecl()
/external/clang/lib/Sema/
DSemaDecl.cpp3842 << Record->isUnion() << DS.getSourceRange(); in ParsedFreeStandingDeclSpec()
4014 AnonRecord->isUnion())) { in InjectAnonymousStructOrUnionMembers()
4101 if (!Parent->isUnion() || !Parent->hasInClassInitializer()) in checkDuplicateDefaultInit()
4110 if (!Parent->isUnion() || !Parent->hasInClassInitializer()) in checkDuplicateDefaultInit()
4127 if (Record->isUnion() && !getLangOpts().CPlusPlus && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
4129 else if (!Record->isUnion() && getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
4131 else if (!Record->isUnion() && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
4140 if (Record->isUnion()) { in BuildAnonymousStructOrUnion()
4175 << Record->isUnion() << "const" in BuildAnonymousStructOrUnion()
4180 << Record->isUnion() << "volatile" in BuildAnonymousStructOrUnion()
[all …]
DSemaDeclCXX.cpp1007 if (!RD->isUnion() || Inits.count(I)) in CheckConstexprCtorInitializer()
1176 if (RD->isUnion()) { in CheckConstexprFunctionBody()
1360 if (Class->isUnion()) { in CheckBaseSpecifier()
3640 if (!Field->getParent()->isUnion()) { in BuildImplicitMemberInitializer()
3730 if (!Record->isUnion()) in isInactiveUnionMember()
3915 if (FD && FD->getParent()->isUnion()) in SetCtorInitializers()
3920 if (FD->getParent()->isUnion()) in SetCtorInitializers()
4202 while (Parent->isAnonymousStructOrUnion() || Parent->isUnion()) { in CheckRedundantUnionInit()
4203 if (Parent->isUnion()) { in CheckRedundantUnionInit()
4302 if (ClassDecl->isDependentContext() || ClassDecl->isUnion()) in MarkBaseAndMemberDestructorsReferenced()
[all …]
DSemaInit.cpp492 if (!RType->getDecl()->isUnion()) in FillInEmptyInitForField()
579 if (RDecl->isUnion() && ILE->getInitializedFieldInUnion()) in FillInEmptyInitializations()
582 else if (RDecl->isUnion() && isa<CXXRecordDecl>(RDecl) && in FillInEmptyInitializations()
618 if (RDecl->isUnion()) in FillInEmptyInitializations()
751 if (structDecl->isUnion()) in numStructUnionElements()
2159 if (RT->getDecl()->isUnion()) { in CheckDesignatedInitializer()
2301 if (RT->getDecl()->isUnion()) in CheckDesignatedInitializer()
2589 if (RDecl->isUnion()) in getStructuredSubobjectInit()
5880 if (RD->isUnion() && ILE->getInitializedFieldInUnion() && in performLifetimeExtension()
DSemaExprCXX.cpp3573 if (!RD->isUnion()) in CheckUnaryTypeTraitTypeCompleteness()
3753 return !RD->isUnion() && RD->isEmpty(); in EvaluateUnaryTypeTrait()
3757 return !RD->isUnion() && RD->isPolymorphic(); in EvaluateUnaryTypeTrait()
3761 return !RD->isUnion() && RD->isAbstract(); in EvaluateUnaryTypeTrait()
4242 return !lhsRecord->getDecl()->isUnion(); in EvaluateBinaryTypeTrait()
DSema.cpp894 if (RD && !RD->isUnion() && in ActOnEndOfTranslationUnit()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp299 REGISTER_MATCHER(isUnion); in RegistryMaps()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h3305 AST_MATCHER(RecordDecl, isUnion) { in AST_MATCHER() argument
3306 return Node.isUnion(); in AST_MATCHER()
/external/clang/lib/StaticAnalyzer/Core/
DMemRegion.cpp1324 if (RD->isUnion() || !RD->isCompleteDefinition()) { in getAsOffset()

12