Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/AST/
H A DRecordLayoutBuilder.cpp614 unsigned IsUnion : 1; member in __anon0138ef250111::ItaniumRecordLayoutBuilder
1317 IsUnion = RD->isUnion(); in InitializeLayout()
1503 if (IsUnion) { in LayoutWideBitField()
1705 if (IsMsStruct && IsUnion) { in LayoutBitField()
1801 if (IsUnion) { in LayoutBitField()
2096 if (IsUnion) in LayoutField()
2617 bool IsUnion : 1; member
2737 IsUnion = RD->isUnion(); in initializeLayout()
2948 else if (IsUnion) in layoutField()
2986 } else if (IsUnion) { in layoutBitField()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProTypeMemberInitCheck.cpp414 bool IsUnion = ClassDecl.isUnion(); in checkMissingMemberInitializer() local
416 if (IsUnion && ClassDecl.hasInClassInitializer()) in checkMissingMemberInitializer()
438 if (IsUnion) in checkMissingMemberInitializer()
468 << IsUnion << toCommaSeparatedString(OrderedFields, FieldsToInit); in checkMissingMemberInitializer()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBTFDebug.h82 BTFTypeFwd(StringRef Name, bool IsUnion);
329 void visitFwdDeclType(const DICompositeType *CTy, bool IsUnion,
H A DBTFDebug.cpp108 BTFTypeFwd::BTFTypeFwd(StringRef Name, bool IsUnion) : Name(Name) { in BTFTypeFwd() argument
110 BTFType.Info = IsUnion << 31 | Kind << 24; in BTFTypeFwd()
743 void BTFDebug::visitFwdDeclType(const DICompositeType *CTy, bool IsUnion, in visitFwdDeclType() argument
745 auto TypeEntry = std::make_unique<BTFTypeFwd>(CTy->getName(), IsUnion); in visitFwdDeclType()
1574 bool IsUnion = CTy->getTag() == dwarf::DW_TAG_union_type; in endModule() local
1586 auto FwdTypeEntry = std::make_unique<BTFTypeFwd>(TypeName, IsUnion); in endModule()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DDescriptor.cpp119 const bool IsUnion = D->ElemRecord->isUnion(); in ctorRecord() local
126 Desc->IsActive = IsActive && !IsUnion; in ctorRecord()
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DMasmParser.cpp130 bool IsUnion = false; member
145 : Name(StructName), IsUnion(Union), Alignment(AlignmentValue) {} in StructInfo()
351 if (!IsUnion) { in addField()
3765 if (!Struct.IsUnion) { in addIntegralField()
3972 if (!Struct.IsUnion) { in addRealField()
4468 if (!OwningStruct.IsUnion) { in addStructField()
4634 if (!Structure.Fields.empty() && !ParentStruct.IsUnion) { in parseDirectiveNestedEnds()
4640 if (ParentStruct.IsUnion) { in parseDirectiveNestedEnds()
4647 if (!ParentStruct.IsUnion) { in parseDirectiveNestedEnds()
4661 if (!ParentStruct.IsUnion) { in parseDirectiveNestedEnds()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDecl.cpp5246 bool IsUnion) { in CheckAnonMemberRedeclaration() argument
5259 << IsUnion << Name; in CheckAnonMemberRedeclaration()
12452 bool IsUnion = false; in visitStruct() local
12454 IsUnion = OrigRD->isUnion(); in visitStruct()
12456 << 0 << OrigTy << IsUnion << UseContext; in visitStruct()
12517 bool IsUnion = false; in visitStruct() local
12519 IsUnion = OrigRD->isUnion(); in visitStruct()
12521 << 1 << OrigTy << IsUnion << UseContext; in visitStruct()
12583 bool IsUnion = false; in visitStruct() local
12585 IsUnion = OrigRD->isUnion(); in visitStruct()
[all …]
H A DSemaCodeComplete.cpp373 bool IsUnion(const NamedDecl *ND) const;
1498 bool ResultBuilder::IsUnion(const NamedDecl *ND) const { in IsUnion() function in ResultBuilder
5758 Filter = &ResultBuilder::IsUnion; in CodeCompleteTag()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTokenKinds.def508 TYPE_TRAIT_1(__is_union, IsUnion, KEYCXX)
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp3900 TEST_P(ASTMatchersTest, IsUnion) { in TEST_P() argument
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGObjCMac.cpp2460 bool IsUnion = (RD && RD->isUnion()); in BuildRCRecordLayout() local
2527 if (IsUnion) { in BuildRCRecordLayout()
H A DTargetInfo.cpp3144 bool IsUnion = RT->isUnionType() && !UseClang11Compat; in classify() local
3165 ((!IsUnion && Size != getContext().getTypeSize(i->getType())) || in classify()