Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaObjCProperty.cpp120 if (ObjCPropertyDecl *ProtoProp = dyn_cast<ObjCPropertyDecl>(R[I])) { in CheckPropertyAgainstProtocol()
241 if (ObjCPropertyDecl *SuperProp = dyn_cast<ObjCPropertyDecl>(R[I])) { in ActOnProperty()
378 (ObjCPropertyDecl::OBJC_PR_atomic | ObjCPropertyDecl::OBJC_PR_nonatomic); in checkAtomicPropertyMismatch()
412 ObjCPropertyDecl *
622 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl()
630 if (ObjCPropertyDecl *prevDecl = ObjCPropertyDecl::findPropertyDecl( in CreatePropertyDecl()
833 static ObjCPropertyDecl *
1027 if (ObjCPropertyDecl *OrigProp = dyn_cast<ObjCPropertyDecl>(Found)) in hasWrittenStorageAttribute()
1116 if (ObjCPropertyDecl *ExtProp = dyn_cast<ObjCPropertyDecl>(R[0])) { in ActOnPropertyImplDecl()
1604 (ObjCPropertyDecl::OBJC_PR_retain | ObjCPropertyDecl::OBJC_PR_strong)); in DiagnosePropertyMismatch()
[all …]
H A DScopeInfo.cpp147 const ObjCPropertyDecl *Prop) in WeakObjectProfileTy()
166 const ObjCPropertyDecl *Prop) { in recordUseOfWeak()
213 if (const ObjCPropertyDecl *Prop = MD->findPropertyDecl()) { in markSafeWeakUse()
H A DDelayedDiagnostic.cpp30 const ObjCPropertyDecl *ObjCProperty, in makeAvailability()
H A DSemaPseudoObject.cpp594 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
595 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_weak) in isWeakProperty()
631 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
660 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
676 if (ObjCPropertyDecl *prop1 = IFace->FindPropertyDeclaration( in findSetter()
701 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A 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()
H A DTransGCAttrs.cpp30 std::vector<ObjCPropertyDecl *> &AllProps;
35 std::vector<ObjCPropertyDecl *> &AllProps) in GCAttrsCollector()
52 if (ObjCPropertyDecl *PropD = dyn_cast<ObjCPropertyDecl>(D)) { in TraverseDecl()
232 ObjCPropertyDecl::PropertyAttributeKind in checkAllAtProps()
233 Attrs = ObjCPropertyDecl::OBJC_PR_noattr; in checkAllAtProps()
236 ObjCPropertyDecl *PD = *PI; in checkAllAtProps()
275 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in checkAllAtProps()
301 ObjCPropertyDecl *PD = AllProps[i]; in checkAllProps()
303 (ObjCPropertyDecl::OBJC_PR_assign | in checkAllProps()
304 ObjCPropertyDecl::OBJC_PR_readonly)) { in checkAllProps()
[all …]
H A DTransProperties.cpp60 ObjCPropertyDecl *PropD;
64 PropData(ObjCPropertyDecl *propD) in PropData()
111 ObjCPropertyDecl *propD = implD->getPropertyDecl(); in doTransform()
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()
358 ObjCPropertyDecl::PropertyAttributeKind
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DObjCPropertyChecker.cpp27 : public Checker<check::ASTDecl<ObjCPropertyDecl>> {
28 void checkCopyMutable(const ObjCPropertyDecl *D, BugReporter &BR) const;
31 void checkASTDecl(const ObjCPropertyDecl *D, AnalysisManager &Mgr,
36 void ObjCPropertyChecker::checkASTDecl(const ObjCPropertyDecl *D, in checkASTDecl()
42 void ObjCPropertyChecker::checkCopyMutable(const ObjCPropertyDecl *D, in checkCopyMutable()
44 if (D->isReadOnly() || D->getSetterKind() != ObjCPropertyDecl::Copy) in checkCopyMutable()
H A DCheckObjCDealloc.cpp164 const ObjCPropertyDecl *
572 if (PropDecl->getSetterKind() == ObjCPropertyDecl::Retain) in diagnoseMissingReleases()
695 if (PropDecl->getSetterKind() == ObjCPropertyDecl::Weak) in diagnoseExtraRelease()
823 auto *ShadowedPropDecl = dyn_cast<ObjCPropertyDecl>(*I); in findShadowedPropertyDecl()
890 const ObjCPropertyDecl *PropDecl; in getDeallocReleaseRequirement()
894 ObjCPropertyDecl::SetterKind SK = PropDecl->getSetterKind(); in getDeallocReleaseRequirement()
899 case ObjCPropertyDecl::Retain: in getDeallocReleaseRequirement()
900 case ObjCPropertyDecl::Copy: in getDeallocReleaseRequirement()
909 case ObjCPropertyDecl::Weak: in getDeallocReleaseRequirement()
912 case ObjCPropertyDecl::Assign: in getDeallocReleaseRequirement()
[all …]
H A 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()
H A DDirectIvarAssignment.cpp56 const ObjCPropertyDecl*> IvarToPropertyMapTy;
95 static const ObjCIvarDecl *findPropertyBackingIvar(const ObjCPropertyDecl *PD, in findPropertyBackingIvar()
179 const ObjCPropertyDecl *PD = I->second; in VisitBinaryOperator()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDeclObjC.cpp125 const ObjCPropertyDecl *Property) const { in HasUserDeclaredSetterMethod()
176 ObjCPropertyDecl *
192 if (ObjCPropertyDecl *PD = ObjCPropertyDecl::findPropertyDecl(Ext, in findPropertyDecl()
199 ObjCPropertyDecl *classProp = nullptr; in findPropertyDecl()
255 if (ObjCPropertyDecl *PD = in FindPropertyDeclaration()
368 ObjCPropertyDecl *
379 if (ObjCPropertyDecl *PD = in FindPropertyVisibleInPrimaryClass()
1301 const ObjCPropertyDecl *
2217 void ObjCPropertyDecl::anchor() {} in anchor()
2219 ObjCPropertyDecl *ObjCPropertyDecl::Create(ASTContext &C, DeclContext *DC, in Create()
[all …]
H A DASTDumper.cpp1332 if (Attrs != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1333 if (Attrs & ObjCPropertyDecl::OBJC_PR_readonly) in VisitObjCPropertyDecl()
1335 if (Attrs & ObjCPropertyDecl::OBJC_PR_assign) in VisitObjCPropertyDecl()
1339 if (Attrs & ObjCPropertyDecl::OBJC_PR_retain) in VisitObjCPropertyDecl()
1341 if (Attrs & ObjCPropertyDecl::OBJC_PR_copy) in VisitObjCPropertyDecl()
1345 if (Attrs & ObjCPropertyDecl::OBJC_PR_atomic) in VisitObjCPropertyDecl()
1347 if (Attrs & ObjCPropertyDecl::OBJC_PR_weak) in VisitObjCPropertyDecl()
1349 if (Attrs & ObjCPropertyDecl::OBJC_PR_strong) in VisitObjCPropertyDecl()
1353 if (Attrs & ObjCPropertyDecl::OBJC_PR_class) in VisitObjCPropertyDecl()
1355 if (Attrs & ObjCPropertyDecl::OBJC_PR_getter) in VisitObjCPropertyDecl()
[all …]
H A DDeclPrinter.cpp96 void VisitObjCPropertyDecl(ObjCPropertyDecl *D);
1392 void DeclPrinter::VisitObjCPropertyDecl(ObjCPropertyDecl *PDecl) { in VisitObjCPropertyDecl()
1393 if (PDecl->getPropertyImplementation() == ObjCPropertyDecl::Required) in VisitObjCPropertyDecl()
1401 if (PDecl->getPropertyAttributes() != ObjCPropertyDecl::OBJC_PR_noattr) { in VisitObjCPropertyDecl()
1405 ObjCPropertyDecl::OBJC_PR_readonly) { in VisitObjCPropertyDecl()
1427 ObjCPropertyDecl::OBJC_PR_readwrite) { in VisitObjCPropertyDecl()
1442 if (PDecl->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_copy) { in VisitObjCPropertyDecl()
1448 ObjCPropertyDecl::OBJC_PR_nonatomic) { in VisitObjCPropertyDecl()
1453 ObjCPropertyDecl::OBJC_PR_atomic) { in VisitObjCPropertyDecl()
1459 ObjCPropertyDecl::OBJC_PR_nullability) { in VisitObjCPropertyDecl()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DDeclObjC.h55 class ObjCPropertyDecl; variable
729 class ObjCPropertyDecl : public NamedDecl {
811 static ObjCPropertyDecl *Create(ASTContext &C, DeclContext *DC,
999 filtered_decl_iterator<ObjCPropertyDecl,
1016 filtered_decl_iterator<ObjCPropertyDecl,
1099 ObjCPropertyDecl *
1105 ObjCPropertyDecl *>;
1801 ObjCPropertyDecl
2778 ObjCPropertyDecl *PropertyDecl;
2792 ObjCPropertyDecl *property, in ObjCPropertyImplDecl()
[all …]
H A DASTMutationListener.h34 class ObjCPropertyDecl; variable
H A DExprObjC.h611 ObjCPropertyRefExpr(ObjCPropertyDecl *PD, QualType t,
622 ObjCPropertyRefExpr(ObjCPropertyDecl *PD, QualType t,
670 ObjCPropertyDecl *getExplicitProperty() const {
672 return cast<ObjCPropertyDecl>(PropertyOrGetter.getPointer());
769 void setExplicitProperty(ObjCPropertyDecl *D, unsigned methRefFlags) {
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DDelayedDiagnostic.h45 class ObjCPropertyDecl; variable
146 const ObjCPropertyDecl *ObjCProperty,
231 const ObjCPropertyDecl *getObjCProperty() const { in getObjCProperty()
244 const ObjCPropertyDecl *ObjCProperty;
H A DScopeInfo.h51 class ObjCPropertyDecl; variable
268 WeakObjectProfileTy(const Expr *Base, const ObjCPropertyDecl *Property);
384 const ObjCPropertyDecl *Prop);
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/
H A DBodyFarm.h28 class ObjCPropertyDecl; variable
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DBodyFarm.cpp703 static const ObjCIvarDecl *findBackingIvar(const ObjCPropertyDecl *Prop) { in findBackingIvar()
743 const ObjCPropertyDecl *Prop) { in createObjCPropertyGetter()
750 if (Prop->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_weak) in createObjCPropertyGetter()
815 const ObjCPropertyDecl *Prop = D->findPropertyDecl(); in getBody()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Index/
H A DIndexDecl.cpp127 const ObjCPropertyDecl *AssociatedProp = nullptr) { in handleObjCMethod()
498 bool VisitObjCPropertyDecl(const ObjCPropertyDecl *D) { in VisitObjCPropertyDecl()
514 ObjCPropertyDecl *PD = D->getPropertyDecl(); in VisitObjCPropertyImplDecl()
H A DUSRGeneration.cpp94 void VisitObjCPropertyDecl(const ObjCPropertyDecl *D);
469 void USRGenerator::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) { in VisitObjCPropertyDecl()
480 if (ObjCPropertyDecl *PD = D->getPropertyDecl()) { in VisitObjCPropertyImplDecl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGObjC.cpp764 const ObjCPropertyDecl *prop = propImpl->getPropertyDecl(); in PropertyImplStrategy()
765 ObjCPropertyDecl::SetterKind setterKind = prop->getSetterKind(); in PropertyImplStrategy()
767 IsCopy = (setterKind == ObjCPropertyDecl::Copy); in PropertyImplStrategy()
785 if (setterKind == ObjCPropertyDecl::Retain) { in PropertyImplStrategy()
896 const ObjCPropertyDecl *PD = PID->getPropertyDecl(); in GenerateObjCGetter()
981 const ObjCPropertyDecl *prop = propImpl->getPropertyDecl(); in generateObjCGetterBody()
1253 const ObjCPropertyDecl *prop = propImpl->getPropertyDecl(); in generateObjCSetterBody()
1433 const ObjCPropertyDecl *PD = PID->getPropertyDecl(); in GenerateObjCSetter()
3410 const ObjCPropertyDecl *PD = PID->getPropertyDecl(); in GenerateObjCAtomicSetterCopyHelperFunction()
3411 if ((!(PD->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_atomic))) in GenerateObjCAtomicSetterCopyHelperFunction()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp336 void RewriteProperty(ObjCPropertyDecl *prop);
941 ObjCPropertyDecl *PD = PID->getPropertyDecl(); in RewritePropertyImplDecl()
1028 if (Attributes & ObjCPropertyDecl::OBJC_PR_nonatomic) in RewritePropertyImplDecl()
1032 if (Attributes & ObjCPropertyDecl::OBJC_PR_copy) in RewritePropertyImplDecl()
1123 void RewriteModernObjC::RewriteProperty(ObjCPropertyDecl *prop) { in RewriteProperty()
6374 ObjCPropertyDecl *PropDecl = Properties[i]; in Write_prop_list_t_initializer()
6912 SmallVector<ObjCPropertyDecl *, 8> ProtocolProperties( in RewriteObjCProtocolMetaData()
7038 ObjCPropertyDecl *PD = Prop->getPropertyDecl(); in RewriteObjCClassMetaData()
7080 SmallVector<ObjCPropertyDecl *, 8> ClassProperties( in RewriteObjCClassMetaData()
7288 ObjCPropertyDecl *PD = Prop->getPropertyDecl(); in RewriteObjCCategoryImplDecl()
[all …]

123