[PATCH] D44539: [Sema][Objective-C] Add check to warn when property of objc type has assign attribute

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 22 11:30:05 PDT 2018


rjmccall added a comment.

We added the `unsafe_unretained` property attribute as part of ARC because we were introducing `__unsafe_retained` as a type qualifier and we wanted all the type qualifiers to have corresponding attribute spellings.  `assign` is the much-older attribute, and its non-owning behavior was widely understood.  In fact, we briefly considered naming the qualifier `__assign`, but we quickly decided that that we wanted a more explicit name for the ARC age.

I like the idea of this warning, but I need to float it to our internal Objective-C language group before we can accept it.


Repository:
  rC Clang

https://reviews.llvm.org/D44539





More information about the cfe-commits mailing list