• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/ARCMigrate/

Lines Matching refs:props

85       PropsTy &props = AtProps[RawLoc];
86 props.push_back(Prop);
121 PropsTy &props = findAtLoc->second;
122 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
134 PropsTy &props = I->second;
135 if (!getPropertyType(props)->isObjCRetainableType())
137 if (hasIvarWithExplicitARCOwnership(props))
141 rewriteProperty(props, atLoc);
147 PropsTy &props, SourceLocation atLoc,
150 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)
162 return removeAssignForDefaultStrong(props, atLoc);
164 return rewriteAssign(props, atLoc);
166 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc);
170 void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
171 ObjCPropertyDecl::PropertyAttributeKind propAttrs = getPropertyAttrs(props);
181 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc);
184 bool HasIvarAssignedAPlusOneObject = hasIvarAssignedAPlusOneObject(props);
188 return doPropAction(PropAction_AssignRemoved, props, atLoc);
189 return doPropAction(PropAction_AssignRewritten, props, atLoc);
193 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
196 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc);
199 void removeAssignForDefaultStrong(PropsTy &props,
205 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
214 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
215 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props),
218 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
225 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
230 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " :
243 void maybeAddWeakOrUnsafeUnretainedAttr(PropsTy &props,
245 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props),
253 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
304 bool hasIvarAssignedAPlusOneObject(PropsTy &props) const {
305 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
315 bool hasIvarWithExplicitARCOwnership(PropsTy &props) const {
319 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I) {
333 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
336 if (props.empty())
345 QualType getPropertyType(PropsTy &props) const {
346 assert(!props.empty());
347 QualType ty = props[0].PropD->getType().getUnqualifiedType();
350 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)
358 getPropertyAttrs(PropsTy &props) const {
359 assert(!props.empty());
361 attrs = props[0].PropD->getPropertyAttributesAsWritten();
364 for (PropsTy::iterator I = props.begin(), E = props.end(); I != E; ++I)