summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/DelayedDiagnostic.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-09-21 20:46:37 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-09-21 20:46:37 +0000
commit974c9480498680866e19a10dfb09fd2b96b864f3 (patch)
tree31e052f1ebf6f99f8b335ec64f39036b6f42e513 /clang/lib/Sema/DelayedDiagnostic.cpp
parent86792438dc07ea1521ad254261536ecabffceb8a (diff)
downloadbcm5719-llvm-974c9480498680866e19a10dfb09fd2b96b864f3.tar.gz
bcm5719-llvm-974c9480498680866e19a10dfb09fd2b96b864f3.zip
objective-C: when diagnosing deprecated/unavailable usage of
setter or getter backing a deprecated/unavailable property, also not location of the property. // rdar://12324295 llvm-svn: 164412
Diffstat (limited to 'clang/lib/Sema/DelayedDiagnostic.cpp')
-rw-r--r--clang/lib/Sema/DelayedDiagnostic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/DelayedDiagnostic.cpp b/clang/lib/Sema/DelayedDiagnostic.cpp
index 876f9d7a954..31004328855 100644
--- a/clang/lib/Sema/DelayedDiagnostic.cpp
+++ b/clang/lib/Sema/DelayedDiagnostic.cpp
@@ -22,6 +22,7 @@ using namespace sema;
DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc,
const NamedDecl *D,
const ObjCInterfaceDecl *UnknownObjCClass,
+ const ObjCPropertyDecl *ObjCProperty,
StringRef Msg) {
DelayedDiagnostic DD;
DD.Kind = Deprecation;
@@ -29,6 +30,7 @@ DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc,
DD.Loc = Loc;
DD.DeprecationData.Decl = D;
DD.DeprecationData.UnknownObjCClass = UnknownObjCClass;
+ DD.DeprecationData.ObjCProperty = ObjCProperty;
char *MessageData = 0;
if (Msg.size()) {
MessageData = new char [Msg.size()];
OpenPOWER on IntegriCloud