Home
last modified time | relevance | path

Searched refs:ivar (Results 1 – 25 of 143) sorted by relevance

123456

/external/clang/test/Analysis/
DDeallocMissingRelease.m27 - (instancetype)initWithIvar:(NSObject *)ivar
33 _ivar = [ivar retain];
48 - (NSObject *)ivar; method
49 - (void)setIvar:(NSObject *)ivar;
64 - (NSObject *)ivar
68 - (void)setIvar:(NSObject *)ivar
72 _ivar = [ivar retain];
74 _ivar = ivar;
82 @property (copy) NSObject *ivar; property
89 …[super dealloc]; // expected-warning {{The '_ivar' ivar in 'MyPropertyClass1' was copied by a synt…
[all …]
DMissingDealloc.m26 // whether the ivar is retained or not.
41 @property (assign) int ivar; property
48 @property (assign) SEL ivar; property
58 @property (copy) NSObject *ivar; property
68 @property (retain) NSObject *ivar; property
101 @property (readonly,retain) NSObject *ivar; property
158 @property (retain) NSObject *ivar; property
181 @property (retain) NSObject *ivar; property
DPR2978.m3 // Tests for the checker which checks missing/extra ivar 'release' calls
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 …
Dunused-ivars.m16 // This test case tests the basic functionality of the unused ivar test.
24 // This test case tests whether the unused ivar check handles blocks that
30 @property (readwrite,retain) id ivar; property
34 - (id)ivar { method
48 // <rdar://problem/6260004> Detect that ivar is in use, if used in category
DDeallocUseAfterFreeErrors.m30 - (instancetype)initWithIvar:(NSObject *)ivar {
34 _ivar = [ivar retain];
115 @property (retain) NSObject *ivar; property
119 - (instancetype)initWithProperty:(NSObject *)ivar {
123 self.ivar = ivar;
128 self.ivar = nil; // expected-warning {{use of 'self' after it has been deallocated}}
262 // A class that contains an ivar of itself with custom retain counting (such
/external/clang/test/CodeGenObjC/
Darc-ivar-layout.m1 // RUN: %clang_cc1 -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -print-ivar-layou…
18 // CHECK-LP64: strong ivar layout for class 'AllPointers': 0x03, 0x00
38 // CHECK-LP64: strong ivar layout for class 'A': 0x02, 0x00
39 // CHECK-LP64: weak ivar layout for class 'A': 0x31, 0x00
43 // CHECK-LP64: strong ivar layout for class 'B': 0x12, 0x00
55 // CHECK-LP64: strong ivar layout for class 'UnsafePerson': 0x21, 0x00
64 // CHECK-LP64: weak ivar layout for class 'rdar16136439': 0x01, 0x00
79 // CHECK-LP64: strong ivar layout for class 'Misaligned': 0x01, 0x00
/external/clang/test/SemaObjC/
Dunused-backing-ivar-warning.m1 // RUN: %clang_cc1 -fsyntax-only -Wunused-property-ivar -verify -Wno-objc-root-class %s
18 - (void) setX:(id)newX { // expected-warning {{ivar '_x' which backs the property is not reference…
21 - (id) y { // expected-warning {{ivar '_y' which backs the property is not referenced in this prope…
25 - (void) setV:(id)newV { // expected-warning {{ivar '_v' which backs the property is not referenced…
29 // No warning here because there is no backing ivar.
38 - (id) u { // expected-warning {{ivar '_u' which backs the property is not referenced in this prope…
48 - (void) setT:(id)newT { // expected-warning {{ivar 'tIvar' which backs the property is not referen…
122 - (long) q { return 0; } // expected-warning {{ivar 'q' which backs the property is not referenced …
123 - (void) setQ : (long) val { } // expected-warning {{ivar 'q' which backs the property is not refer…
124 - (long) r { [self Meth]; return p; } // expected-warning {{ivar 'r' which backs the property is no…
[all …]
Dduplicate-ivar-in-class-extension.m12 int ivar; // expected-error {{duplicate member 'ivar'}} field
19 int ivar; // expected-note {{previous declaration is here}}
30 return self->ivar; // would be ambiguous if the duplicate ivar were allowed
Dinterface-layout-2.m5 int ivar; field
10 - (int)ivar; method
14 - (int)ivar { method
15 return ivar;
Dno-ivar-access-control.m9 int ivar; field
15 return self->ivar;
18 return p->ivar;
23 return p->ivar;
31 return arg->ivar;
Dstatic-ivar-ref-1.m7 int ivar; field
17 return pc->ivar2 + (*pc).ivar + pc->ivar1;
21 // CHECK: int ivar;
28 // CHECK: return pc->ivar2 + (*pc).ivar + pc->ivar1;
Dproperty-13.m26 int ivar; field
37 @synthesize required = ivar;
40 - (int) optional_preexisting_setter_getter { return ivar; }
43 ivar = value;
45 - (void) setOptional_getter_attr:(int)value { ivar = value; }
Dproperty-ivar-mismatch.m2 // Test that arithmatic types on property and its ivar have exact match.
6 char ivar; // expected-note{{instance variable is declared here}} field
12 @synthesize prop = ivar; // expected-error {{type of property 'prop' ('int') does not match type o…
Dwarn-direct-ivar-access.m1 // RUN: %clang_cc1 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -Wdirect-ivar-access -verify …
46 id ivar; field
52 x->ivar = 0; // expected-error {{dereferencing a __weak pointer is not allowed}}
53 return y ? y->ivar // expected-error {{dereferencing a __weak pointer is not allowed}}
54 : (*x).ivar; // expected-error {{dereferencing a __weak pointer is not allowed}}
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/
Darm64-fold-address.ll17 %ivar = load i64, i64* @"OBJC_IVAR_$_UIScreen._bounds", align 8, !invariant.load !4
19 %add.ptr = getelementptr inbounds i8, i8* %0, i64 %ivar
22 %add.ptr.sum = add i64 %ivar, 8
26 %add.ptr.sum17 = add i64 %ivar, 16
30 %add.ptr4.1.sum = add i64 %ivar, 24
49 %ivar = load i64, i64* @"OBJC_IVAR_$_UIScreen._bounds", align 8, !invariant.load !4
51 %add.ptr = getelementptr inbounds i8, i8* %0, i64 %ivar
54 %add.ptr10.1 = getelementptr inbounds i8, i8* %0, i64 %ivar
57 %add.ptr4.1 = getelementptr inbounds i8, i8* %0, i64 %ivar
60 %add.ptr4.1.1 = getelementptr inbounds i8, i8* %0, i64 %ivar
Darm64-2012-05-22-LdStOptBug.ll18 %ivar = load i64, i64* @"OBJC_IVAR_$_UIScreen._bounds", align 8, !invariant.load !4
20 %add.ptr = getelementptr inbounds i8, i8* %0, i64 %ivar
23 %add.ptr.sum = add i64 %ivar, 8
27 %add.ptr.sum17 = add i64 %ivar, 16
31 %add.ptr4.1.sum = add i64 %ivar, 24
/external/llvm/test/CodeGen/AArch64/
Darm64-fold-address.ll17 %ivar = load i64, i64* @"OBJC_IVAR_$_UIScreen._bounds", align 8, !invariant.load !4
19 %add.ptr = getelementptr inbounds i8, i8* %0, i64 %ivar
22 %add.ptr.sum = add i64 %ivar, 8
26 %add.ptr.sum17 = add i64 %ivar, 16
30 %add.ptr4.1.sum = add i64 %ivar, 24
49 %ivar = load i64, i64* @"OBJC_IVAR_$_UIScreen._bounds", align 8, !invariant.load !4
51 %add.ptr = getelementptr inbounds i8, i8* %0, i64 %ivar
54 %add.ptr10.1 = getelementptr inbounds i8, i8* %0, i64 %ivar
57 %add.ptr4.1 = getelementptr inbounds i8, i8* %0, i64 %ivar
60 %add.ptr4.1.1 = getelementptr inbounds i8, i8* %0, i64 %ivar
Darm64-2012-05-22-LdStOptBug.ll18 %ivar = load i64, i64* @"OBJC_IVAR_$_UIScreen._bounds", align 8, !invariant.load !4
20 %add.ptr = getelementptr inbounds i8, i8* %0, i64 %ivar
23 %add.ptr.sum = add i64 %ivar, 8
27 %add.ptr.sum17 = add i64 %ivar, 16
31 %add.ptr4.1.sum = add i64 %ivar, 24
/external/clang/test/Rewriter/
Drewrite-cast-ivar-access.mm12 int ivar; field
19 int v = ((G *)arg)->ivar;
49 // CHECK-LP: ((struct G_IMPL *)arg)->ivar
/external/clang/test/SemaObjCXX/
Dmessage.mm17 typedef struct { int x; } ivar; typedef
20 id ivar; field
36 [ivar method];
44 [ivar method]; // expected-error{{receiver type 'ivar' is not an Objective-C class}}
Dpropert-dot-error.mm58 int ivar; field
66 …d->Forward::ivar = 12; // expected-error{{instance variable access cannot be qualified with 'Forwa…
68 d->D::ivar = 12; // expected-error{{'D' is not a class, namespace, or enumeration}}
Dinstantiate-expr.mm5 int ivar; field
21 get_an_A(N)->ivar = value; // expected-error{{assigning to 'int' from incompatible type 'int *'}}
33 // ivar reference.
36 ptr->ivar = value; // expected-error{{assigning to 'int' from incompatible type 'int *'}}
/external/clang/test/Analysis/objc/
Ddirect-ivar-assignment-in-annotated-functions.m29 … (assign, nonatomic) MyClass* A; // explicitely synthesized, not implemented, non-default ivar name
35 @property (assign, nonatomic) MyClass* Z; // non-synthesized ivar, implemented setter
36 …@property (readonly) id nonSynth; // non-synthesized, explicitly implemented to return ivar with …
38 @property (assign) MyClass* NotA; // warnings should be suppressed, backing ivar is annotated
/external/clang/test/FixIt/
Dtypo-crash.m5 - (int)method { return ivar; } // expected-error{{use of undeclared identifier 'ivar'}}
/external/clang/lib/CodeGen/
DCGObjC.cpp569 static void emitStructGetterCall(CodeGenFunction &CGF, ObjCIvarDecl *ivar, in emitStructGetterCall() argument
574 CGF.EmitLValueForIvar(CGF.TypeOfSelfObject(), CGF.LoadObjCSelf(), ivar, 0) in emitStructGetterCall()
587 CharUnits size = CGF.getContext().getTypeSizeInChars(ivar->getType()); in emitStructGetterCall()
675 ObjCIvarDecl *ivar = propImpl->getPropertyIvarDecl(); in PropertyImplStrategy() local
676 QualType ivarType = ivar->getType(); in PropertyImplStrategy()
731 if (ivar->isBitField()) { in PropertyImplStrategy()
836 ObjCIvarDecl *ivar, in emitCPPObjectAtomicGetterCall() argument
848 CGF.LoadObjCSelf(), ivar, 0).getPointer(); in emitCPPObjectAtomicGetterCall()
875 ObjCIvarDecl *ivar = propImpl->getPropertyIvarDecl(); in generateObjCGetterBody() local
877 ivar, AtomicHelperFn); in generateObjCGetterBody()
[all …]

123456