Home
last modified time | relevance | path

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

12345678910>>...14

/external/llvm-project/pstl/test/std/numerics/numeric.ops/
Dtransform_reduce.pass.cpp34 class MyClass class
38 MyClass() { my_field = 0; } in MyClass() function in MyClass
39 MyClass(int32_t in) { my_field = in; } in MyClass() function in MyClass
40 MyClass(const MyClass& in) { my_field = in.my_field; } in MyClass() function in MyClass
42 friend MyClass
43 operator+(const MyClass& x, const MyClass& y) in operator +()
45 return MyClass(x.my_field + y.my_field); in operator +()
47 friend MyClass
48 operator-(const MyClass& x) in operator -()
50 return MyClass(-x.my_field); in operator -()
[all …]
/external/clang/test/Analysis/
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()
Dobjc-properties.m13 @interface MyClass; interface
16 MyClass *_Z;
20 …@property (assign, nonatomic) MyClass* A; // explicitely synthesized, not implemented, non-default…
22 @property (assign) MyClass* X; // automatically synthesized, not implemented
24 @property (assign, nonatomic) MyClass* Y; // automatically synthesized, implemented
26 @property (assign, nonatomic) MyClass* Z; // non-synthesized ivar, implemented setter
29 - (id) initWithPtr:(MyClass*) value; argument
30 - (id) myInitWithPtr:(MyClass*) value; argument
31 - (void) someMethod: (MyClass*)In; argument
37 - (id) initWithPtr: (MyClass*) value { argument
[all …]
/external/llvm-project/clang/test/Analysis/
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()
Dobjc-properties.m13 @interface MyClass; interface
16 MyClass *_Z;
20 …@property (assign, nonatomic) MyClass* A; // explicitly synthesized, not implemented, non-default …
22 @property (assign) MyClass* X; // automatically synthesized, not implemented
24 @property (assign, nonatomic) MyClass* Y; // automatically synthesized, implemented
26 @property (assign, nonatomic) MyClass* Z; // non-synthesized ivar, implemented setter
29 - (id) initWithPtr:(MyClass*) value; argument
30 - (id) myInitWithPtr:(MyClass*) value; argument
31 - (void) someMethod: (MyClass*)In; argument
37 - (id) initWithPtr: (MyClass*) value { argument
[all …]
/external/clang/test/SemaObjC/
Dclass-unavail-warning.m5 @interface MyClass { // expected-note 8 {{'MyClass' has been explicitly marked unavailable here}} interface
8 MyClass *ivar; // no error.
14 - (MyClass *)meth; // no error.
19 MyClass *ivar; // expected-error {{unavailable}}
21 - (MyClass *)meth; // expected-error {{unavailable}}
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) // expected-error {{unavailable}} implementation in Cat2
35 [MyClass new]; // expected-error {{'MyClass' is unavailable: not available}}
[all …]
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];
/external/llvm-project/clang/test/SemaObjCXX/
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 …]
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
58 …c; // expected-error {{incompatible pointer types assigning to 'MyOtherClass *' from 'MyClass *'}}
[all …]
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
/external/clang/test/SemaObjCXX/
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 …]
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
/external/llvm-project/clang/test/SemaObjC/
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.
19 MyClass *ivar; // expected-error {{unavailable}}
21 - (MyClass *)meth; // expected-error {{unavailable}}
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}}
[all …]
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];
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 *'}}
58 … // expected-warning {{incompatible pointer types assigning to 'MyOtherClass *' from 'MyClass *'}}
[all …]
/external/slf4j/slf4j-migrator/jcl/
Djclcontent.java8 Log l = LogFactory.getLog(MyClass.class);
9 Log mylog=LogFactory.getLog(MyClass.class);
10 Log mylog1 = LogFactory.getLog(MyClass.class);
11 Log mylog2 = LogFactory.getLog(MyClass.class);
13 Log log3=LogFactory.getFactory().getInstance(MyClass.class);
14 Log mylog4 = LogFactory.getFactory().getInstance(MyClass.class);
15 Log mylog5 = LogFactory.getLog(MyClass.class);
19 log7=LogFactory.getFactory().getInstance(MyClass.class);
20 log8 =LogFactory.getFactory().getInstance(MyClass.class);
21 myLog9 = LogFactory.getLog(MyClass.class);
/external/llvm-project/compiler-rt/test/tsan/libdispatch/
Dsync-block-copy.cpp13 struct MyClass { struct
18 MyClass(){}; in MyClass() function
19 MyClass(const MyClass &obj) { copyCount++; }; in MyClass() argument
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()
/external/llvm-project/clang/test/Index/
Dcomment-objc-decls.m52 * \brief MyClass - primary class.
54 @interface MyClass : NSObject<MyProto> interface
76 // CHECK: <Declaration>@interface MyClass : NSObject &lt;MyProto&gt; {\n id IvarMyClass;\n}\n@en…
83 * \brief - This is class extension of MyClass
85 @interface MyClass() interface in id
93 // CHECK: <Declaration>@interface MyClass () {\n id IvarMyClassExtension;\n}\n@end</Declaration>
98 * \brief MyClass (Category) is private to MyClass.
100 @interface MyClass (Category) interface in Category
102 * \brief This is private to MyClass
111 // CHECK: <Declaration>@interface MyClass (Category)\n@end</Declaration>
[all …]
/external/clang/test/Index/
Dcomment-objc-decls.m52 * \brief MyClass - primary class.
54 @interface MyClass : NSObject<MyProto> interface
76 // CHECK: <Declaration>@interface MyClass : NSObject &lt;MyProto&gt; {\n id IvarMyClass;\n}\n@en…
83 * \brief - This is class extension of MyClass
85 @interface MyClass() interface in id
93 // CHECK: <Declaration>@interface MyClass () {\n id IvarMyClassExtension;\n}\n@end</Declaration>
98 * \brief MyClass (Category) is private to MyClass.
100 @interface MyClass (Category) interface in Category
102 * \brief This is private to MyClass
111 // CHECK: <Declaration>@interface MyClass (Category)\n@end</Declaration>
[all …]
/external/llvm-project/clang/test/Analysis/objc/
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")));
33 …@property (assign, nonatomic) MyClass* A; // explicitly synthesized, not implemented, non-default …
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
[all …]
/external/clang/test/Analysis/objc/
Ddirect-ivar-assignment-in-annotated-functions.m13 @interface MyClass; interface
18 …- (void) someMethod: (MyClass*)In __attribute__((annotate("objc_no_direct_instance_variable_assign…
19 - (void) someMethodNotAnnaotated: (MyClass*)In; argument
24 MyClass *_Z;
26 MyClass* _NotA __attribute__((annotate("objc_allow_direct_instance_variable_assignment")));
29 …@property (assign, nonatomic) MyClass* A; // explicitely synthesized, not implemented, non-default…
31 @property (assign) MyClass* X; // automatically synthesized, not implemented
33 @property (assign, nonatomic) MyClass* Y; // automatically synthesized, implemented
35 @property (assign, nonatomic) MyClass* Z; // non-synthesized ivar, implemented setter
38 @property (assign) MyClass* NotA; // warnings should be suppressed, backing ivar is annotated
[all …]
/external/llvm-project/compiler-rt/test/asan/TestCases/Darwin/
Dscribble.cpp15 struct MyClass { struct
24 void MyClass::print_my_class_name() { in print_my_class_name() argument
39 MyClass *my_object = (MyClass *)malloc(sizeof(MyClass)); in main()
40 memset(my_object, 0x88, sizeof(MyClass)); in main()
/external/clang/test/CodeGenObjCXX/
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
/external/llvm-project/clang/test/CodeGenObjCXX/
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
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-assert-side-effect.cpp46 class MyClass { class
51 MyClass &operator=(const MyClass &rhs) { return *this; } in operator =()
87 MyClass mc; in main()
92 MyClass mc2; in main()
98 MyClass *mcp; in main()
99 assert(mcp = new MyClass); in main()

12345678910>>...14