Home
last modified time | relevance | path

Searched refs:ObjCPropertyDecl (Results 1 – 25 of 70) 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]
Dprint-type.m11 // CHECK: ObjCPropertyDecl=x:2:25 [readonly,] [type=id] [typekind=ObjCId] [canonicaltype=id] [canon…
19 // CHECK: ObjCPropertyDecl=classProp:7:23 [class,] [type=int] [typekind=Int] [isPOD=1]
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.cpp137 const ObjCPropertyDecl *Prop) in WeakObjectProfileTy()
156 const ObjCPropertyDecl *Prop) { in recordUseOfWeak()
203 if (const ObjCPropertyDecl *Prop = MD->findPropertyDecl()) { in markSafeWeakUse()
/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/StaticAnalyzer/Checkers/
DCheckObjCDealloc.cpp70 const ObjCPropertyDecl **PD) { in isSynthesizedRetainableProperty()
163 const ObjCPropertyDecl *
570 const ObjCPropertyDecl *PropDecl = PropImpl->getPropertyDecl(); in diagnoseMissingReleases()
572 assert(PropDecl->getSetterKind() == ObjCPropertyDecl::Copy || in diagnoseMissingReleases()
573 PropDecl->getSetterKind() == ObjCPropertyDecl::Retain); in diagnoseMissingReleases()
578 if (PropDecl->getSetterKind() == ObjCPropertyDecl::Retain) in diagnoseMissingReleases()
670 const ObjCPropertyDecl *PropDecl = findShadowedPropertyDecl(PropImpl); in diagnoseExtraRelease()
685 assert(PropDecl->getSetterKind() == ObjCPropertyDecl::Weak || in diagnoseExtraRelease()
686 (PropDecl->getSetterKind() == ObjCPropertyDecl::Assign && in diagnoseExtraRelease()
701 if (PropDecl->getSetterKind() == ObjCPropertyDecl::Weak) in diagnoseExtraRelease()
[all …]
DIvarInvalidationChecker.cpp60 typedef llvm::DenseMap<const ObjCPropertyDecl*,
63 const ObjCPropertyDecl*> IvarToPropMapTy;
193 const ObjCPropertyDecl *Prop,
301 const ObjCPropertyDecl *Prop, in findPropertyBackingIvar()
349 const ObjCPropertyDecl *PD = IvarToPopertyMap.lookup(IvarDecl); in printIvar()
388 const ObjCPropertyDecl *PD = I->second; in visit()
398 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit()
620 const ObjCPropertyDecl *PD = PA->getExplicitProperty(); in checkObjCPropertyRefExpr()
622 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
DDirectIvarAssignment.cpp56 const ObjCPropertyDecl*> IvarToPropertyMapTy;
95 static const ObjCIvarDecl *findPropertyBackingIvar(const ObjCPropertyDecl *PD, in findPropertyBackingIvar()
179 const ObjCPropertyDecl *PD = I->second; in VisitBinaryOperator()
/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()
169 if (ObjCPropertyDecl *PD = ObjCPropertyDecl::findPropertyDecl(Ext, in findPropertyDecl()
176 ObjCPropertyDecl *classProp = nullptr; in findPropertyDecl()
179 if (ObjCPropertyDecl *PD = dyn_cast<ObjCPropertyDecl>(*I)) { in findPropertyDecl()
202 ObjCPropertyDecl::getDefaultSynthIvarName(ASTContext &Ctx) const { in getDefaultSynthIvarName()
213 ObjCPropertyDecl *ObjCContainerDecl::FindPropertyDeclaration( in FindPropertyDeclaration()
232 if (ObjCPropertyDecl *PD = in FindPropertyDeclaration()
[all …]
DDeclPrinter.cpp88 void VisitObjCPropertyDecl(ObjCPropertyDecl *D);
1238 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl()
1239 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1241 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1247 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1251 ObjCPropertyDecl::OBJC_PR_readonly) { in VisitObjCPropertyDecl()
1256 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl()
1261 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl()
1267 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_assign) { in VisitObjCPropertyDecl()
1273 ObjCPropertyDecl::OBJC_PR_readwrite) { in VisitObjCPropertyDecl()
[all …]
DASTDumper.cpp492 void VisitObjCPropertyDecl(const ObjCPropertyDecl *D);
1665 void ASTDumper::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) { in VisitObjCPropertyDecl()
1669 if (D->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1671 else if (D->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1674 ObjCPropertyDecl::PropertyAttributeKind Attrs = D->getPropertyAttributes(); in VisitObjCPropertyDecl()
1675 if (Attrs != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1676 if (Attrs & ObjCPropertyDecl::OBJC_PR_readonly) in VisitObjCPropertyDecl()
1678 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in VisitObjCPropertyDecl()
1680 if (Attrs & ObjCPropertyDecl::OBJC_PR_readwrite) in VisitObjCPropertyDecl()
1682 if (Attrs & ObjCPropertyDecl::OBJC_PR_retain) in VisitObjCPropertyDecl()
[all …]
/external/clang/test/SemaObjC/
Dproperty-atomic-bool.m7 // CHECK: ObjCPropertyDecl {{.*}} p '_Atomic(_Bool)' {{.*}} nonatomic
12 // CHECK: ObjCPropertyDecl {{.*}} p 'AtomicBool':'_Atomic(_Bool)' {{.*}} nonatomic
18 // CHECK: ObjCPropertyDecl {{.*}} p '_Atomic(_Bool)'
24 // CHECK: ObjCPropertyDecl {{.*}} p 'AtomicBool':'_Atomic(_Bool)'
/external/clang/include/clang/AST/
DDeclObjC.h31 class ObjCPropertyDecl; variable
457 const ObjCPropertyDecl *findPropertyDecl(bool CheckOverrides = true) const;
699 class ObjCPropertyDecl : public NamedDecl {
748 ObjCPropertyDecl(DeclContext *DC, SourceLocation L, IdentifierInfo *Id, in ObjCPropertyDecl() function
763 static ObjCPropertyDecl *Create(ASTContext &C, DeclContext *DC,
771 static ObjCPropertyDecl *CreateDeserialized(ASTContext &C, unsigned ID);
889 static ObjCPropertyDecl *findPropertyDecl(const DeclContext *DC,
917 typedef specific_decl_iterator<ObjCPropertyDecl> prop_iterator;
918 typedef llvm::iterator_range<specific_decl_iterator<ObjCPropertyDecl>>
929 typedef filtered_decl_iterator<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.cpp386 static const ObjCIvarDecl *findBackingIvar(const ObjCPropertyDecl *Prop) { in findBackingIvar()
426 const ObjCPropertyDecl *Prop) { in createObjCPropertyGetter()
433 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_weak) in createObjCPropertyGetter()
496 const ObjCPropertyDecl *Prop = D->findPropertyDecl(); in getBody()
DBodyFarm.h28 class ObjCPropertyDecl; variable

123