Home
last modified time | relevance | path

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

123

/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DObjCPropertyChecker.cpp26 : public Checker<check::ASTDecl<ObjCPropertyDecl>> {
27 void checkCopyMutable(const ObjCPropertyDecl *D, BugReporter &BR) const;
30 void checkASTDecl(const ObjCPropertyDecl *D, AnalysisManager &Mgr,
35 void ObjCPropertyChecker::checkASTDecl(const ObjCPropertyDecl *D, in checkASTDecl()
41 void ObjCPropertyChecker::checkCopyMutable(const ObjCPropertyDecl *D, in checkCopyMutable()
43 if (D->isReadOnly() || D->getSetterKind() != ObjCPropertyDecl::Copy) in checkCopyMutable()
H A DCheckObjCDealloc.cpp71 const ObjCPropertyDecl **PD) { in isSynthesizedRetainableProperty()
169 const ObjCPropertyDecl *
571 const ObjCPropertyDecl *PropDecl = PropImpl->getPropertyDecl(); in diagnoseMissingReleases()
573 assert(PropDecl->getSetterKind() == ObjCPropertyDecl::Copy || in diagnoseMissingReleases()
574 PropDecl->getSetterKind() == ObjCPropertyDecl::Retain); in diagnoseMissingReleases()
579 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 …]
H A DIvarInvalidationChecker.cpp60 typedef llvm::DenseMap<const ObjCPropertyDecl*,
63 const ObjCPropertyDecl*> IvarToPropMapTy;
192 const ObjCPropertyDecl *Prop,
300 const ObjCPropertyDecl *Prop, in findPropertyBackingIvar()
346 const ObjCPropertyDecl *PD = IvarToPopertyMap.lookup(IvarDecl); in printIvar()
382 for (const ObjCPropertyDecl *PD : llvm::make_second_range(PropMap)) { in visit()
392 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit()
605 const ObjCPropertyDecl *PD = PA->getExplicitProperty(); in checkObjCPropertyRefExpr()
607 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
H A DDirectIvarAssignment.cpp55 const ObjCPropertyDecl*> IvarToPropertyMapTy;
94 static const ObjCIvarDecl *findPropertyBackingIvar(const ObjCPropertyDecl *PD, in findPropertyBackingIvar()
180 const ObjCPropertyDecl *PD = I->second; in VisitBinaryOperator()
/src/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp29 std::vector<ObjCPropertyDecl *> &AllProps;
34 std::vector<ObjCPropertyDecl *> &AllProps) in GCAttrsCollector()
51 if (ObjCPropertyDecl *PropD = dyn_cast<ObjCPropertyDecl>(D)) { in TraverseDecl()
217 typedef llvm::TinyPtrVector<ObjCPropertyDecl *> IndivPropsTy;
232 SmallVector<std::pair<AttributedTypeLoc, ObjCPropertyDecl *>, 4> ATLs; in checkAllAtProps()
237 ObjCPropertyDecl *PD = *PI; in checkAllAtProps()
297 std::vector<ObjCPropertyDecl *> &AllProps) { in checkAllProps()
298 typedef llvm::TinyPtrVector<ObjCPropertyDecl *> IndivPropsTy; in checkAllProps()
302 ObjCPropertyDecl *PD = AllProps[i]; in checkAllProps()
321 std::vector<ObjCPropertyDecl *> AllProps; in traverseTU()
H A DTransZeroOutPropsInDealloc.cpp31 llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*> SynthesizedProperties;
57 for (llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*>::iterator in VisitObjCMessageExpr()
60 ObjCPropertyDecl *PropDecl = P->first; in VisitObjCMessageExpr()
118 ObjCPropertyDecl *PD = PID->getPropertyDecl(); in TraverseObjCMethodDecl()
172 for (llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*>::iterator in isZeroingPropIvar()
203 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar()
H A DTransProperties.cpp59 ObjCPropertyDecl *PropD;
63 PropData(ObjCPropertyDecl *propD) in PropData()
110 ObjCPropertyDecl *propD = implD->getPropertyDecl(); in doTransform()
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp66 ObjCPropertyDecl *property) { in checkPropertyDeclWithOwnership()
108 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop, in CheckPropertyAgainstProtocol()
116 if (ObjCPropertyDecl *ProtoProp = Proto->getProperty( in CheckPropertyAgainstProtocol()
194 ObjCPropertyDecl *Res = nullptr; in ActOnProperty()
234 if (ObjCPropertyDecl *SuperProp = Super->getProperty( in ActOnProperty()
337 ObjCPropertyDecl *OldProperty, in checkAtomicPropertyMismatch()
338 ObjCPropertyDecl *NewProperty, in checkAtomicPropertyMismatch()
349 auto isImplicitlyReadonlyAtomic = [](ObjCPropertyDecl *Property) -> bool { in checkAtomicPropertyMismatch()
404 ObjCPropertyDecl *SemaObjC::HandlePropertyInClassExtension( in HandlePropertyInClassExtension()
429 ObjCPropertyDecl *PIDecl = CCPrimary->FindPropertyVisibleInPrimaryClass( in HandlePropertyInClassExtension()
[all …]
H A DScopeInfo.cpp135 const ObjCPropertyDecl *Prop) in WeakObjectProfileTy()
154 const ObjCPropertyDecl *Prop) { in recordUseOfWeak()
201 if (const ObjCPropertyDecl *Prop = MD->findPropertyDecl()) { in markSafeWeakUse()
H A DDelayedDiagnostic.cpp29 const ObjCPropertyDecl *ObjCProperty, in makeAvailability()
H A DSemaAvailability.cpp360 if (isa<ObjCPropertyDecl>(D)) in createAttributeInsertion()
394 const ObjCPropertyDecl *ObjCProperty, in DoEmitAvailabilityWarning()
676 const ObjCPropertyDecl *ObjCProperty, in EmitAvailabilityWarning()
1071 const ObjCPropertyDecl *ObjCPDecl = nullptr; in DiagnoseAvailabilityOfDecl()
1073 if (const ObjCPropertyDecl *PD = MD->findPropertyDecl()) { in DiagnoseAvailabilityOfDecl()
H A DSemaAPINotes.cpp100 } else if (auto Property = dyn_cast<ObjCPropertyDecl>(D)) { in applyNullability()
389 } else if (auto Property = dyn_cast<ObjCPropertyDecl>(D)) { in ProcessAPINotes()
437 static void ProcessAPINotes(Sema &S, ObjCPropertyDecl *D, in ProcessAPINotes()
1001 if (auto Property = dyn_cast<ObjCPropertyDecl>(D)) { in ProcessAPINotes()
H A DSemaPseudoObject.cpp592 const ObjCPropertyDecl *Prop = RefExpr->getExplicitProperty(); in isWeakProperty()
629 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findGetter()
658 ObjCPropertyDecl *prop = RefExpr->getExplicitProperty(); in findSetter()
675 if (ObjCPropertyDecl *prop1 = IFace->FindPropertyDeclaration( in findSetter()
700 if (ObjCPropertyDecl *prop = RefExpr->getExplicitProperty()) { in DiagnoseUnsupportedPropertyUse()
/src/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp126 const ObjCPropertyDecl *Property) const { in HasUserDeclaredSetterMethod()
178 ObjCPropertyDecl *
179 ObjCPropertyDecl::findPropertyDecl(const DeclContext *DC, in findPropertyDecl()
194 if (ObjCPropertyDecl *PD = ObjCPropertyDecl::findPropertyDecl(Ext, in findPropertyDecl()
201 ObjCPropertyDecl *classProp = nullptr; in findPropertyDecl()
204 if (auto *PD = dyn_cast<ObjCPropertyDecl>(*I)) { in findPropertyDecl()
227 ObjCPropertyDecl::getDefaultSynthIvarName(ASTContext &Ctx) const { in getDefaultSynthIvarName()
236 ObjCPropertyDecl *ObjCContainerDecl::getProperty(const IdentifierInfo *Id, in getProperty()
239 if (auto *Prop = dyn_cast<ObjCPropertyDecl>(LookupResult)) { in getProperty()
250 ObjCPropertyDecl *ObjCContainerDecl::FindPropertyDeclaration( in FindPropertyDeclaration()
[all …]
H A DODRDiagsEmitter.cpp506 StringRef SecondModule, const ObjCPropertyDecl *FirstProp, in diagnoseSubMismatchObjCProperty()
507 const ObjCPropertyDecl *SecondProp) const { in diagnoseSubMismatchObjCProperty()
2096 cast<ObjCPropertyDecl>(FirstDecl), in diagnoseMismatch()
2097 cast<ObjCPropertyDecl>(SecondDecl))) in diagnoseMismatch()
2202 cast<ObjCPropertyDecl>(FirstDecl), in diagnoseMismatch()
2203 cast<ObjCPropertyDecl>(SecondDecl))) in diagnoseMismatch()
/src/contrib/llvm-project/clang/include/clang/AST/
H A DDeclObjC.h54 class ObjCPropertyDecl; variable
493 const ObjCPropertyDecl *findPropertyDecl(bool CheckOverrides = true) const;
730 class ObjCPropertyDecl : public NamedDecl {
776 ObjCPropertyDecl(DeclContext *DC, SourceLocation L, const IdentifierInfo *Id, in ObjCPropertyDecl() function
786 static ObjCPropertyDecl *Create(ASTContext &C, DeclContext *DC,
793 static ObjCPropertyDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID);
935 static ObjCPropertyDecl *findPropertyDecl(const DeclContext *DC,
962 using prop_iterator = specific_decl_iterator<ObjCPropertyDecl>;
964 llvm::iterator_range<specific_decl_iterator<ObjCPropertyDecl>>;
977 filtered_decl_iterator<ObjCPropertyDecl,
[all …]
H A DODRDiagsEmitter.h192 const ObjCPropertyDecl *FirstProp,
193 const ObjCPropertyDecl *SecondProp) const;
H A DASTMutationListener.h34 class ObjCPropertyDecl; variable
H A DExprObjC.h651 ObjCPropertyRefExpr(ObjCPropertyDecl *PD, QualType t, ExprValueKind VK, in ObjCPropertyRefExpr()
659 ObjCPropertyRefExpr(ObjCPropertyDecl *PD, QualType t, ExprValueKind VK, in ObjCPropertyRefExpr()
706 ObjCPropertyDecl *getExplicitProperty() const { in getExplicitProperty()
708 return cast<ObjCPropertyDecl>(PropertyOrGetter.getPointer()); in getExplicitProperty()
810 void setExplicitProperty(ObjCPropertyDecl *D, unsigned methRefFlags) { in setExplicitProperty()
/src/contrib/llvm-project/clang/include/clang/Sema/
H A DDelayedDiagnostic.h44 class ObjCPropertyDecl; variable
142 const ObjCPropertyDecl *ObjCProperty,
227 const ObjCPropertyDecl *getObjCProperty() const { in getObjCProperty()
240 const ObjCPropertyDecl *ObjCProperty;
H A DSemaObjC.h526 const ObjCPropertyDecl *&PDecl) const;
951 void ProcessPropertyDecl(ObjCPropertyDecl *property);
968 ObjCPropertyDecl *HandlePropertyInClassExtension(
977 ObjCPropertyDecl *
987 void DiagnosePropertyMismatch(ObjCPropertyDecl *Property,
988 ObjCPropertyDecl *SuperProperty,
992 bool DiagnosePropertyAccessorMismatch(ObjCPropertyDecl *PD,
H A DScopeInfo.h52 class ObjCPropertyDecl; variable
295 WeakObjectProfileTy(const Expr *Base, const ObjCPropertyDecl *Property);
423 const ObjCPropertyDecl *Prop);
H A DAttr.h49 isa<TypedefNameDecl>(D) || isa<ObjCPropertyDecl>(D); in hasDeclarator()
/src/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp746 static const ObjCIvarDecl *findBackingIvar(const ObjCPropertyDecl *Prop) { in findBackingIvar()
789 const ObjCPropertyDecl *Prop = nullptr; in createObjCPropertyGetter()
798 if (const ObjCPropertyDecl *Candidate = PI->getPropertyDecl()) { in createObjCPropertyGetter()
/src/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp140 const ObjCPropertyDecl *AssociatedProp = nullptr) { in handleObjCMethod()
523 bool VisitObjCPropertyDecl(const ObjCPropertyDecl *D) { in VisitObjCPropertyDecl()
539 ObjCPropertyDecl *PD = D->getPropertyDecl(); in VisitObjCPropertyImplDecl()

123