Home
last modified time | relevance | path

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

123

/llvm-project/clang/test/Sema/
H A Dwarn-missing-prototypes.c58 struct MyStruct {}; struct
60 const struct MyStruct get_struct() { // expected-warning{{no previous prototype for function 'get_s… in get_struct()
63 struct MyStruct ret; in get_struct()
70 const struct MyStruct get_struct_2() { // expected-warning{{no previous prototype for function 'g… in get_struct_2()
73 struct MyStruct ret; in get_struct_2()
78 const struct MyStruct* get_struct_ptr() { // expected-warning{{no previous prototype for function… in get_struct_ptr()
85 /*some randome comment*/const struct MyStruct* get_struct_3() { // expected-warning{{no previous … in get_struct_3()
92 const/*some randome comment*/ struct MyStruct* get_struct_4() { // expected-warning{{no previous p… in get_struct_4()
103 MY_CONST struct MyStruct *get_struct_nyi() { // expected-warning{{no previous prototype for functio… in get_struct_nyi()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dsizeof-expression-2.c
H A Dsizeof-expression-warn-on-sizeof-pointer-to-aggregate.cpp15 struct MyStruct { in Test5() struct
19 typedef const MyStruct TMyStruct; in Test5()
20 typedef const MyStruct *PMyStruct; in Test5()
26 MyStruct S; in Test5()
58 sum += sizeof(MyStruct*); in Test5()
H A Dsizeof-expression-any-pointer.cpp106 struct MyStruct { in Test5() struct
110 typedef const MyStruct TMyStruct; in Test5()
111 typedef const MyStruct *PMyStruct; in Test5()
117 MyStruct S; in Test5()
126 MyStruct **PPMyStruct; in Test5()
153 sum += sizeof(MyStruct*); in Test5()
/llvm-project/clang/test/CoverageMapping/
H A Dstrong_order.cpp45 struct MyStruct { struct
46 friend bool operator==(MyStruct const& lhs, MyStruct const& rhs) = delete;
47 friend std::strong_ordering operator<=>(MyStruct const& lhs, MyStruct const& rhs) = default;
51 void foo(MyStruct bar){ in foo() argument
/llvm-project/compiler-rt/test/tsan/Darwin/
H A Dlibcxx-shared-ptr-recursive.mm14 struct MyStruct {
16 ~MyStruct() {
17 fprintf(stderr, "~MyStruct\n");
25 std::shared_ptr<MyStruct> shared(new MyStruct());
33 // CHECK: ~MyStruct
H A Dlibcxx-shared-ptr-stress.mm16 struct MyStruct { struct
18 MyStruct() : self_counter(0) { } argument
26 virtual ~MyStruct() {
41 std::shared_ptr<MyStruct> shared(new MyStruct()); argument
42 std::weak_ptr<MyStruct> weak(shared);
46 std::shared_ptr<MyStruct> shared_copy(shared);
52 std::shared_ptr<MyStruct> weak_copy = weak.lock();
H A Dlibcxx-shared-ptr.mm12 struct MyStruct { struct
16 ~MyStruct() {
26 std::shared_ptr<MyStruct> shared(new MyStruct()); argument
30 std::weak_ptr<MyStruct> weak(shared);
34 std::shared_ptr<MyStruct> strong = weak.lock();
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dconst-return-type.cpp41 struct MyStruct {}; struct
146 const MyStruct<0 < 1> p34() {}
150 MyStruct<0 < 1> const p35() {}
154 Klazz<MyStruct<0 < 1> const> const p36() {}
158 const Klazz<MyStruct<0 < 1> const> *const p37() {}
162 Klazz<const MyStruct<0 < 1>> const p38() {}
166 const Klazz<const MyStruct<0 < 1>> p39() {}
170 const Klazz<const MyStruct<(0 > 1)>> p40() {} in p40()
/llvm-project/llvm/test/Transforms/LoopVectorize/
H A Dinterleaved-acess-with-remarks.ll15 %MyStruct = type { i32, %"struct.std::atomic", %union.anon }
26 %3 = getelementptr inbounds %MyStruct, ptr %1, i64 0, i32 1, i32 0, i32 0
28 %5 = getelementptr inbounds %MyStruct, ptr %0, i64 0, i32 1, i32 0, i32 0
30 %6 = getelementptr inbounds %MyStruct, ptr %1, i64 0, i32 2, i32 0
31 %7 = getelementptr inbounds %MyStruct, ptr %0, i64 0, i32 2, i32 0
34 %binc = getelementptr inbounds %MyStruct, ptr %1, i64 1
35 %ainc = getelementptr inbounds %MyStruct, ptr %0, i64 1
/llvm-project/lldb/test/API/commands/expression/fixits/
H A Dmain.cpp9 struct MyStruct struct
18 struct MyStruct my_struct = {10, {20, 30}}; in main() argument
19 struct MyStruct *my_pointer = &my_struct; in main()
20 struct MyStruct *null_pointer = nullptr; in main()
/llvm-project/compiler-rt/test/tsan/libdispatch/
H A Dgroups-destructor.cpp12 struct MyStruct { struct
13 virtual ~MyStruct() { in ~MyStruct() argument
26 std::shared_ptr<MyStruct> shared(new MyStruct()); in main()
/llvm-project/clang/test/CodeGenObjCXX/
H A Dproperty-reference.mm3 struct MyStruct { struct
10 MyStruct _foo; argument
13 @property (assign, readwrite) const MyStruct& foo;
15 - (const MyStruct&) foo;
16 - (void) setFoo:(const MyStruct&)inFoo; argument
21 MyStruct myStruct;
25 const MyStruct& currentMyStruct = myClass.foo;
/llvm-project/compiler-rt/test/asan/TestCases/Darwin/
H A Dnil-return-struct.mm6 struct MyStruct { struct
11 - (MyStruct)methodWhichReturnsARect; argument
14 - (MyStruct)methodWhichReturnsARect {
15 MyStruct s;
/llvm-project/llvm/test/CodeGen/NVPTX/
H A Dglobals_lowering.ll4 %MyStruct = type { i32, i32, float }
5 @Gbl = internal addrspace(3) global [1024 x %MyStruct] zeroinitializer
11 …%0 = load float, ptr addrspace(3) getelementptr inbounds ([1024 x %MyStruct], ptr addrspace(3) @Gb…
14 …store float %add, ptr addrspace(3) getelementptr inbounds ([1024 x %MyStruct], ptr addrspace(3) @G…
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/
H A Dredundant-expression.cpp161 struct MyStruct { struct
163 bool operator==(const MyStruct& rhs) const {return this->x == rhs.x; } // not modifing in operator ==() argument
164 bool operator>=(const MyStruct& rhs) const { return this->x >= rhs.x; } // not modifing in operator >=() argument
165 bool operator<=(MyStruct& rhs) const { return this->x <= rhs.x; } in operator <=() argument
166 bool operator&&(const MyStruct& rhs){ this->x++; return this->x && rhs.x; } in operator &&() argument
169 bool operator!=(const MyStruct& lhs, const MyStruct& rhs) { return lhs.x == rhs.x; } // not modifing in operator !=()
170 bool operator<(const MyStruct& lhs, const MyStruct& rhs) { return lhs.x < rhs.x; } // not modifing in operator <()
171 bool operator>(const MyStruct in operator <()
[all...]
/llvm-project/lldb/test/API/lang/c/parray_vrs_char_array/
H A Dmain.c1 struct MyStruct { struct
10 struct MyStruct struct_arr[3] = {{112, "abcd", 221}, in main() argument
13 struct MyStruct *struct_ptr = struct_arr; in main()
/llvm-project/compiler-rt/test/BlocksRuntime/
H A Djosh.C10 struct MyStruct { struct
18 MyStruct first; // works in test() argument
21 MyStruct inner; // fails to compile! in test()
H A Dobjectassign.c35 struct MyStruct { struct
40 typedef struct MyStruct *__attribute__((NSObject)) MyStruct_t; argument
48 struct MyStruct X; in main()
H A DobjectRRGC.c36 struct MyStruct { struct
41 typedef struct MyStruct *__attribute__((NSObject)) MyStruct_t; argument
45 struct MyStruct X; in main()
/llvm-project/libc/test/src/stdio/
H A Dfileop_test.cpp160 using MyStruct = struct { in TEST() typedef
164 constexpr MyStruct WRITE_DATA[] = {{'a', 1}, {'b', 2}, {'c', 3}}; in TEST()
165 constexpr size_t WRITE_NMEMB = sizeof(WRITE_DATA) / sizeof(MyStruct); in TEST()
173 LIBC_NAMESPACE::fwrite(WRITE_DATA, sizeof(MyStruct), WRITE_NMEMB, file), in TEST()
179 MyStruct read_data[WRITE_NMEMB]; in TEST()
182 LIBC_NAMESPACE::fread(read_data, sizeof(MyStruct), WRITE_NMEMB, file), in TEST()
186 LIBC_NAMESPACE::fread(read_data, sizeof(MyStruct), WRITE_NMEMB, file), in TEST()
/llvm-project/clang/test/Analysis/
H A Dinitializer.cpp168 struct MyStruct { struct
169 MyStruct(int i);
170 MyStruct(OtherStruct os);
176 const MyStruct &myStruct(5); in referenceInitializeLocal()
181 const MyStruct &myStruct1(5), myStruct2(5), &myStruct3(5); in referenceInitializeMultipleLocals()
188 const MyStruct &myStruct(OtherStruct(5)); in referenceInitializeLocalWithCleanup()
/llvm-project/clang/test/SemaCXX/
H A Dwarn-unused-local-typedef.cpp230 struct MyStruct { }; in placement_new_and_delete() struct
231 char memory[sizeof(MyStruct)]; in placement_new_and_delete()
234 typedef MyStruct A_t1; in placement_new_and_delete()
235 MyStruct *a = new (p) A_t1(); in placement_new_and_delete()
237 typedef MyStruct A_t2; in placement_new_and_delete()
/llvm-project/clang/test/CodeGen/
H A Daddress-space.c39 } MyStruct; typedef
44 void test4(MyStruct __attribute__((address_space(2))) *pPtr) { in test4()
45 MyStruct s = pPtr[0]; in test4()
/llvm-project/lldb/test/API/python_api/value/
H A Dmain.c26 struct MyStruct struct
43 struct MyStruct small; argument
55 struct MyStruct s = {11, 22}; in main()

123