summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/DelayedDiagnostic.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-06-16 17:25:41 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-06-16 17:25:41 +0000
commit89ea9610b3061c4a897fedbe3bec319723e43066 (patch)
tree67aa0fb4a5357f16efb9c1bbda4c4d503606f12e /clang/lib/Sema/DelayedDiagnostic.cpp
parentfff5663d4864a20633b3f86efb2b437de54a4dc7 (diff)
downloadbcm5719-llvm-89ea9610b3061c4a897fedbe3bec319723e43066.tar.gz
bcm5719-llvm-89ea9610b3061c4a897fedbe3bec319723e43066.zip
Objective-C. Diagnose when property access is using declared
property accessor methods which have become deprecated or available. // rdar://15951801 llvm-svn: 211039
Diffstat (limited to 'clang/lib/Sema/DelayedDiagnostic.cpp')
-rw-r--r--clang/lib/Sema/DelayedDiagnostic.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/DelayedDiagnostic.cpp b/clang/lib/Sema/DelayedDiagnostic.cpp
index 13a428ca8c2..664a6b1a899 100644
--- a/clang/lib/Sema/DelayedDiagnostic.cpp
+++ b/clang/lib/Sema/DelayedDiagnostic.cpp
@@ -25,7 +25,8 @@ DelayedDiagnostic::makeAvailability(Sema::AvailabilityDiagnostic AD,
const NamedDecl *D,
const ObjCInterfaceDecl *UnknownObjCClass,
const ObjCPropertyDecl *ObjCProperty,
- StringRef Msg) {
+ StringRef Msg,
+ bool ObjCPropertyAccess) {
DelayedDiagnostic DD;
switch (AD) {
case Sema::AD_Deprecation:
@@ -48,6 +49,7 @@ DelayedDiagnostic::makeAvailability(Sema::AvailabilityDiagnostic AD,
DD.DeprecationData.Message = MessageData;
DD.DeprecationData.MessageLen = Msg.size();
+ DD.DeprecationData.ObjCPropertyAccess = ObjCPropertyAccess;
return DD;
}
OpenPOWER on IntegriCloud