/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 | 664 if (isUnion() && !Field->isAnonymousStructOrUnion()) in addedMember() 756 if (isUnion()) { in addedMember() 853 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember() 890 (!Field->hasInClassInitializer() && !isUnion())) in addedMember()
|
D | ExprConstant.cpp | 1455 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 …]
|
D | Type.cpp | 393 return RT->getDecl()->isUnion(); in isUnionType() 453 if (RT->getDecl()->isUnion()) in getAsUnionType() 459 if (!RT->getDecl()->isUnion()) in getAsUnionType()
|
D | CommentSema.cpp | 881 return RD->isUnion(); in isUnionDecl()
|
D | RecordLayoutBuilder.cpp | 1231 IsUnion = RD->isUnion(); in InitializeLayout() 2408 IsUnion = RD->isUnion(); in initializeLayout()
|
D | ASTContext.cpp | 5644 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/ |
D | CGRecordLayoutBuilder.cpp | 264 if (D->isUnion()) in lower() 693 if (isa<CXXRecordDecl>(D) && !D->isUnion() && !D->hasAttr<FinalAttr>()) { in ComputeRecordLayout() 787 if (D->isUnion()) { in ComputeRecordLayout()
|
D | CGExprConstant.cpp | 375 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()
|
D | CGExprAgg.cpp | 1179 if (record->isUnion()) { in VisitInitListExpr() 1435 Record->isUnion()) && in EmitAggregateCopy()
|
D | CGClass.cpp | 674 if (D->getParent()->isUnion() && D->isDefaulted()) in isMemcpyEquivalentSpecialMember() 1480 if (FieldClassDecl->isUnion() && FieldClassDecl->isAnonymousStructOrUnion()) in FieldHasTrivialDestructorBody() 1833 if (ClassDecl->isUnion()) in EnterDtorCleanups()
|
D | CGDebugInfo.cpp | 679 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/ |
D | PaddingChecker.cpp | 129 if (RD->isUnion()) in shouldSkipDecl()
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 3842 << 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 …]
|
D | SemaDeclCXX.cpp | 1007 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 …]
|
D | SemaInit.cpp | 492 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()
|
D | SemaExprCXX.cpp | 3573 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()
|
D | Sema.cpp | 894 if (RD && !RD->isUnion() && in ActOnEndOfTranslationUnit()
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | Registry.cpp | 299 REGISTER_MATCHER(isUnion); in RegistryMaps()
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 3305 AST_MATCHER(RecordDecl, isUnion) { in AST_MATCHER() argument 3306 return Node.isUnion(); in AST_MATCHER()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | MemRegion.cpp | 1324 if (RD->isUnion() || !RD->isCompleteDefinition()) { in getAsOffset()
|