Home
last modified time | relevance | path

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

12345678

/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dsanitize-dtor-zero-size-field.cpp24 struct Struct { struct
28 ~Struct(){}; in ~Struct() argument
38 struct Struct { struct
53 struct Struct { struct
70 struct Struct { struct
87 struct Struct { struct
100 struct Struct { struct
115 struct Struct { struct
130 struct Struct { struct
146 struct Struct { struct
[all …]
H A Dmember-expr-references-variable.cpp5 struct Struct { struct
12 Struct(); argument
13 Struct(int x);
18 Struct *getPtr();
22 void scalarStaticVariableInMemberExpr(Struct *ptr, Struct &ref) { in scalarStaticVariableInMemberExpr()
23 use(1, Struct::name); in scalarStaticVariableInMemberExpr()
25 Struct s; in scalarStaticVariableInMemberExpr()
44 void complexStaticVariableInMemberExpr(Struct *ptr, Struct &ref) { in complexStaticVariableInMemberExpr()
51 Struct s; in complexStaticVariableInMemberExpr()
88 void aggregateRefInMemberExpr(Struct *ptr, Struct &ref) { in aggregateRefInMemberExpr()
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dconstant-expression.cpp15 struct Struct { struct
26 v5 = Struct::sval, argument
27 v6 = Struct::seval,
31 v10 = sizeof(Struct),
32 v11 = true? 1 + cval * Struct::sval ^ itval / (int)1.5 - sizeof(Struct) : 0
39 b5 : Struct::sval,
40 b6 : Struct::seval,
45 b11 : true? 1 + cval * Struct::sval ^ itval / (int)1.5 - sizeof(Struct) : 0
52 i5 = Struct::sval,
53 i6 = Struct::seval,
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DStructPackAlignCheck.cpp51 if (Struct->isTemplated()) in check()
55 if (Struct->isInvalidDecl()) in check()
88 bool IsPacked = Struct->hasAttr<PackedAttr>(); in check()
100 diag(Struct->getLocation(), in check()
103 << Struct << (int)MinByteSize.getQuantity() in check()
107 diag(Struct->getLocation(), in check()
111 << Struct; in check()
123 Struct->getEndLoc().getLocWithOffset(1), in check()
130 diag(Struct->getLocation(), in check()
135 diag(Struct->getLocation(), in check()
[all …]
/llvm-project-15.0.7/llvm/test/DebugInfo/PDB/Inputs/
H A Devery-function.cpp17 struct Struct { struct
18 Struct() {} // constructor in Struct() argument
31 void struct_one_param(Struct S) { } in struct_one_param() argument
34 void modified_struct_param(const Struct S) { } in modified_struct_param()
37 void pointer_struct_param(Struct *S) { } in pointer_struct_param()
41 void modified_pointer_struct_param(const Struct *S) { } in modified_pointer_struct_param()
43 Struct rvo() { return Struct(); } in rvo()
59 Struct().cc_thiscall(); in main()
64 struct_one_param(Struct{}); in main()
67 modified_struct_param(Struct()); in main()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DTypesTest.cpp20 StructType *Struct = StructType::create(C, "FooBar"); in TEST() local
21 EXPECT_EQ("FooBar", Struct->getName()); in TEST()
22 Struct->setName(Struct->getName().substr(0, 3)); in TEST()
23 EXPECT_EQ("Foo", Struct->getName()); in TEST()
24 Struct->setName(""); in TEST()
25 EXPECT_TRUE(Struct->getName().empty()); in TEST()
26 EXPECT_FALSE(Struct->hasName()); in TEST()
/llvm-project-15.0.7/clang/test/Parser/
H A Deditor-placeholder-recovery.cpp4 struct Struct { struct
6 void method(Struct &x);
40 void avoidPlaceholderErrors(Struct &obj) { in avoidPlaceholderErrors()
45 obj.method(<#Struct &x#>); in avoidPlaceholderErrors()
67 void Struct::method(<#Struct &x#>, noSupressionHere) { // expected-error {{unknown type name 'noSup…
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dimplicit-bool-conversion-allow-in-conditions.cpp12 struct Struct { struct
26 Struct s = {}; in implicitConversionIntegerToBoolInConditionalsIsAllowed() argument
54 int Struct::* memberPointer = &Struct::member; in regularImplicitConversionPointerToBoolIsNotIgnored()
66 int Struct::* memberPointer = &Struct::member; in implicitConversionPointerToBoolInConditionalsIsAllowed()
H A Dimplicit-bool-conversion-cxx98.cpp11 struct Struct { struct
21 int Struct::* memberPointer = NULL; in useOldNullMacroInReplacements() argument
37 functionTaking<int Struct::*>(false); in fixFalseLiteralConvertingToNullPointer()
41 int Struct::* memberPointer = NULL; in fixFalseLiteralConvertingToNullPointer()
/llvm-project-15.0.7/lldb/test/API/lang/cpp/global_operators/
H A Dmain.cpp8 struct Struct { struct
12 bool operator==(const Struct &a, const Struct &b) { in operator ==() argument
16 typedef char buf_t[sizeof(Struct)];
36 Struct s1, s2, s3; in main()
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A Dsched-past-vector-ldst.ll18 %Struct = type { i64*, [9 x double], [16 x {float, float}], [16 x {float, float}], i32, i32 }
21 define linkonce_odr void @func(%Struct* nocapture %this, <4 x float> %f) unnamed_addr #0 align 2 {
23 %scevgep = getelementptr %Struct, %Struct* %this, i64 0, i32 2, i64 8, i32 0
32 %scevgep2 = getelementptr %Struct, %Struct* %this, i64 0, i32 3, i64 8, i32 0
35 %scevgep3 = getelementptr %Struct, %Struct* %this, i64 0, i32 2, i64 12, i32 0
44 %scevgep4 = getelementptr %Struct, %Struct* %this, i64 0, i32 3, i64 12, i32 0
/llvm-project-15.0.7/clang/test/Refactor/LocalRename/
H A DBuiltinOffsetof.cpp3 struct Struct { struct
8 Struct /*range array=*/array[4][2]; argument
12 (void)__builtin_offsetof(Struct, /*range f=*/field); in foo()
18 class SubclassOffsetof : public Struct {
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/PDB/Inputs/
H A DClassLayoutTest.cpp19 struct Struct;
20 typedef Struct StructTypedef;
22 struct Struct { struct
30 struct Struct StructVar; argument
94 struct Struct m_struct;
/llvm-project-15.0.7/clang/test/Analysis/
H A Dtransparent_union_bug.c8 } Struct; typedef
11 Struct *ptr;
15 void foo(Struct *x);
36 void bar(Struct arg) { in bar()
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dunsafe-perform-selector.m23 struct Struct { Rectangle r; }; argument
29 - (struct Struct)returnsStruct2; // expected-note {{method 'returnsStruct2' that returns 'struct St… argument
79 - (struct Struct)returnsSubStructExt; // expected-note {{method 'returnsSubStructExt' that returns … category
84 - (struct Struct)returnsSubStructImpl { // expected-note {{method 'returnsSubStructImpl' that retur…
85 struct Struct Result;
100 + (struct Struct)returnsSubStructClassImpl { // expected-note {{method 'returnsSubStructClassImpl' …
101 struct Struct Result;
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTypeHierarchyTests.cpp378 withName("Child"), withKind(SymbolKind::Struct), in TEST()
416 AllOf(withName("S<0>"), withKind(SymbolKind::Struct), in TEST()
418 AllOf(withName("S"), withKind(SymbolKind::Struct), in TEST()
450 AllOf(withName("S<2>"), withKind(SymbolKind::Struct), in TEST()
452 withName("S<1>"), withKind(SymbolKind::Struct), in TEST()
461 AllOf(withName("S"), withKind(SymbolKind::Struct), in TEST()
462 parents(AllOf(withName("S"), withKind(SymbolKind::Struct), in TEST()
487 AllOf(withName("Parent"), withKind(SymbolKind::Struct), in TEST()
539 AllOf(withName("Parent"), withKind(SymbolKind::Struct), in TEST()
741 AllOf(withName("Parent"), withKind(SymbolKind::Struct), parents(), in TEST()
[all …]
/llvm-project-15.0.7/mlir/test/Examples/Toy/Ch7/
H A Dstruct-ast.toy3 struct Struct {
9 def multiply_transpose(Struct value) {
16 Struct value = {[[1, 2, 3], [4, 5, 6]], [[1, 2, 3], [4, 5, 6]]};
24 # CHECK-NEXT: Struct: Struct @{{.*}}struct-ast.toy:3:1
50 # CHECK-NEXT: VarDecl value<Struct> @{{.*}}struct-ast.toy:16:3
51 # CHECK-NEXT: Struct Literal: Literal: <2, 3>[ <3>[ 1.000000e+00, 2.000000e+00, 3.…
/llvm-project-15.0.7/lldb/test/API/functionalities/data-formatter/type_summary_list_script/
H A Dmain.cpp3 typedef struct Struct struct
7 } Struct; argument
12 Struct myStruct = {10, 20}; in main()
/llvm-project-15.0.7/llvm/test/CodeGen/SPIRV/
H A DAtomicCompareExchange.ll10 ; CHECK-SPIRV-DAG: %[[#Struct:]] = OpTypeStruct %[[#Int]] %[[#Bool]]
11 ; CHECK-SPIRV-DAG: %[[#UndefStruct:]] = OpUndef %[[#Struct]]
21 ; CHECK-SPIRV: %[[#Composite_0:]] = OpCompositeInsert %[[#Struct]] %[[#Res]] %[[#UndefStruct]] 0
22 ; CHECK-SPIRV: %[[#Composite_1:]] = OpCompositeInsert %[[#Struct]] %[[#Success]] %[[#Composite_0]] 1
50 ; CHECK-SPIRV: %[[#Composite:]] = OpCompositeInsert %[[#Struct]] %[[#Res_1]] %[[#UndefStruct]] 0
51 ; CHECK-SPIRV: %[[#Composite_1:]] = OpCompositeInsert %[[#Struct]] %[[#Success_1]] %[[#Composite]] 1
/llvm-project-15.0.7/lld/test/COFF/
H A Ds_udt.s24 # CHECK: {{.*}} | S_UDT [size = 16] `Struct`
41 # struct Struct {
46 # using StructTypedef = Struct;
47 # Struct S;
52 # using LocalTypedef = Struct*;
324 # Struct (0x1004) {
335 # Name: Struct
351 # PointeeType: Struct (0x1004)
380 # Struct (0x1007) {
390 # Name: Struct
[all …]
/llvm-project-15.0.7/llvm/test/DebugInfo/COFF/
H A Denum-co.ll21 ; struct Struct {
27 ; Struct S;
79 ; CHECK: Name: Func::Struct::Union::NestedEnum
80 ; CHECK: LinkageName: .?AW4NestedEnum@Union@Struct@?1??Func@@YAXXZ@
89 %struct.Struct = type { %"union.Func()::Struct::Union" }
90 %"union.Func()::Struct::Union" = type { i8 }
121 %S = alloca %struct.Struct, align 1
123 …call void @llvm.dbg.declare(metadata %struct.Struct* %S, metadata !44, metadata !DIExpression()), …
152 …baseType: !4, size: 32, elements: !24, identifier: ".?AW4NestedEnum@Union@Struct@?1??Func@@YAXXZ@")
153 …e: 8, flags: DIFlagTypePassByValue, elements: !23, identifier: ".?ATUnion@Struct@?1??Func@@YAXXZ@")
[all …]
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/NativePDB/
H A Dfind-functions.cpp28 struct Struct { struct
54 Struct s; argument
66 Struct::static_method() + s.virtual_method() + s.overloaded_method(); in main()
/llvm-project-15.0.7/clang/test/Index/Core/
H A Dindex-source.cpp131 struct Struct { }; struct in PseudoOverridesInSpecializations
183 class Struct { }; class in PseudoOverridesInSpecializations
533 struct Struct { struct
538 Struct array[4][2];
542 __builtin_offsetof(Struct, field); in foo()
554 class SubclassOffsetof : public Struct {
/llvm-project-15.0.7/llvm/test/TableGen/
H A DClassInstanceValue.td4 class Struct<int i> {
9 class Class<Struct s> {
14 def Def : Class<Struct<i>>;
/llvm-project-15.0.7/clang/test/CodeGenOpenCL/
H A Dfunc-call-dbg-loc.cl6 } Struct;
8 Struct func1(void);
10 void func2(Struct S);

12345678