]> granicus.if.org Git - clang/commit
[objc] For the ARC error that is emitted when a synthesized property implementation
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 12 Dec 2012 22:48:25 +0000 (22:48 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 12 Dec 2012 22:48:25 +0000 (22:48 +0000)
commit135aa60c613bdcc0e8e237b12bf93cab04284419
tree477b413758618079be5d00b30c630b5641004603
parent9b629fcb8b2606886ed30630f8a896a8bf606518
[objc] For the ARC error that is emitted when a synthesized property implementation
has inconsistent ownership with the backing ivar, point the error location to the
ivar.

Pointing to the ivar (instead of the @synthesize) is better since this is where a fix is needed.
Also provide the location of @synthesize via a note.

This also fixes the problem where an auto-synthesized property would emit an error without
any location.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170039 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/ARCMigrate/TransProperties.cpp
lib/Sema/SemaObjCProperty.cpp
test/SemaObjC/arc-property-lifetime.m
test/SemaObjC/arc-property.m
test/SemaObjC/warn-direct-ivar-access.m
test/SemaObjC/weak-property.m