summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/DelayedDiagnostic.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-03-02 21:50:02 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-03-02 21:50:02 +0000
commit7923ef41e18bf9fd31b2753cb026874001c36eb0 (patch)
tree30d65e1f685173b60030f16494633e07d997bec5 /clang/lib/Sema/DelayedDiagnostic.cpp
parenta748664c9d8e0aa7c12b141f8fc81304e345be05 (diff)
downloadbcm5719-llvm-7923ef41e18bf9fd31b2753cb026874001c36eb0.tar.gz
bcm5719-llvm-7923ef41e18bf9fd31b2753cb026874001c36eb0.zip
objc: When issue diagnostic about deprecated method, also
issue the note if it is because message is sent to a forward class declaration in delayed diagnostic. // rdar://10290322 llvm-svn: 151942
Diffstat (limited to 'clang/lib/Sema/DelayedDiagnostic.cpp')
-rw-r--r--clang/lib/Sema/DelayedDiagnostic.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Sema/DelayedDiagnostic.cpp b/clang/lib/Sema/DelayedDiagnostic.cpp
index d6c1ad13a85..876f9d7a954 100644
--- a/clang/lib/Sema/DelayedDiagnostic.cpp
+++ b/clang/lib/Sema/DelayedDiagnostic.cpp
@@ -20,13 +20,15 @@ using namespace clang;
using namespace sema;
DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc,
- const NamedDecl *D,
- StringRef Msg) {
+ const NamedDecl *D,
+ const ObjCInterfaceDecl *UnknownObjCClass,
+ StringRef Msg) {
DelayedDiagnostic DD;
DD.Kind = Deprecation;
DD.Triggered = false;
DD.Loc = Loc;
DD.DeprecationData.Decl = D;
+ DD.DeprecationData.UnknownObjCClass = UnknownObjCClass;
char *MessageData = 0;
if (Msg.size()) {
MessageData = new char [Msg.size()];
OpenPOWER on IntegriCloud