diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-10-06 23:47:58 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-10-06 23:47:58 +0000 |
commit | 9cd57a7061c83941ee189586cd27a42cd23a528c (patch) | |
tree | 9f0c34691331ed6500e835995bd8b12302b2b478 /clang/lib/Sema | |
parent | 8d50ea0f8264d01977581adb088b4493566baf30 (diff) | |
download | bcm5719-llvm-9cd57a7061c83941ee189586cd27a42cd23a528c.tar.gz bcm5719-llvm-9cd57a7061c83941ee189586cd27a42cd23a528c.zip |
objc: Improve on diagnostic when atomic proeprty is synthesized
on one accessor and user-provide with another.
llvm-svn: 141343
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/SemaObjCProperty.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp index 5a54f575805..13ccf82cf4f 100644 --- a/clang/lib/Sema/SemaObjCProperty.cpp +++ b/clang/lib/Sema/SemaObjCProperty.cpp @@ -1432,7 +1432,9 @@ Sema::AtomicPropertySetterGetterRules (ObjCImplDecl* IMPDecl, (GetterMethod ? GetterMethod->getLocation() : SetterMethod->getLocation()); Diag(MethodLoc, diag::warn_atomic_property_rule) - << Property->getIdentifier(); + << Property->getIdentifier() << (GetterMethod != 0) + << (SetterMethod != 0); + Diag(MethodLoc, diag::note_atomic_property_fixup_suggest); Diag(Property->getLocation(), diag::note_property_declare); } } |