Lines Matching refs:props

86       PropsTy &props = AtProps[RawLoc];
87 props.push_back(Prop);
118 PropsTy &props = findAtLoc->second;
119 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
131 PropsTy &props = I->second;
132 if (!getPropertyType(props)->isObjCRetainableType())
134 if (hasIvarWithExplicitARCOwnership(props))
138 rewriteProperty(props, atLoc);
149 PropsTy &props = I->second;
151 doActionForExtensionProp(props, atLoc);
157 PropsTy &props, SourceLocation atLoc,
160 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)
172 return removeAssignForDefaultStrong(props, atLoc);
174 return rewriteAssign(props, atLoc);
176 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc);
180 void doActionForExtensionProp(PropsTy &props, SourceLocation atLoc) {
182 I = ActionOnProp.find(props[0].PropD->getIdentifier());
186 doPropAction(I->second, props, atLoc, false);
189 void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
190 ObjCPropertyDecl::PropertyAttributeKind propAttrs = getPropertyAttrs(props);
200 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc);
203 bool HasIvarAssignedAPlusOneObject = hasIvarAssignedAPlusOneObject(props);
207 return doPropAction(PropAction_AssignRemoved, props, atLoc);
208 return doPropAction(PropAction_AssignRewritten, props, atLoc);
212 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
215 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc);
218 void removeAssignForDefaultStrong(PropsTy &props,
224 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
233 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
234 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props),
237 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
244 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
249 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " :
262 void maybeAddWeakOrUnsafeUnretainedAttr(PropsTy &props,
264 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props),
272 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
323 bool hasIvarAssignedAPlusOneObject(PropsTy &props) const {
324 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
334 bool hasIvarWithExplicitARCOwnership(PropsTy &props) const {
338 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
352 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
355 if (props.empty())
364 QualType getPropertyType(PropsTy &props) const {
365 assert(!props.empty());
366 QualType ty = props[0].PropD->getType().getUnqualifiedType();
369 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)
377 getPropertyAttrs(PropsTy &props) const {
378 assert(!props.empty());
380 attrs = props[0].PropD->getPropertyAttributesAsWritten();
383 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)