| /NextBSD/contrib/llvm/tools/clang/lib/Sema/ |
| HD | SemaObjCProperty.cpp | 40 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 …]
|
| HD | ScopeInfo.cpp | 131 const ObjCPropertyDecl *Prop) in WeakObjectProfileTy() 150 const ObjCPropertyDecl *Prop) { in recordUseOfWeak() 197 if (const ObjCPropertyDecl *Prop = MD->findPropertyDecl()) { in markSafeWeakUse()
|
| HD | DelayedDiagnostic.cpp | 27 const ObjCPropertyDecl *ObjCProperty, in makeAvailability()
|
| HD | SemaPseudoObject.cpp | 547 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/ |
| HD | TransZeroOutPropsInDealloc.cpp | 32 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()
|
| HD | TransGCAttrs.cpp | 30 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 …]
|
| HD | TransProperties.cpp | 60 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/ |
| HD | DeclObjC.cpp | 102 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 …]
|
| HD | DeclPrinter.cpp | 88 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 …]
|
| HD | ASTDumper.cpp | 476 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/ |
| HD | ASTMutationListener.h | 31 class ObjCPropertyDecl; variable 103 virtual void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop, in AddedObjCPropertyInClassExtension() 104 const ObjCPropertyDecl *OrigProp, in AddedObjCPropertyInClassExtension()
|
| HD | DeclObjC.h | 31 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 …]
|
| HD | ExprObjC.h | 568 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/ |
| HD | IvarInvalidationChecker.cpp | 62 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()
|
| HD | CheckObjCDealloc.cpp | 32 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()
|
| HD | DirectIvarAssignment.cpp | 57 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/ |
| HD | DelayedDiagnostic.h | 129 const ObjCPropertyDecl *ObjCProperty, 203 const ObjCPropertyDecl *getObjCProperty() const { in getObjCProperty() 216 const ObjCPropertyDecl *ObjCProperty;
|
| HD | ScopeInfo.h | 35 class ObjCPropertyDecl; variable 204 WeakObjectProfileTy(const Expr *Base, const ObjCPropertyDecl *Property); 302 const ObjCPropertyDecl *Prop);
|
| /NextBSD/contrib/llvm/tools/clang/lib/Frontend/ |
| HD | MultiplexConsumer.cpp | 125 void AddedObjCPropertyInClassExtension(const ObjCPropertyDecl *Prop, 126 const ObjCPropertyDecl *OrigProp, 211 const ObjCPropertyDecl *Prop, in AddedObjCPropertyInClassExtension() 212 const ObjCPropertyDecl *OrigProp, in AddedObjCPropertyInClassExtension()
|
| HD | ASTConsumers.cpp | 450 ObjCPropertyDecl* OPD = cast<ObjCPropertyDecl>(I); in PrintDeclContext()
|
| /NextBSD/contrib/llvm/tools/clang/lib/Analysis/ |
| HD | BodyFarm.h | 28 class ObjCPropertyDecl; variable
|
| HD | BodyFarm.cpp | 390 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/ |
| HD | USRGeneration.cpp | 85 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/ |
| HD | CGObjC.cpp | 635 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/ |
| HD | RewriteModernObjC.cpp | 336 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 …]
|