| /llvm-project-15.0.7/clang/utils/ABITest/ |
| H A D | TypeGen.py | 86 def __init__(self, index, isUnion, fields): argument 88 self.isUnion = isUnion 99 return '%s { %s }'%(('struct','union')[self.isUnion], 115 return 'typedef %s %s { %s } %s;'%(('struct','union')[self.isUnion], 372 isUnion,I = False,N 374 isUnion,I = (I&1),I>>1 376 return RecordType(N, isUnion, fields)
|
| H A D | ABITestGen.py | 229 if t.isUnion: 330 if t.isUnion:
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantMemberInitCheck.cpp | 31 unless(isDelegatingConstructor()), ofClass(unless(isUnion())), in registerMatchers() 41 unless(forField(hasParent(recordDecl(isUnion()))))) in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Record.h | 51 bool isUnion() const { return getDecl()->isUnion(); } in isUnion() function
|
| H A D | Pointer.h | 223 bool isUnion() const;
|
| H A D | EvalEmitter.cpp | 119 if (RT->getDecl()->isUnion()) { in emitRetValue()
|
| H A D | Descriptor.cpp | 119 const bool IsUnion = D->ElemRecord->isUnion(); in ctorRecord()
|
| H A D | Interp.cpp | 128 assert(R && R->isUnion() && "Not a union"); in CheckActive()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProTypeUnionAccessCheck.cpp | 21 memberExpr(hasObjectExpression(hasType(recordDecl(isUnion())))) in registerMatchers()
|
| H A D | ProTypeMemberInitCheck.cpp | 59 if (Record.isUnion() && AnyMemberHasInitPerUnion) in forEachFieldWithFilter() 414 bool IsUnion = ClassDecl.isUnion(); in checkMissingMemberInitializer()
|
| H A D | PreferMemberInitializerCheck.cpp | 186 !cast<RecordDecl>(Class->getDeclContext())->isUnion()) && in check()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | APValue.h | 402 bool isUnion() const { return Kind == Union; } 556 assert(isUnion() && "Invalid accessor"); 560 assert(isUnion() && "Invalid accessor");
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | MemberwiseConstructor.cpp | 51 if (!Class || !Class->isThisDeclarationADefinition() || Class->isUnion() || in prepare()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclCXX.cpp | 668 if (!X->isUnion()) in hasSubobjectAtOffsetZeroOfEmptyBaseType() 991 if (isUnion() && !Field->isAnonymousStructOrUnion()) in addedMember() 1027 if (isUnion()) { in addedMember() 1133 if (isUnion()) { in addedMember() 1234 (isUnion() || IsFirstField || IsZeroSize) && in addedMember() 1273 !FieldRec->hasConstexprDefaultConstructor() && !isUnion()) in addedMember() 1309 (!Field->hasInClassInitializer() && !isUnion() && in addedMember() 3343 if (!RD || RD->isUnion()) in isValidStructGUID()
|
| H A D | ItaniumCXXABI.cpp | 47 assert(RT->getDecl()->isUnion() && "RecordType is expected to be a union."); in findAnonymousUnionVarDeclName()
|
| H A D | CommentSema.cpp | 873 return RD->isUnion(); in isUnionDecl() 878 return !record->isUnion(); in isClassOrStructDeclImpl()
|
| H A D | ExprConstant.cpp | 3467 if (RD->isUnion()) in isReadByLvalueToRvalueConversion() 3772 if (RD->isUnion()) { in findSubobject() 4793 if (RD->isUnion()) { in getDefaultInitValue() 6268 if (!RD->isUnion()) in HandleConstructorCall() 6331 if (RD->isUnion()) { in HandleConstructorCall() 6352 if (CD->isUnion()) in HandleConstructorCall() 6366 if (CD->isUnion()) in HandleConstructorCall() 6407 if (!RD->isUnion()) { in HandleConstructorCall() 6555 if (RD->isUnion()) in HandleDestructionImpl() 9868 if (RD->isUnion()) { in ZeroInitialization() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGRecordLayoutBuilder.cpp | 282 if (D->isUnion()) { in lower() 885 if (isa<CXXRecordDecl>(D) && !D->isUnion() && !D->hasAttr<FinalAttr>()) { in ComputeRecordLayout() 978 if (D->isUnion()) { in ComputeRecordLayout()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaCUDA.cpp | 485 if (CD->getParent()->isUnion()) in isEmptyCudaConstructor() 529 if (DD->getParent()->isUnion()) in isEmptyCudaDestructor()
|
| H A D | SemaDecl.cpp | 5419 if (Record->isUnion()) { in BuildAnonymousStructOrUnion() 5523 << Record->isUnion(); in BuildAnonymousStructOrUnion() 5536 << Record->isUnion(); in BuildAnonymousStructOrUnion() 5557 << Record->isUnion(); in BuildAnonymousStructOrUnion() 12450 if (RD->isUnion()) { in visitStruct() 12515 if (RD->isUnion()) { in visitStruct() 12581 if (RD->isUnion()) { in visitStruct() 17603 if (Record->isUnion()) { in CheckFieldDecl() 18107 if (!Record->isUnion()) { in ActOnFields() 18177 Record->isUnion()) in ActOnFields() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseDefaultMemberInitCheck.cpp | 220 hasParent(recordDecl(isUnion()))))), in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PaddingChecker.cpp | 148 if (RD->isUnion()) in shouldSkipDecl()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Hover.cpp | 428 Constant.Val.isStruct() || Constant.Val.isUnion()) in printExprValue() 852 if (!Record->isUnion() && in addLayoutInfo() 865 if (Record->isUnion()) in addLayoutInfo()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedObjectChecker.cpp | 147 if (CtorDecl->getParent()->isUnion()) in checkEndFunction()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | RandstructTest.cpp | 538 if (RD->isUnion()) { in TEST()
|