diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-06-16 17:25:41 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-06-16 17:25:41 +0000 |
commit | 51ccb71920b5012a125920d280103d6b8640ef57 (patch) | |
tree | 9df106613a9268d53c6f791ea20d3547006c90e7 /lib/Sema/DelayedDiagnostic.cpp | |
parent | 7b1170da73469d29c9be0584260764fe4f520872 (diff) |
Objective-C. Diagnose when property access is using declared
property accessor methods which have become deprecated
or available. // rdar://15951801
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/DelayedDiagnostic.cpp')
-rw-r--r-- | lib/Sema/DelayedDiagnostic.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Sema/DelayedDiagnostic.cpp b/lib/Sema/DelayedDiagnostic.cpp index 13a428ca8c..664a6b1a89 100644 --- a/lib/Sema/DelayedDiagnostic.cpp +++ b/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; } |