Home
last modified time | relevance | path

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

123

/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaObjCProperty.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 …]
HDScopeInfo.cpp131 const ObjCPropertyDecl *Prop) in WeakObjectProfileTy()
150 const ObjCPropertyDecl *Prop) { in recordUseOfWeak()
197 if (const ObjCPropertyDecl *Prop = MD->findPropertyDecl()) { in markSafeWeakUse()
HDDelayedDiagnostic.cpp27 const ObjCPropertyDecl *ObjCProperty, in makeAvailability()
HDSemaPseudoObject.cpp547 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
548 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_weak) in isWeakProperty()
584 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
613 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
629 if (ObjCPropertyDecl *prop1 = IFace->FindPropertyDeclaration(AltMember)) in findSetter()
653 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
/NextBSD/contrib/llvm/tools/clang/lib/ARCMigrate/
HDTransZeroOutPropsInDealloc.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()
HDTransGCAttrs.cpp30 std::vector<ObjCPropertyDecl *> &AllProps;
35 std::vector<ObjCPropertyDecl *> &AllProps) in GCAttrsCollector()
52 if (ObjCPropertyDecl *PropD = dyn_cast<ObjCPropertyDecl>(D)) { in TraverseDecl()
222 typedef llvm::TinyPtrVector<ObjCPropertyDecl *> IndivPropsTy;
237 SmallVector<std::pair<AttributedTypeLoc, ObjCPropertyDecl *>, 4> ATLs; in checkAllAtProps()
239 ObjCPropertyDecl::PropertyAttributeKind in checkAllAtProps()
240 Attrs = ObjCPropertyDecl::OBJC_PR_noattr; in checkAllAtProps()
243 ObjCPropertyDecl *PD = *PI; in checkAllAtProps()
282 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in checkAllAtProps()
302 std::vector<ObjCPropertyDecl *> &AllProps) { in checkAllProps()
[all …]
HDTransProperties.cpp60 ObjCPropertyDecl *PropD;
64 PropData(ObjCPropertyDecl *propD) in PropData()
107 ObjCPropertyDecl *propD = implD->getPropertyDecl(); in doTransform()
190 ObjCPropertyDecl::PropertyAttributeKind propAttrs = getPropertyAttrs(props); in rewriteProperty()
192 if (propAttrs & (ObjCPropertyDecl::OBJC_PR_copy | in rewriteProperty()
193 ObjCPropertyDecl::OBJC_PR_unsafe_unretained | in rewriteProperty()
194 ObjCPropertyDecl::OBJC_PR_strong | in rewriteProperty()
195 ObjCPropertyDecl::OBJC_PR_weak)) in rewriteProperty()
198 if (propAttrs & ObjCPropertyDecl::OBJC_PR_retain) { in rewriteProperty()
205 if (propAttrs & ObjCPropertyDecl::OBJC_PR_assign) { in rewriteProperty()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDDeclObjC.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()
167 if (ObjCPropertyDecl *PD = dyn_cast<ObjCPropertyDecl>(*I)) in findPropertyDecl()
174 ObjCPropertyDecl::getDefaultSynthIvarName(ASTContext &Ctx) const { in getDefaultSynthIvarName()
185 ObjCPropertyDecl *ObjCContainerDecl::FindPropertyDeclaration( in FindPropertyDeclaration()
194 if (ObjCPropertyDecl *PD = in FindPropertyDeclaration()
195 ObjCPropertyDecl::findPropertyDecl(cast<DeclContext>(this), PropertyId)) in FindPropertyDeclaration()
204 if (ObjCPropertyDecl *P = I->FindPropertyDeclaration(PropertyId)) in FindPropertyDeclaration()
[all …]
HDDeclPrinter.cpp88 void VisitObjCPropertyDecl(ObjCPropertyDecl *D);
1182 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl()
1183 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1185 else if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1191 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1195 ObjCPropertyDecl::OBJC_PR_readonly) { in VisitObjCPropertyDecl()
1200 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_getter) { in VisitObjCPropertyDecl()
1205 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_setter) { in VisitObjCPropertyDecl()
1211 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_assign) { in VisitObjCPropertyDecl()
1217 ObjCPropertyDecl::OBJC_PR_readwrite) { in VisitObjCPropertyDecl()
[all …]
HDASTDumper.cpp476 void VisitObjCPropertyDecl(const ObjCPropertyDecl *D);
1545 void ASTDumper::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) { in VisitObjCPropertyDecl()
1549 if (D->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1551 else if (D->getPropertyImplementation() == ObjCPropertyDecl::Optional) in VisitObjCPropertyDecl()
1554 ObjCPropertyDecl::PropertyAttributeKind Attrs = D->getPropertyAttributes(); in VisitObjCPropertyDecl()
1555 if (Attrs != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1556 if (Attrs & ObjCPropertyDecl::OBJC_PR_readonly) in VisitObjCPropertyDecl()
1558 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in VisitObjCPropertyDecl()
1560 if (Attrs & ObjCPropertyDecl::OBJC_PR_readwrite) in VisitObjCPropertyDecl()
1562 if (Attrs & ObjCPropertyDecl::OBJC_PR_retain) in VisitObjCPropertyDecl()
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDASTMutationListener.h31 class ObjCPropertyDecl; variable
103 virtual void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop, in AddedObjCPropertyInClassExtension()
104 const ObjCPropertyDecl *OrigProp, in AddedObjCPropertyInClassExtension()
HDDeclObjC.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;
1468 ObjCPropertyDecl
[all …]
HDExprObjC.h568 ObjCPropertyRefExpr(ObjCPropertyDecl *PD, QualType t,
580 ObjCPropertyRefExpr(ObjCPropertyDecl *PD, QualType t,
628 ObjCPropertyDecl *getExplicitProperty() const {
630 return cast<ObjCPropertyDecl>(PropertyOrGetter.getPointer());
722 void setExplicitProperty(ObjCPropertyDecl *D, unsigned methRefFlags) {
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDIvarInvalidationChecker.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()
HDCheckObjCDealloc.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()
HDDirectIvarAssignment.cpp57 const ObjCPropertyDecl*> IvarToPropertyMapTy;
96 static const ObjCIvarDecl *findPropertyBackingIvar(const ObjCPropertyDecl *PD, in findPropertyBackingIvar()
180 const ObjCPropertyDecl *PD = I->second; in VisitBinaryOperator()
/NextBSD/contrib/llvm/tools/clang/include/clang/Sema/
HDDelayedDiagnostic.h129 const ObjCPropertyDecl *ObjCProperty,
203 const ObjCPropertyDecl *getObjCProperty() const { in getObjCProperty()
216 const ObjCPropertyDecl *ObjCProperty;
HDScopeInfo.h35 class ObjCPropertyDecl; variable
204 WeakObjectProfileTy(const Expr *Base, const ObjCPropertyDecl *Property);
302 const ObjCPropertyDecl *Prop);
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/
HDMultiplexConsumer.cpp125 void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop,
126 const ObjCPropertyDecl *OrigProp,
211 const ObjCPropertyDecl *Prop, in AddedObjCPropertyInClassExtension()
212 const ObjCPropertyDecl *OrigProp, in AddedObjCPropertyInClassExtension()
HDASTConsumers.cpp450 ObjCPropertyDecl* OPD = cast<ObjCPropertyDecl>(I); in PrintDeclContext()
/NextBSD/contrib/llvm/tools/clang/lib/Analysis/
HDBodyFarm.h28 class ObjCPropertyDecl; variable
HDBodyFarm.cpp390 const ObjCPropertyDecl *Prop) { in createObjCPropertyGetter()
397 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_weak) in createObjCPropertyGetter()
460 const ObjCPropertyDecl *Prop = D->findPropertyDecl(); in getBody()
/NextBSD/contrib/llvm/tools/clang/lib/Index/
HDUSRGeneration.cpp85 void VisitObjCPropertyDecl(const ObjCPropertyDecl *D);
398 void USRGenerator::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) { in VisitObjCPropertyDecl()
409 if (ObjCPropertyDecl *PD = D->getPropertyDecl()) { in VisitObjCPropertyImplDecl()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGObjC.cpp635 const ObjCPropertyDecl *prop = propImpl->getPropertyDecl(); in PropertyImplStrategy()
636 ObjCPropertyDecl::SetterKind setterKind = prop->getSetterKind(); in PropertyImplStrategy()
638 IsCopy = (setterKind == ObjCPropertyDecl::Copy); in PropertyImplStrategy()
656 if (setterKind == ObjCPropertyDecl::Retain) { in PropertyImplStrategy()
767 const ObjCPropertyDecl *PD = PID->getPropertyDecl(); in GenerateObjCGetter()
852 const ObjCPropertyDecl *prop = propImpl->getPropertyDecl(); in generateObjCGetterBody()
1114 const ObjCPropertyDecl *prop = propImpl->getPropertyDecl(); in generateObjCSetterBody()
1296 const ObjCPropertyDecl *PD = PID->getPropertyDecl(); in GenerateObjCSetter()
2894 const ObjCPropertyDecl *PD = PID->getPropertyDecl(); in GenerateObjCAtomicSetterCopyHelperFunction()
2895 if ((!(PD->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_atomic))) in GenerateObjCAtomicSetterCopyHelperFunction()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
HDRewriteModernObjC.cpp336 void RewriteProperty(ObjCPropertyDecl *prop);
919 ObjCPropertyDecl *PD, in mustSynthesizeSetterGetterMethod()
949 ObjCPropertyDecl *PD = PID->getPropertyDecl(); in RewritePropertyImplDecl()
955 bool GenGetProperty = !(Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) && in RewritePropertyImplDecl()
956 (Attributes & (ObjCPropertyDecl::OBJC_PR_retain | in RewritePropertyImplDecl()
957 ObjCPropertyDecl::OBJC_PR_copy)); in RewritePropertyImplDecl()
1016 bool GenSetProperty = Attributes & (ObjCPropertyDecl::OBJC_PR_retain | in RewritePropertyImplDecl()
1017 ObjCPropertyDecl::OBJC_PR_copy); in RewritePropertyImplDecl()
1036 if (Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) in RewritePropertyImplDecl()
1040 if (Attributes & ObjCPropertyDecl::OBJC_PR_copy) in RewritePropertyImplDecl()
[all …]

123