Home
last modified time | relevance | path

Searched refs:ObjCPropertyDecl (Results 1 – 25 of 69) sorted by relevance

123

/external/clang/test/Index/
Darc-annotate.m16 // CHECK: Punctuation: "@" [2:1 - 2:2] ObjCPropertyDecl=property:2:34
17 // CHECK: Keyword: "property" [2:2 - 2:10] ObjCPropertyDecl=property:2:34
18 // CHECK: Punctuation: "(" [2:11 - 2:12] ObjCPropertyDecl=property:2:34
19 // CHECK: Keyword: "strong" [2:12 - 2:18] ObjCPropertyDecl=property:2:34
20 // CHECK: Punctuation: "," [2:18 - 2:19] ObjCPropertyDecl=property:2:34
21 // CHECK: Keyword: "nonatomic" [2:20 - 2:29] ObjCPropertyDecl=property:2:34
22 // CHECK: Punctuation: ")" [2:29 - 2:30] ObjCPropertyDecl=property:2:34
24 // CHECK: Identifier: "property" [2:34 - 2:42] ObjCPropertyDecl=property:2:34
26 // CHECK: Punctuation: "@" [3:1 - 3:2] ObjCPropertyDecl=second_property:3:32
27 // CHECK: Keyword: "property" [3:2 - 3:10] ObjCPropertyDecl=second_property:3:32
[all …]
Dcomplete-properties.m60 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText Prop0}
61 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText Prop1}
62 // CHECK-CC1: ObjCPropertyDecl:{ResultType float}{TypedText Prop2}
63 // CHECK-CC1: ObjCPropertyDecl:{ResultType id}{TypedText Prop3}
64 // CHECK-CC1: ObjCPropertyDecl:{ResultType id}{TypedText Prop4}
66 // CHECK-CC2: ObjCPropertyDecl:{ResultType int}{TypedText Prop0}
67 // CHECK-CC2: ObjCPropertyDecl:{ResultType int}{TypedText Prop1}
68 // CHECK-CC2-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop3}
69 // CHECK-CC2: ObjCPropertyDecl:{ResultType id}{TypedText Prop4}
76 // CHECK-CC4: ObjCPropertyDecl:{ResultType int}{TypedText Prop0}
[all …]
Dannotate-tokens.m343 // CHECK: Punctuation: "@" [56:1 - 56:2] ObjCPropertyDecl=aPropOutlet:56:26
344 // CHECK: Keyword: "property" [56:2 - 56:10] ObjCPropertyDecl=aPropOutlet:56:26
346 // CHECK: Keyword: "int" [56:20 - 56:23] ObjCPropertyDecl=aPropOutlet:56:26
347 // CHECK: Punctuation: "*" [56:24 - 56:25] ObjCPropertyDecl=aPropOutlet:56:26
348 // CHECK: Identifier: "aPropOutlet" [56:26 - 56:37] ObjCPropertyDecl=aPropOutlet:56:26
503 // CHECK: Punctuation: "@" [110:1 - 110:2] ObjCPropertyDecl=foo:110:33
504 // CHECK: Keyword: "property" [110:2 - 110:10] ObjCPropertyDecl=foo:110:33
505 // CHECK: Punctuation: "(" [110:11 - 110:12] ObjCPropertyDecl=foo:110:33
506 // CHECK: Keyword: "readonly" [110:12 - 110:20] ObjCPropertyDecl=foo:110:33
507 // CHECK: Punctuation: "," [110:20 - 110:21] ObjCPropertyDecl=foo:110:33
[all …]
Dcomplete-member-access.m46 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText prop1}
47 // CHECK-CC1: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp}
63 // CHECK-CC3: ObjCPropertyDecl:{ResultType int}{TypedText myProp} (35)
64 // CHECK-CC3: ObjCPropertyDecl:{ResultType int}{TypedText prop1} (35)
65 // CHECK-CC3: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp} (35)
74 // CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText myProp} (35)
75 // CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText prop1} (35)
76 // CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp} (35)
Dproperties-class-extensions.m51 // CHECK: properties-class-extensions.m:6:15: ObjCPropertyDecl=a:6:15 Extent=[6:1 - 6:16]
57 // CHECK: properties-class-extensions.m:9:15: ObjCPropertyDecl=b:9:15 Extent=[9:1 - 9:16]
63 // CHECK: properties-class-extensions.m:16:25: ObjCPropertyDecl=bar:16:25 [readonly,] Extent=[16:1 …
68 // CHECK: properties-class-extensions.m:19:26: ObjCPropertyDecl=bar:19:26 [readwrite,] Extent=[19:1…
76 // CHECK: properties-class-extensions.m:26:39: ObjCPropertyDecl=Rdar8467189_Bar:26:39 [readonly,] E…
81 // CHECK-NOT: properties-class-extensions.m:31:40: ObjCPropertyDecl=Rdar8467189_Bar:31:40 Extent=[3…
85 // CHECK: properties-class-extensions.m:31:40: ObjCPropertyDecl=Rdar8467189_Bar:31:40 [readwrite,] …
93 // CHECK: properties-class-extensions.m:38:34: ObjCPropertyDecl=qux:38:34 [assign,readwrite,] Exten…
Dget-cursor.m134 // CHECK-PROP: ObjCPropertyDecl=foo1:4:26
135 // CHECK-PROP: ObjCPropertyDecl=foo2:5:27
185 // CHECK-OBJCOPTIONAL: 104:23 ObjCPropertyDecl=propProp1:104:23 [retain,] Extent=[104:1 - 104:32]
187 // CHECK-OBJCOPTIONAL: 108:23 ObjCPropertyDecl=propProp2:108:23 (@optional) [retain,] Extent=[108:1…
189 // CHECK-OBJCOPTIONAL: 112:23 ObjCPropertyDecl=propProp3:112:23 [retain,] Extent=[112:1 - 112:32]
Dannotate-comments-objc.m113 // CHECK: annotate-comments-objc.m:23:50: ObjCPropertyDecl=property1_isdoxy1:{{.*}} property1_isdox…
114 // CHECK: annotate-comments-objc.m:24:50: ObjCPropertyDecl=property1_isdoxy2:{{.*}} property1_isdox…
115 // CHECK: annotate-comments-objc.m:25:50: ObjCPropertyDecl=property1_isdoxy3:{{.*}} property1_isdox…
116 // CHECK: annotate-comments-objc.m:26:50: ObjCPropertyDecl=property1_isdoxy4:{{.*}} property1_isdox…
Dcomplete-parameterized-classes.m51 // CHECK-CC1: ObjCPropertyDecl:{ResultType MyClsA *}{TypedText prop} (35)
62 // CHECK-CC4: ObjCPropertyDecl:{ResultType id}{TypedText prop} (35)
/external/clang/lib/Sema/
DSemaObjCProperty.cpp40 ObjCPropertyDecl::PropertyAttributeKind attrs, in getImpliedARCOwnership()
44 if (attrs & (ObjCPropertyDecl::OBJC_PR_retain | in getImpliedARCOwnership()
45 ObjCPropertyDecl::OBJC_PR_strong | in getImpliedARCOwnership()
46 ObjCPropertyDecl::OBJC_PR_copy)) { in getImpliedARCOwnership()
48 } else if (attrs & ObjCPropertyDecl::OBJC_PR_weak) { in getImpliedARCOwnership()
50 } else if (attrs & ObjCPropertyDecl::OBJC_PR_unsafe_unretained) { in getImpliedARCOwnership()
56 if (attrs & ObjCPropertyDecl::OBJC_PR_assign && in getImpliedARCOwnership()
67 ObjCPropertyDecl *property) { in checkPropertyDeclWithOwnership()
70 ObjCPropertyDecl::PropertyAttributeKind propertyKind in checkPropertyDeclWithOwnership()
84 ObjCPropertyDecl::PropertyAttributeKind attr; in checkPropertyDeclWithOwnership()
[all …]
DScopeInfo.cpp134 const ObjCPropertyDecl *Prop) in WeakObjectProfileTy()
153 const ObjCPropertyDecl *Prop) { in recordUseOfWeak()
200 if (const ObjCPropertyDecl *Prop = MD->findPropertyDecl()) { in markSafeWeakUse()
DDelayedDiagnostic.cpp27 const ObjCPropertyDecl *ObjCProperty, in makeAvailability()
/external/clang/lib/ARCMigrate/
DTransZeroOutPropsInDealloc.cpp32 llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*> SynthesizedProperties;
58 for (llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*>::iterator in VisitObjCMessageExpr()
61 ObjCPropertyDecl *PropDecl = P->first; in VisitObjCMessageExpr()
119 ObjCPropertyDecl *PD = PID->getPropertyDecl(); in TraverseObjCMethodDecl()
122 ObjCPropertyDecl::PropertyAttributeKind AttrKind = in TraverseObjCMethodDecl()
125 (ObjCPropertyDecl::OBJC_PR_retain | in TraverseObjCMethodDecl()
126 ObjCPropertyDecl::OBJC_PR_copy | in TraverseObjCMethodDecl()
127 ObjCPropertyDecl::OBJC_PR_strong)) in TraverseObjCMethodDecl()
175 for (llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*>::iterator in isZeroingPropIvar()
206 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar()
DTransGCAttrs.cpp30 std::vector<ObjCPropertyDecl *> &AllProps;
35 std::vector<ObjCPropertyDecl *> &AllProps) in GCAttrsCollector()
52 if (ObjCPropertyDecl *PropD = dyn_cast<ObjCPropertyDecl>(D)) { in TraverseDecl()
220 typedef llvm::TinyPtrVector<ObjCPropertyDecl *> IndivPropsTy;
235 SmallVector<std::pair<AttributedTypeLoc, ObjCPropertyDecl *>, 4> ATLs; in checkAllAtProps()
237 ObjCPropertyDecl::PropertyAttributeKind in checkAllAtProps()
238 Attrs = ObjCPropertyDecl::OBJC_PR_noattr; in checkAllAtProps()
241 ObjCPropertyDecl *PD = *PI; in checkAllAtProps()
280 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in checkAllAtProps()
300 std::vector<ObjCPropertyDecl *> &AllProps) { in checkAllProps()
[all …]
DTransProperties.cpp60 ObjCPropertyDecl *PropD;
64 PropData(ObjCPropertyDecl *propD) in PropData()
111 ObjCPropertyDecl *propD = implD->getPropertyDecl(); in doTransform()
172 ObjCPropertyDecl::PropertyAttributeKind propAttrs = getPropertyAttrs(props); in rewriteProperty()
174 if (propAttrs & (ObjCPropertyDecl::OBJC_PR_copy | in rewriteProperty()
175 ObjCPropertyDecl::OBJC_PR_unsafe_unretained | in rewriteProperty()
176 ObjCPropertyDecl::OBJC_PR_strong | in rewriteProperty()
177 ObjCPropertyDecl::OBJC_PR_weak)) in rewriteProperty()
180 if (propAttrs & ObjCPropertyDecl::OBJC_PR_retain) { in rewriteProperty()
187 if (propAttrs & ObjCPropertyDecl::OBJC_PR_assign) { in rewriteProperty()
[all …]
/external/clang/lib/AST/
DDeclObjC.cpp102 const ObjCPropertyDecl *Property) const { in HasUserDeclaredSetterMethod()
127 if (P->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readwrite) in HasUserDeclaredSetterMethod()
153 ObjCPropertyDecl *
154 ObjCPropertyDecl::findPropertyDecl(const DeclContext *DC, in findPropertyDecl()
168 if (ObjCPropertyDecl *PD = ObjCPropertyDecl::findPropertyDecl(Ext, in findPropertyDecl()
176 if (ObjCPropertyDecl *PD = dyn_cast<ObjCPropertyDecl>(*I)) in findPropertyDecl()
183 ObjCPropertyDecl::getDefaultSynthIvarName(ASTContext &Ctx) const { in getDefaultSynthIvarName()
194 ObjCPropertyDecl *ObjCContainerDecl::FindPropertyDeclaration( in FindPropertyDeclaration()
212 if (ObjCPropertyDecl *PD = in FindPropertyDeclaration()
213 ObjCPropertyDecl::findPropertyDecl(cast<DeclContext>(this), PropertyId)) in FindPropertyDeclaration()
[all …]
DDeclPrinter.cpp88 void VisitObjCPropertyDecl(ObjCPropertyDecl *D);
1220 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl()
1221 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1223 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1229 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1233 ObjCPropertyDecl::OBJC_PR_readonly) { in VisitObjCPropertyDecl()
1238 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl()
1243 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl()
1249 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_assign) { in VisitObjCPropertyDecl()
1255 ObjCPropertyDecl::OBJC_PR_readwrite) { in VisitObjCPropertyDecl()
[all …]
DASTDumper.cpp478 void VisitObjCPropertyDecl(const ObjCPropertyDecl *D);
1555 void ASTDumper::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) { in VisitObjCPropertyDecl()
1559 if (D->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1561 else if (D->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1564 ObjCPropertyDecl::PropertyAttributeKind Attrs = D->getPropertyAttributes(); in VisitObjCPropertyDecl()
1565 if (Attrs != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1566 if (Attrs & ObjCPropertyDecl::OBJC_PR_readonly) in VisitObjCPropertyDecl()
1568 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in VisitObjCPropertyDecl()
1570 if (Attrs & ObjCPropertyDecl::OBJC_PR_readwrite) in VisitObjCPropertyDecl()
1572 if (Attrs & ObjCPropertyDecl::OBJC_PR_retain) in VisitObjCPropertyDecl()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DIvarInvalidationChecker.cpp62 typedef llvm::DenseMap<const ObjCPropertyDecl*,
65 const ObjCPropertyDecl*> IvarToPropMapTy;
196 const ObjCPropertyDecl *Prop,
305 const ObjCPropertyDecl *Prop, in findPropertyBackingIvar()
353 const ObjCPropertyDecl *PD = IvarToPopertyMap.lookup(IvarDecl); in printIvar()
392 const ObjCPropertyDecl *PD = I->second; in visit()
400 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit()
623 const ObjCPropertyDecl *PD = PA->getExplicitProperty(); in checkObjCPropertyRefExpr()
625 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
DCheckObjCDealloc.cpp32 const ObjCPropertyDecl *PD, in scan_ivar_release()
68 return PD->getSetterKind() != ObjCPropertyDecl::Assign; in scan_ivar_release()
185 const ObjCPropertyDecl *PD = I->getPropertyDecl(); in checkObjCDealloc()
194 bool requiresRelease = PD->getSetterKind() != ObjCPropertyDecl::Assign; in checkObjCDealloc()
DDirectIvarAssignment.cpp57 const ObjCPropertyDecl*> IvarToPropertyMapTy;
96 static const ObjCIvarDecl *findPropertyBackingIvar(const ObjCPropertyDecl *PD, in findPropertyBackingIvar()
180 const ObjCPropertyDecl *PD = I->second; in VisitBinaryOperator()
/external/clang/include/clang/AST/
DDeclObjC.h31 class ObjCPropertyDecl; variable
462 const ObjCPropertyDecl *findPropertyDecl(bool CheckOverrides = true) const;
710 typedef specific_decl_iterator<ObjCPropertyDecl> prop_iterator;
711 typedef llvm::iterator_range<specific_decl_iterator<ObjCPropertyDecl>>
777 bool HasUserDeclaredSetterMethod(const ObjCPropertyDecl *P) const;
780 ObjCPropertyDecl *
783 typedef llvm::DenseMap<IdentifierInfo*, ObjCPropertyDecl*> PropertyMap;
785 typedef llvm::DenseMap<const ObjCProtocolDecl *, ObjCPropertyDecl*>
788 typedef llvm::SmallVector<ObjCPropertyDecl*, 8> PropertyDeclOrder;
1463 ObjCPropertyDecl
[all …]
/external/clang/include/clang/Sema/
DDelayedDiagnostic.h129 const ObjCPropertyDecl *ObjCProperty,
203 const ObjCPropertyDecl *getObjCProperty() const { in getObjCProperty()
216 const ObjCPropertyDecl *ObjCProperty;
/external/clang/lib/Analysis/
DBodyFarm.h28 class ObjCPropertyDecl; variable
DBodyFarm.cpp387 const ObjCPropertyDecl *Prop) { in createObjCPropertyGetter()
394 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_weak) in createObjCPropertyGetter()
457 const ObjCPropertyDecl *Prop = D->findPropertyDecl(); in getBody()
/external/clang/test/Misc/
Dast-dump-decl.m102 // CHECK: ObjCPropertyDecl{{.*}} foo 'int' assign readwrite atomic unsafe_unretained
105 // CHECK-NEXT: ObjCPropertyDecl{{.*}} bar 'int' assign readwrite atomic unsafe_unretained

123