Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/AST/
DRecordLayoutBuilder.cpp614 unsigned IsUnion : 1; member in __anonb7f8836c0111::ItaniumRecordLayoutBuilder
695 InferAlignment(false), Packed(false), IsUnion(false), in ItaniumRecordLayoutBuilder()
1065 assert(!IsUnion && "Unions cannot be dynamic classes."); in LayoutNonVirtualBases()
1203 assert(!IsUnion && "Unions cannot have base classes."); in LayoutBase()
1311 IsUnion = RD->isUnion(); in InitializeLayout()
1490 if (IsUnion) { in LayoutWideBitField()
1612 IsUnion ? 0 : (getDataSizeInBits() - UnfilledBitsInLastUnit); in LayoutBitField()
1658 if (IsMsStruct && IsUnion) { in LayoutBitField()
1741 if (IsUnion) { in LayoutBitField()
1801 (IsUnion || IsOverlappingEmptyField) ? CharUnits::Zero() : getDataSize(); in LayoutField()
[all …]
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp598 unsigned IsUnion : 1; member in __anon149eb1fe0111::ItaniumRecordLayoutBuilder
663 IsUnion(false), IsMac68kAlign(false), IsMsStruct(false), in ItaniumRecordLayoutBuilder()
1231 IsUnion = RD->isUnion(); in InitializeLayout()
1405 if (IsUnion) { in LayoutWideBitField()
1526 IsUnion ? 0 : (getDataSizeInBits() - UnfilledBitsInLastUnit); in LayoutBitField()
1572 if (IsMsStruct && IsUnion) { in LayoutBitField()
1654 if (IsUnion) { in LayoutBitField()
1719 IsUnion ? CharUnits::Zero() : getDataSize(); in LayoutField()
1784 if (!IsUnion && EmptySubobjects) { in LayoutField()
1791 if (!IsUnion && EmptySubobjects) { in LayoutField()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProTypeMemberInitCheck.cpp393 bool IsUnion = ClassDecl.isUnion(); in checkMissingMemberInitializer() local
395 if (IsUnion && ClassDecl.hasInClassInitializer()) in checkMissingMemberInitializer()
415 if (IsUnion) in checkMissingMemberInitializer()
438 IsUnion in checkMissingMemberInitializer()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBTFDebug.cpp97 BTFTypeFwd::BTFTypeFwd(StringRef Name, bool IsUnion) : Name(Name) { in BTFTypeFwd() argument
99 BTFType.Info = IsUnion << 31 | Kind << 24; in BTFTypeFwd()
526 void BTFDebug::visitFwdDeclType(const DICompositeType *CTy, bool IsUnion, in visitFwdDeclType() argument
528 auto TypeEntry = std::make_unique<BTFTypeFwd>(CTy->getName(), IsUnion); in visitFwdDeclType()
1212 bool IsUnion = Fixup.second.first; in endModule() local
1224 auto FwdTypeEntry = std::make_unique<BTFTypeFwd>(TypeName, IsUnion); in endModule()
DBTFDebug.h74 BTFTypeFwd(StringRef Name, bool IsUnion);
275 void visitFwdDeclType(const DICompositeType *CTy, bool IsUnion,
/external/llvm-project/llvm/lib/Target/BPF/
DBTFDebug.h80 BTFTypeFwd(StringRef Name, bool IsUnion);
281 void visitFwdDeclType(const DICompositeType *CTy, bool IsUnion,
DBTFDebug.cpp98 BTFTypeFwd::BTFTypeFwd(StringRef Name, bool IsUnion) : Name(Name) { in BTFTypeFwd() argument
100 BTFType.Info = IsUnion << 31 | Kind << 24; in BTFTypeFwd()
532 void BTFDebug::visitFwdDeclType(const DICompositeType *CTy, bool IsUnion, in visitFwdDeclType() argument
534 auto TypeEntry = std::make_unique<BTFTypeFwd>(CTy->getName(), IsUnion); in visitFwdDeclType()
1300 bool IsUnion = Fixup.second.first; in endModule() local
1312 auto FwdTypeEntry = std::make_unique<BTFTypeFwd>(TypeName, IsUnion); in endModule()
/external/llvm-project/clang/lib/AST/Interp/
DDescriptor.cpp119 const bool IsUnion = D->ElemRecord->isUnion(); in ctorRecord() local
126 Desc->IsActive = IsActive && !IsUnion; in ctorRecord()
/external/flatbuffers/src/
Didl_gen_csharp.cpp889 if (IsScalar(underlying_type.base_type) && !IsUnion(field.value.type)) { in GenStruct()
1887 if (IsUnion(field.value.type)) { in GenStruct_ObjectAPI()
1928 if (IsUnion(field.value.type)) { in GenStruct_ObjectAPI()
Didl_gen_swift.cpp481 if (parser_.opts.mutable_buffer && !IsUnion(field.value.type)) in GenTableReaderFields()
Didl_gen_java.cpp912 if (IsScalar(underlying_type.base_type) && !IsUnion(field.value.type)) { in GenStruct()
Didl_gen_js_ts.cpp1023 !IsUnion(field.value.type)) { in GenStruct()
Didl_gen_cpp.cpp2013 if (opts_.mutable_buffer && !(is_scalar && IsUnion(field.value.type))) { in GenTable()
/external/llvm-project/llvm/lib/MC/MCParser/
DMasmParser.cpp130 bool IsUnion = false; member
143 : Name(StructName), IsUnion(Union), Alignment(AlignmentValue) {} in StructInfo()
347 if (IsUnion) { in addField()
3527 if (Struct.IsUnion) in addIntegralField()
3733 if (Struct.IsUnion) in addRealField()
4232 if (OwningStruct.IsUnion) in addStructField()
4394 if (!ParentStruct.IsUnion) { in parseDirectiveNestedEnds()
4401 if (ParentStruct.IsUnion) in parseDirectiveNestedEnds()
4413 if (ParentStruct.IsUnion) in parseDirectiveNestedEnds()
/external/flatbuffers/include/flatbuffers/
Didl.h440 inline bool IsUnion(const Type &type) { in IsUnion() function
/external/clang/include/clang/Basic/
DTokenKinds.def440 TYPE_TRAIT_1(__is_union, IsUnion, KEYCXX)
/external/llvm-project/clang/lib/Sema/
DSemaDecl.cpp4816 bool IsUnion) { in CheckAnonMemberRedeclaration() argument
4829 << IsUnion << Name; in CheckAnonMemberRedeclaration()
11787 bool IsUnion = false; in visitStruct() local
11789 IsUnion = OrigRD->isUnion(); in visitStruct()
11791 << 0 << OrigTy << IsUnion << UseContext; in visitStruct()
11852 bool IsUnion = false; in visitStruct() local
11854 IsUnion = OrigRD->isUnion(); in visitStruct()
11856 << 1 << OrigTy << IsUnion << UseContext; in visitStruct()
11918 bool IsUnion = false; in visitStruct() local
11920 IsUnion = OrigRD->isUnion(); in visitStruct()
[all …]
DSemaCodeComplete.cpp369 bool IsUnion(const NamedDecl *ND) const;
1464 bool ResultBuilder::IsUnion(const NamedDecl *ND) const { in IsUnion() function in ResultBuilder
5331 Filter = &ResultBuilder::IsUnion; in CodeCompleteTag()
/external/llvm-project/clang/include/clang/Basic/
DTokenKinds.def503 TYPE_TRAIT_1(__is_union, IsUnion, KEYCXX)
/external/clang/lib/Sema/
DSemaCodeComplete.cpp332 bool IsUnion(const NamedDecl *ND) const;
1143 bool ResultBuilder::IsUnion(const NamedDecl *ND) const { in IsUnion() function in ResultBuilder
3782 Filter = &ResultBuilder::IsUnion; in CodeCompleteTag()
DSemaDecl.cpp4093 bool IsUnion) { in CheckAnonMemberRedeclaration() argument
4106 << IsUnion << Name; in CheckAnonMemberRedeclaration()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNarrowingTest.cpp3398 TEST_P(ASTMatchersTest, IsUnion) { in TEST_P() argument
/external/clang/lib/CodeGen/
DCGObjCMac.cpp2200 bool IsUnion = (RD && RD->isUnion()); in BuildRCRecordLayout() local
2270 if (IsUnion) { in BuildRCRecordLayout()
/external/llvm-project/clang/lib/CodeGen/
DCGObjCMac.cpp2502 bool IsUnion = (RD && RD->isUnion()); in BuildRCRecordLayout() local
2569 if (IsUnion) { in BuildRCRecordLayout()
DTargetInfo.cpp3067 bool IsUnion = RT->isUnionType() && !UseClang11Compat; in classify() local
3088 ((!IsUnion && Size != getContext().getTypeSize(i->getType())) || in classify()