summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-02-09 07:13:16 +0000
committerTed Kremenek <kremenek@apple.com>2013-02-09 07:13:16 +0000
commit7ee25676a50967e28baed5ec47adaaa9721899e9 (patch)
tree335edd843ae7ba3a065cf54faca16964993c5380 /clang/lib
parent6c29cb3b7a233e7ddd5e48b348078eb2af91473a (diff)
downloadbcm5719-llvm-7ee25676a50967e28baed5ec47adaaa9721899e9.tar.gz
bcm5719-llvm-7ee25676a50967e28baed5ec47adaaa9721899e9.zip
QoI: -Wreadonly-iboutlet-property should have the warning's location on the property.
There's no need to refer to the @implementation at all. Fixes <rdar://problem/13186515> llvm-svn: 174802
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index da7b4729b11..298bad8efbb 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/lib/Sema/SemaObjCProperty.cpp
@@ -861,8 +861,8 @@ Decl *Sema::ActOnPropertyImplDecl(Scope *S,
}
if (!ReadWriteProperty) {
- Diag(IC->getLocation(), diag::warn_auto_readonly_iboutlet_property);
- Diag(property->getLocation(), diag::note_property_declare);
+ Diag(property->getLocation(), diag::warn_auto_readonly_iboutlet_property)
+ << property->getName();
SourceLocation readonlyLoc;
if (LocPropertyAttribute(Context, "readonly",
property->getLParenLoc(), readonlyLoc)) {
OpenPOWER on IntegriCloud