Hello people in the Clang mailing list,
Sylvain (sdefresne@) and I (asamidoi@) are working on cleaning up Objective-C's properties in Chrome for iOS [
crbug].
We would like to show warning messages when a developer uses an `assign` attribute to a property pointing to an Objective-C object. Because, under the ARC environment, this property is treated as a `__unsafe_unretained` variable and it potentially becomes a dangling pointer.
```
@property (assign) NSSomeObject* object; // --> WARNING to suggest using strong/weak instead.
@property (assign) CXXSomeObject* object2; // --> OK because it's a C++ object. ARC doesn't manage C++ objects.
@property (assign) Bool b; // --> OK because it's a primitive type.
```
We considered updating AyeAye Analyzer to show warnings on Gerrit but the analyzer doesn't have the semantic information.