Home
last modified time | relevance | path

Searched refs:ObjCPropertyDecl (Results 1 – 25 of 66) 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 …]
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)
Dannotate-tokens.m331 // CHECK: Punctuation: "@" [56:1 - 56:2] ObjCPropertyDecl=aPropOutlet:56:26
332 // CHECK: Keyword: "property" [56:2 - 56:10] ObjCPropertyDecl=aPropOutlet:56:26
334 // CHECK: Keyword: "int" [56:20 - 56:23] ObjCPropertyDecl=aPropOutlet:56:26
335 // CHECK: Punctuation: "*" [56:24 - 56:25] ObjCPropertyDecl=aPropOutlet:56:26
336 // CHECK: Identifier: "aPropOutlet" [56:26 - 56:37] ObjCPropertyDecl=aPropOutlet:56:26
491 // CHECK: Punctuation: "@" [110:1 - 110:2] ObjCPropertyDecl=foo:110:33
492 // CHECK: Keyword: "property" [110:2 - 110:10] ObjCPropertyDecl=foo:110:33
493 // CHECK: Punctuation: "(" [110:11 - 110:12] ObjCPropertyDecl=foo:110:33
494 // CHECK: Keyword: "readonly" [110:12 - 110:20] ObjCPropertyDecl=foo:110:33
495 // CHECK: Punctuation: "," [110:20 - 110:21] ObjCPropertyDecl=foo:110:33
[all …]
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 Extent=[16:1 - 16:28]
68 // CHECK: properties-class-extensions.m:19:26: ObjCPropertyDecl=bar:19:26 Extent=[19:1 - 19:29]
76 // CHECK: properties-class-extensions.m:26:39: ObjCPropertyDecl=Rdar8467189_Bar:26:39 Extent=[26:1 …
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 Extent=[31:1 …
93 // CHECK: properties-class-extensions.m:38:34: ObjCPropertyDecl=qux:38:34 Extent=[38:1 - 38:37]
Dprint-type.m8 // CHECK: ObjCPropertyDecl=x:2:25 [type=id] [typekind=ObjCId] [canonicaltype=id] [canonicaltypekind…
/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()
65 static void checkARCPropertyDecl(Sema &S, ObjCPropertyDecl *property) { in checkARCPropertyDecl()
68 ObjCPropertyDecl::PropertyAttributeKind propertyKind in checkARCPropertyDecl()
83 ObjCPropertyDecl::PropertyAttributeKind attr; in checkARCPropertyDecl()
[all …]
DScopeInfo.cpp107 const ObjCPropertyDecl *Prop) in WeakObjectProfileTy()
126 const ObjCPropertyDecl *Prop) { in recordUseOfWeak()
165 if (const ObjCPropertyDecl *Prop = MD->findPropertyDecl()) { in markSafeWeakUse()
DDelayedDiagnostic.cpp25 const ObjCPropertyDecl *ObjCProperty, in makeDeprecation()
/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()
121 ObjCPropertyDecl *PD = PID->getPropertyDecl(); in TraverseObjCMethodDecl()
124 ObjCPropertyDecl::PropertyAttributeKind AttrKind = in TraverseObjCMethodDecl()
127 (ObjCPropertyDecl::OBJC_PR_retain | in TraverseObjCMethodDecl()
128 ObjCPropertyDecl::OBJC_PR_copy | in TraverseObjCMethodDecl()
129 ObjCPropertyDecl::OBJC_PR_strong)) in TraverseObjCMethodDecl()
177 for (llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*>::iterator in isZeroingPropIvar()
208 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()
224 typedef llvm::TinyPtrVector<ObjCPropertyDecl *> IndivPropsTy;
239 SmallVector<std::pair<AttributedTypeLoc, ObjCPropertyDecl *>, 4> ATLs; in checkAllAtProps()
241 ObjCPropertyDecl::PropertyAttributeKind in checkAllAtProps()
242 Attrs = ObjCPropertyDecl::OBJC_PR_noattr; in checkAllAtProps()
245 ObjCPropertyDecl *PD = *PI; in checkAllAtProps()
284 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in checkAllAtProps()
304 std::vector<ObjCPropertyDecl *> &AllProps) { in checkAllProps()
[all …]
DTransProperties.cpp60 ObjCPropertyDecl *PropD;
64 PropData(ObjCPropertyDecl *propD) : PropD(propD), IvarD(0), ImplD(0) { } in PropData()
108 ObjCPropertyDecl *propD = implD->getPropertyDecl(); in doTransform()
195 ObjCPropertyDecl::PropertyAttributeKind propAttrs = getPropertyAttrs(props); in rewriteProperty()
197 if (propAttrs & (ObjCPropertyDecl::OBJC_PR_copy | in rewriteProperty()
198 ObjCPropertyDecl::OBJC_PR_unsafe_unretained | in rewriteProperty()
199 ObjCPropertyDecl::OBJC_PR_strong | in rewriteProperty()
200 ObjCPropertyDecl::OBJC_PR_weak)) in rewriteProperty()
203 if (propAttrs & ObjCPropertyDecl::OBJC_PR_retain) { in rewriteProperty()
210 if (propAttrs & ObjCPropertyDecl::OBJC_PR_assign) { in rewriteProperty()
[all …]
/external/clang/include/clang/AST/
DASTMutationListener.h29 class ObjCPropertyDecl; variable
77 virtual void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop, in AddedObjCPropertyInClassExtension()
78 const ObjCPropertyDecl *OrigProp, in AddedObjCPropertyInClassExtension()
DDeclObjC.h31 class ObjCPropertyDecl; variable
444 const ObjCPropertyDecl *findPropertyDecl(bool CheckOverrides = true) const;
502 typedef specific_decl_iterator<ObjCPropertyDecl> prop_iterator;
549 ObjCPropertyDecl *FindPropertyDeclaration(IdentifierInfo *PropertyId) const;
551 typedef llvm::DenseMap<IdentifierInfo*, ObjCPropertyDecl*> PropertyMap;
553 typedef llvm::SmallVector<ObjCPropertyDecl*, 8> PropertyDeclOrder;
1098 ObjCPropertyDecl
1957 class ObjCPropertyDecl : public NamedDecl {
2000 ObjCPropertyDecl(DeclContext *DC, SourceLocation L, IdentifierInfo *Id, in ObjCPropertyDecl() function
2012 static ObjCPropertyDecl *Create(ASTContext &C, DeclContext *DC,
[all …]
/external/clang/lib/AST/
DDeclObjC.cpp95 ObjCPropertyDecl *
96 ObjCPropertyDecl::findPropertyDecl(const DeclContext *DC, in findPropertyDecl()
109 if (ObjCPropertyDecl *PD = dyn_cast<ObjCPropertyDecl>(*I)) in findPropertyDecl()
116 ObjCPropertyDecl::getDefaultSynthIvarName(ASTContext &Ctx) const { in getDefaultSynthIvarName()
127 ObjCPropertyDecl *
136 if (ObjCPropertyDecl *PD = in FindPropertyDeclaration()
137 ObjCPropertyDecl::findPropertyDecl(cast<DeclContext>(this), PropertyId)) in FindPropertyDeclaration()
147 if (ObjCPropertyDecl *P = (*I)->FindPropertyDeclaration(PropertyId)) in FindPropertyDeclaration()
159 if (ObjCPropertyDecl *P = Cat->FindPropertyDeclaration(PropertyId)) in FindPropertyDeclaration()
167 if (ObjCPropertyDecl *P = (*I)->FindPropertyDeclaration(PropertyId)) in FindPropertyDeclaration()
[all …]
DDeclPrinter.cpp79 void VisitObjCPropertyDecl(ObjCPropertyDecl *D);
1049 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl()
1050 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1052 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1056 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1060 ObjCPropertyDecl::OBJC_PR_readonly) { in VisitObjCPropertyDecl()
1065 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl()
1070 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl()
1076 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_assign) { in VisitObjCPropertyDecl()
1082 ObjCPropertyDecl::OBJC_PR_readwrite) { in VisitObjCPropertyDecl()
[all …]
DASTDumper.cpp237 void VisitObjCPropertyDecl(const ObjCPropertyDecl *D);
1226 void ASTDumper::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) { in VisitObjCPropertyDecl()
1230 if (D->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1232 else if (D->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1235 ObjCPropertyDecl::PropertyAttributeKind Attrs = D->getPropertyAttributes(); in VisitObjCPropertyDecl()
1236 if (Attrs != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1237 if (Attrs & ObjCPropertyDecl::OBJC_PR_readonly) in VisitObjCPropertyDecl()
1239 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in VisitObjCPropertyDecl()
1241 if (Attrs & ObjCPropertyDecl::OBJC_PR_readwrite) in VisitObjCPropertyDecl()
1243 if (Attrs & ObjCPropertyDecl::OBJC_PR_retain) in VisitObjCPropertyDecl()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DDirectIvarAssignment.cpp63 const ObjCPropertyDecl*> IvarToPropertyMapTy;
100 static const ObjCIvarDecl *findPropertyBackingIvar(const ObjCPropertyDecl *PD, in findPropertyBackingIvar()
133 ObjCPropertyDecl *PD = *I; in checkASTDecl()
193 const ObjCPropertyDecl *PD = I->second; in VisitBinaryOperator()
DIvarInvalidationChecker.cpp59 typedef llvm::DenseMap<const ObjCPropertyDecl*,
62 const ObjCPropertyDecl*> IvarToPropMapTy;
193 const ObjCPropertyDecl *Prop,
317 const ObjCPropertyDecl *Prop, in findPropertyBackingIvar()
365 const ObjCPropertyDecl *PD = IvarToPopertyMap.lookup(IvarDecl); in printIvar()
404 const ObjCPropertyDecl *PD = I->second; in visit()
412 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit()
612 const ObjCPropertyDecl *PD = PA->getExplicitProperty(); in checkObjCPropertyRefExpr()
614 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
DCheckObjCDealloc.cpp53 const ObjCPropertyDecl *PD, in scan_ivar_release()
89 return PD->getSetterKind() != ObjCPropertyDecl::Assign; in scan_ivar_release()
230 const ObjCPropertyDecl *PD = I->getPropertyDecl(); in checkObjCDealloc()
239 bool requiresRelease = PD->getSetterKind() != ObjCPropertyDecl::Assign; in checkObjCDealloc()
/external/clang/include/clang/Sema/
DDelayedDiagnostic.h127 const ObjCPropertyDecl *ObjCProperty,
197 const ObjCPropertyDecl *getObjCProperty() const { in getObjCProperty()
206 const ObjCPropertyDecl *ObjCProperty;
DScopeInfo.h28 class ObjCPropertyDecl; variable
171 WeakObjectProfileTy(const Expr *Base, const ObjCPropertyDecl *Property);
269 const ObjCPropertyDecl *Prop);
/external/clang/lib/Frontend/
DMultiplexConsumer.cpp103 virtual void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,
104 const ObjCPropertyDecl *OrigProp,
158 const ObjCPropertyDecl *Prop, in AddedObjCPropertyInClassExtension()
159 const ObjCPropertyDecl *OrigProp, in AddedObjCPropertyInClassExtension()
/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
/external/clang/tools/libclang/
DCXType.cpp154 if (const ObjCPropertyDecl *PD = dyn_cast<ObjCPropertyDecl>(D)) in clang_getCursorType()
663 } else if (const ObjCPropertyDecl *OPD = dyn_cast<ObjCPropertyDecl>(D)) in clang_getDeclObjCTypeEncoding()

123