Home
last modified time | relevance | path

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

1234567

/llvm-project-15.0.7/pstl/test/std/numerics/numeric.ops/
H A Dtransform_reduce.pass.cpp34 class MyClass class
38 MyClass() { my_field = 0; } in MyClass() function in MyClass
40 MyClass(const MyClass& in) = default;
42 friend MyClass
43 operator+(const MyClass& x, const MyClass& y) in operator +()
47 friend MyClass
48 operator-(const MyClass& x) in operator -()
52 friend MyClass operator*(const MyClass& x, const MyClass& y) in operator *()
56 friend bool operator==(const MyClass& x, const MyClass& y) in operator ==()
124 …test_by_type<MyClass>(MyClass(), std::plus<MyClass>(), std::multiplies<MyClass>(), std::negate<MyC… in main()
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A Dtemplates.cpp9 template<class T> class MyClass;
10 typedef MyClass<float> Mf;
13 class MyClass class
16 MyClass() {} in MyClass() function in MyClass
17 MyClass(T a);
23 template<class T> const T MyClass<T>::one = static_cast<T>(1);
24 template<class T> inline MyClass<T>::MyClass(T a){} in MyClass() function in MyClass
25 template<class T> void MyClass<T>::I() { in I()
26 static MyClass<T>* mPtr = 0; in I()
27 useBlock(^{ mPtr = new MyClass<T> (MyClass<T>::one); }); in I()
H A Dobjc-properties.m13 @interface MyClass; interface
16 MyClass *_Z;
22 @property (assign) MyClass* X; // automatically synthesized, not implemented
29 - (id) initWithPtr:(MyClass*) value; argument
30 - (id) myInitWithPtr:(MyClass*) value; argument
31 - (void) someMethod: (MyClass*)In; argument
37 - (id) initWithPtr: (MyClass*) value { argument
48 - (id) myInitWithPtr: (MyClass*) value { argument
53 - (void) setY:(MyClass*) NewValue { argument
57 - (void) setZ:(MyClass*) NewValue { argument
[all …]
H A DPR2978.m11 @interface MyClass : NSObject { interface
27 MyClass *_other;
52 @interface MyClass () interface in assign
57 @implementation MyClass implementation
83 …[_Z release]; // expected-warning{{The '_Z' ivar in 'MyClass' was synthesized for an assign, readw…
93 …[_S release]; // expected-warning {{The '_S' ivar in 'MyClass' was synthesized for a weak property…
97 …[_Q release]; // expected-warning {{The '_Q' ivar in 'MyClass' was synthesized for a weak property…
110 …// expected-warning@-1{{The '_Y' ivar in 'MyClass' was retained by a synthesized property but not …
111 …// expected-warning@-2{{The '_W' ivar in 'MyClass' was retained by a synthesized property but not …
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Ddelay-parsing-cplusfuncs.mm5 @interface MyClass interface
10 int bar(MyClass * myObject);
12 int gorfbar(MyClass * myObject);
15 S(MyClass *O1, MyClass *O2);
16 S(MyClass *O1);
18 MyClass * Obj1, *Obj2;
22 @implementation MyClass implementation in MyClass
27 int S::bar(MyClass * myObject) { category
33 int S::gorfbar(MyClass * myObject) { category
39 S::S(MyClass *O1, MyClass *O2) : Obj1(O1), Obj2(O2) { category
[all …]
H A Dcomptypes-1.mm12 @interface MyClass interface
23 MyClass *obj_c = nil;
36 /* Assigning to a 'MyClass *' variable should always generate a
39 …obj_c = obj_p; // expected-error {{assigning to 'MyClass *' from incompatible type 'id<MyProtocol…
40 …obj_c = obj_cp; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'MyOt…
41 …obj_c = obj_C; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Clas…
42 …obj_c = obj_CP; // expected-error {{incompatible pointer types assigning to 'MyClass *' from 'Clas…
45 warning if done from a 'MyClass *' (which doesn't implement
49 …obj_p = obj_c; // expected-error {{assigning to 'id<MyProtocol>' from incompatible type 'MyClass
65 …C = obj_c; // expected-error {{incompatible pointer types assigning to 'Class' from 'MyClass *'}}
[all …]
H A Ddelay-parsing-func-tryblock.mm4 @interface MyClass interface
9 BadReturn(MyClass * myObject);
10 int bar(MyClass * myObject);
11 void MemFunc(MyClass * myObject);
13 MyClass *CObj;
16 @implementation MyClass implementation in MyClass
21 int BadReturn::bar(MyClass * myObject) { category
26 BadReturn::BadReturn(MyClass * myObject) try : CObj(myObject) { category
42 void BadReturn::MemFunc(MyClass * myObject) try { category
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dclass-unavail-warning.m5 @interface MyClass { // expected-note 7 {{'MyClass' has been explicitly marked unavailable here}} interface
8 MyClass *ivar; // no error.
14 - (MyClass *)meth; // no error.
24 @interface MyClass (Cat1) interface in Cat1
25 - (MyClass *)meth; // no error.
28 @interface MyClass (Cat2) // no error. interface in Cat2
31 @implementation MyClass (Cat2) // no error. implementation in Cat2
35 [MyClass new]; // expected-error {{'MyClass' is unavailable: not available}}
36 [MyClass self]; // expected-error {{'MyClass' is unavailable: not available}}
37 [MyClass addObject:((void *)0)]; // expected-error {{'MyClass' is unavailable: not available}}
[all …]
H A Dmethod-lookup-4.m8 @interface MyClass : NSObject {} interface
12 @interface MyClass (MyCategorie) interface in MyCategorie
16 @interface MySubClass : MyClass {}
28 @implementation MyClass implementation
35 @implementation MyClass (MyCategorie) implementation in MyCategorie
54 [MyClass rootMethod];
56 [MyClass myClassMethod];
59 [MyClass myClassCategoryMethod];
H A Dcomptypes-1.m12 @interface MyClass interface
23 MyClass *obj_c = nil;
36 /* Assigning to a 'MyClass *' variable should always generate a
39 …obj_c = obj_p; // expected-warning {{assigning to 'MyClass *' from incompatible type 'id<MyProtoc…
40 …obj_c = obj_cp; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'My…
41 …obj_c = obj_C; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Cl…
42 …obj_c = obj_CP; // expected-warning {{incompatible pointer types assigning to 'MyClass *' from 'Cl…
45 warning if done from a 'MyClass *' (which doesn't implement
49 … = obj_c; // expected-warning {{assigning to 'id<MyProtocol>' from incompatible type 'MyClass *'}}
65 …= obj_c; // expected-warning {{incompatible pointer types assigning to 'Class' from 'MyClass *'}}
[all …]
H A Dcomptypes-4.m7 @interface MyClass @end interface
11 MyClass <MyProtocol> *obj_p;
12 MyClass *obj_cp;
15 …pected-warning {{incompatible pointer types assigning to 'MyClass<MyProtocol> *' from 'MyClass *'}}
H A Ddelay-parsing-cfunctions.m5 @interface MyClass interface
9 @implementation MyClass implementation in MyClass
14 int bar(MyClass * myObject) { category
20 int gorfbar(MyClass * myObject) { category
27 MyClass * myObject;
H A Dcomptypes-2.m11 @interface MyClass interface
18 MyClass *obj_c = nil;
26 obj_c = (MyClass *)obj;
27 obj_c = (MyClass *)obj_p;
28 obj_c = (MyClass *)obj_C;
/llvm-project-15.0.7/compiler-rt/test/tsan/libdispatch/
H A Dsync-block-copy.cpp13 struct MyClass { struct
18 MyClass(){}; in MyClass() argument
19 MyClass(const MyClass &obj) { copyCount++; }; in MyClass() function
24 int MyClass::copyCount = 0;
28 MyClass obj; in main()
29 MyClass::printCopyCount(); in main()
33 MyClass::printCopyCount(); in main()
35 MyClass::printCopyCount(); in main()
/llvm-project-15.0.7/clang/test/Index/
H A Dcomment-objc-decls.m52 * \brief MyClass - primary class.
54 @interface MyClass : NSObject<MyProto> interface
85 @interface MyClass() interface in id
98 * \brief MyClass (Category) is private to MyClass.
100 @interface MyClass (Category) interface in Category
102 * \brief This is private to MyClass
120 * \brief implementation of MyClass class.
122 @implementation MyClass { implementation
148 * \brief MyClass (Category) is implementation of private to MyClass.
150 @implementation MyClass (Category) implementation in Category
[all …]
/llvm-project-15.0.7/clang/test/Analysis/objc/
H A Ddirect-ivar-assignment-in-annotated-functions.m17 @interface MyClass; interface
22 …- (void) someMethod: (MyClass*)In __attribute__((annotate("objc_no_direct_instance_variable_assign…
23 - (void) someMethodNotAnnaotated: (MyClass*)In; argument
28 MyClass *_Z;
30 MyClass* _NotA __attribute__((annotate("objc_allow_direct_instance_variable_assignment")));
35 @property (assign) MyClass* X; // automatically synthesized, not implemented
37 @property (assign, nonatomic) MyClass* Y; // automatically synthesized, implemented
39 @property (assign, nonatomic) MyClass* Z; // non-synthesized ivar, implemented setter
42 @property (assign) MyClass* NotA; // warnings should be suppressed, backing ivar is annotated
50 - (void) someMethod: (MyClass*)In { argument
[all …]
/llvm-project-15.0.7/clang/test/CodeGenObjCXX/
H A Daddress-safety-attr.mm4 @interface MyClass interface
8 @implementation MyClass implementation
10 // WITHOUT: +[MyClass load]{{.*}}#0
11 // ASAN: +[MyClass load]{{.*}}#0
14 // WITHOUT: +[MyClass addressSafety:]{{.*}}#0
15 // ASAN: +[MyClass addressSafety:]{{.*}}#0
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Darwin/
H A Dscribble.cpp15 struct MyClass { struct
31 void MyClass::print_my_class_name() { in print_my_class_name() argument
46 MyClass *my_object = (MyClass *)malloc(sizeof(MyClass)); in main()
47 memset(my_object, 0x88, sizeof(MyClass)); in main()
/llvm-project-15.0.7/cross-project-tests/debuginfo-tests/llgdb-tests/
H A Dstatic-member.cpp22 class MyClass { class
30 int MyClass::c = 15;
31 const int MyClass::a;
34 MyClass instance_MyClass; in main()
35 return MyClass::a; in main()
/llvm-project-15.0.7/clang/docs/analyzer/checkers/
H A Dcallandmessage_example.c31 @interface MyClass : NSObject
37 MyClass *obj1;
43 @interface MyClass : NSObject
49 MyClass *obj1;
58 @interface MyClass : Subscriptable
64 MyClass *obj1;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dassert-side-effect.cpp48 class MyClass { class
54 MyClass &operator=(const MyClass &rhs) { return *this; } in operator =()
95 MyClass mc; in main()
108 MyClass mc2; in main()
114 MyClass *mcp; in main()
115 assert(mcp = new MyClass); in main()
/llvm-project-15.0.7/compiler-rt/test/tsan/Darwin/
H A Dobjc-race.mm8 @interface MyClass : NSObject { interface
14 @implementation MyClass implementation
26 MyClass *my_object = [MyClass new];
51 // CHECK: #0 -[MyClass method:]
53 // CHECK: #0 -[MyClass method:]
/llvm-project-15.0.7/lldb/test/Shell/Settings/Inputs/
H A Dmain.cpp1 class MyClass { class
3 MyClass() {} in MyClass() function in MyClass
7 void MyClass::foo() { in foo()
12 MyClass mc; in main()
/llvm-project-15.0.7/lldb/test/API/lang/objc/objc-optimized/
H A Dmain.m3 @interface MyClass : NSObject { interface
11 @implementation MyClass implementation
27 // Set a breakpoint on '-[MyClass description]' and test expressions: expr member
38 MyClass *my_object = [[MyClass alloc] initWithMember:5];
/llvm-project-15.0.7/llvm/test/Demangle/
H A Dms-options.test9 ?func@MyClass@@UEAAHHH@Z
10 ; CHECK: public: virtual int __cdecl MyClass::func(int, int)
11 ; CHECK-NO-CALLING-CONV: public: virtual int MyClass::func(int, int)
12 ; CHECK-NO-RETURN: public: virtual __cdecl MyClass::func(int, int)
13 ; CHECK-NO-ACCESS: {{^}}virtual int __cdecl MyClass::func(int, int)
14 ; CHECK-NO-MEMBER-TYPE: public: int __cdecl MyClass::func(int, int)
15 ; CHECK-NO-VARIABLE-TYPE: public: virtual int __cdecl MyClass::func(int, int)
16 ; CHECK-NO-ALL: {{^}}MyClass::func(int, int)

1234567