Home
last modified time | relevance | path

Searched refs:isUnion (Results 1 – 25 of 50) 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.h1123 return !isUnion() && !hasUserDeclaredConstructor() && in hasUninitializedReferenceMember()
1201 (!isUnion() || hasInClassInitializer() || !hasVariantMembers()); in defaultedDefaultConstructorIsConstexpr()
/external/v8/tools/clang/blink_gc_plugin/
DCheckGCRootsVisitor.cpp27 if (edge->value()->record()->isUnion()) in VisitValue()
DCheckFieldsVisitor.cpp52 if (edge->value()->record()->isUnion()) in AtValue()
DBlinkGCPluginConsumer.cpp158 if (record->isUnion()) in CheckRecord()
/external/clang/lib/AST/
DItaniumCXXABI.cpp45 assert(RT->getDecl()->isUnion() && "RecordType is expected to be a union."); in findAnonymousUnionVarDeclName()
DDeclCXX.cpp700 if (isUnion() && !Field->isAnonymousStructOrUnion()) in addedMember()
801 if (isUnion()) { in addedMember()
898 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember()
935 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
DExprConstant.cpp1531 if (Value.isUnion() && Value.getUnionField()) { in CheckConstantExpression()
2283 if (!RD || (RD->isUnion() && !RD->field_empty())) in isReadByLvalueToRvalueConversion()
2316 (RD->isUnion() || isReadByLvalueToRvalueConversion(Field->getType()))) { in diagnoseUnreadableFields()
2485 if (RD->isUnion()) { in findSubobject()
3964 (MD->getParent()->isUnion() || in HandleFunctionCall()
4033 (Definition->getParent()->isUnion() || in HandleConstructorCall()
4043 if (!RD->isUnion() && Result.isUninit()) in HandleConstructorCall()
4081 if (RD->isUnion()) { in HandleConstructorCall()
4099 (Value->isUnion() && Value->getUnionField() != FD)) { in HandleConstructorCall()
4100 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.cpp879 return RD->isUnion(); in isUnionDecl()
/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.cpp382 if (RD->isUnion() && ILE->getInitializedFieldInUnion() != *Field) in Build()
477 if (RD->isUnion() && Val.getUnionField() != *Field) in Build()
486 RD->isUnion() ? Val.getUnionValue() : Val.getStructField(FieldNo); in Build()
1150 if (RD->isUnion() && Updater->getInitializedFieldInUnion() != Field) in Build()
1550 if (record->isUnion()) { in EmitNullConstant()
DCGExprAgg.cpp1218 if (record->isUnion()) { in VisitInitListExpr()
1472 Record->isUnion()) && in EmitAggregateCopy()
DSwiftCallingConv.cpp109 if (record->isUnion()) { in addTypedData()
DCGClass.cpp675 if (D->getParent()->isUnion() && D->isDefaulted()) in isMemcpyEquivalentSpecialMember()
1476 if (FieldClassDecl->isUnion() && FieldClassDecl->isAnonymousStructOrUnion()) in FieldHasTrivialDestructorBody()
1831 if (ClassDecl->isUnion()) in EnterDtorCleanups()
/external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
DDecoder.java157 private DataHeader readDataHeaderAtOffset(int offset, boolean isUnion) { in readDataHeaderAtOffset() argument
164 if (elementsOrVersion < 0 && (!isUnion || elementsOrVersion != -1)) { in readDataHeaderAtOffset()
/external/clang/lib/StaticAnalyzer/Checkers/
DPaddingChecker.cpp129 if (RD->isUnion()) in shouldSkipDecl()
/external/clang/lib/Sema/
DSemaDecl.cpp3972 << Record->isUnion() << DS.getSourceRange(); in ParsedFreeStandingDeclSpec()
4141 AnonRecord->isUnion())) { in InjectAnonymousStructOrUnionMembers()
4228 if (!Parent->isUnion() || !Parent->hasInClassInitializer()) in checkDuplicateDefaultInit()
4237 if (!Parent->isUnion() || !Parent->hasInClassInitializer()) in checkDuplicateDefaultInit()
4254 if (Record->isUnion() && !getLangOpts().CPlusPlus && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
4256 else if (!Record->isUnion() && getLangOpts().CPlusPlus) in BuildAnonymousStructOrUnion()
4258 else if (!Record->isUnion() && !getLangOpts().C11) in BuildAnonymousStructOrUnion()
4267 if (Record->isUnion()) { in BuildAnonymousStructOrUnion()
4302 << Record->isUnion() << "const" in BuildAnonymousStructOrUnion()
4307 << 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()
3616 if (!Field->getParent()->isUnion()) { in BuildImplicitMemberInitializer()
3706 if (!Record->isUnion()) in isInactiveUnionMember()
3891 if (FD && FD->getParent()->isUnion()) in SetCtorInitializers()
3896 if (FD->getParent()->isUnion()) in SetCtorInitializers()
4178 while (Parent->isAnonymousStructOrUnion() || Parent->isUnion()) { in CheckRedundantUnionInit()
4179 if (Parent->isUnion()) { in CheckRedundantUnionInit()
4278 if (ClassDecl->isDependentContext() || ClassDecl->isUnion()) in MarkBaseAndMemberDestructorsReferenced()
[all …]
DSemaInit.cpp536 if (!RType->getDecl()->isUnion()) in FillInEmptyInitForField()
624 if (RDecl->isUnion() && ILE->getInitializedFieldInUnion()) in FillInEmptyInitializations()
627 else if (RDecl->isUnion() && isa<CXXRecordDecl>(RDecl) && in FillInEmptyInitializations()
674 if (RDecl->isUnion()) in FillInEmptyInitializations()
811 if (structDecl->isUnion()) in numStructUnionElements()
2242 if (RT->getDecl()->isUnion()) { in CheckDesignatedInitializer()
2384 if (RT->getDecl()->isUnion()) in CheckDesignatedInitializer()
2675 if (RDecl->isUnion()) in getStructuredSubobjectInit()
6012 if (RD->isUnion() && ILE->getInitializedFieldInUnion() && in performLifetimeExtension()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp327 REGISTER_MATCHER(isUnion); in RegistryMaps()
/external/v8/tools/clang/plugins/
DFindBadConstructsConsumer.cpp299 if (record->isUnion()) in CheckCtorDtorWeight()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h3741 AST_MATCHER(RecordDecl, isUnion) { in AST_MATCHER() argument
3742 return Node.isUnion(); in AST_MATCHER()

12