Home
last modified time | relevance | path

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

12345

/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
Ddebug-info-property-class-extension.m7 // The interesting bit is that when the ivar debug info is generated, the corresponding
9 // declaration and from the ivar doesn't match, this will end up with two DIObjCProperty
32 // generate debug info for the property via the backing ivar.
/external/clang/test/SemaObjC/
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
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 …]
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-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…
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; }
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}}
Dobjc-buffered-methods.m22 - (int) func { return prop; } // compiles - synthesized ivar will be accessible here.
23 - (int)get_g { return global; } // No warning here - synthesized ivar will be accessible here.
/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/Analysis/
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
/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
Drewrite-modern-atautoreleasepool.mm12 id ivar;
23 return 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()
677 ObjCIvarDecl *ivar = propImpl->getPropertyIvarDecl(); in PropertyImplStrategy() local
678 QualType ivarType = ivar->getType(); in PropertyImplStrategy()
733 if (ivar->isBitField()) { in PropertyImplStrategy()
838 ObjCIvarDecl *ivar, in emitCPPObjectAtomicGetterCall() argument
850 CGF.LoadObjCSelf(), ivar, 0).getPointer(); in emitCPPObjectAtomicGetterCall()
879 ObjCIvarDecl *ivar = propImpl->getPropertyIvarDecl(); in generateObjCGetterBody() local
881 ivar, AtomicHelperFn); in generateObjCGetterBody()
[all …]
/external/clang/test/PCH/
Dobjcxx-ivar-class.mm2 // RUN: %clang_cc1 -include %S/objcxx-ivar-class.h -triple %itanium_abi_triple %s -emit-llvm -o - |…
5 …lang_cc1 -x objective-c++-header -triple %itanium_abi_triple -emit-pch -o %t %S/objcxx-ivar-class.h
/external/svox/pico/lib/
Dpicocep.c967 picoos_int32 mean, ivar; in makeWUWandWUm() local
1015 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR, in makeWUWandWUm()
1017 … prev_diag0 = cep->diag0[i] = ivar << 2; /* multiply ivar by 4 (4 used to be first entry of xsq) */ in makeWUWandWUm()
1026 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR, in makeWUWandWUm()
1028 cep->diag0[i] += xsq[j] * ivar; in makeWUWandWUm()
1040 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR, in makeWUWandWUm()
1042 cep->diag0[i] += xsq[numd + j] * ivar; in makeWUWandWUm()
1110 ivar = getFromPdf(pdf, vecstart, cepnum, PICOCEP_WANTIVAR, in makeWUWandWUm()
1112 cep->diag2[i] -= (ivar + 2) / 4; in makeWUWandWUm()
1139 picoos_int32 mean = 0, ivar = 0; in getFromPdf() local
[all …]
/external/clang/test/Index/
Dindex-decls.m60 // CHECK: [indexDeclaration]: kind: objc-ivar | name: _prop | {{.*}} | loc: 11:20
64 // CHECK: [indexDeclaration]: kind: objc-ivar | name: _auto_prop | {{.*}} | loc: 20:33
65 // CHECK: [indexEntityReference]: kind: objc-ivar | name: _auto_prop | {{.*}} | loc: 25:3

12345