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 /include/clang/Basic/DiagnosticSemaKinds.td | |
parent | 7b1170da73469d29c9be0584260764fe4f520872 (diff) | |
download | clang-51ccb71920b5012a125920d280103d6b8640ef57.tar.gz clang-51ccb71920b5012a125920d280103d6b8640ef57.tar.bz2 clang-51ccb71920b5012a125920d280103d6b8640ef57.tar.xz |
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 'include/clang/Basic/DiagnosticSemaKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index c2fb552764..aa02519087 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -3680,6 +3680,9 @@ def note_not_found_by_two_phase_lookup : Note<"%0 should be declared prior to th def err_undeclared_use : Error<"use of undeclared %0">; def warn_deprecated : Warning<"%0 is deprecated">, InGroup<DeprecatedDeclarations>; +def warn_property_method_deprecated : + Warning<"property access is using %0 method which is deprecated">, + InGroup<DeprecatedDeclarations>; def warn_deprecated_message : Warning<"%0 is deprecated: %1">, InGroup<DeprecatedDeclarations>; def warn_deprecated_fwdclass_message : Warning< @@ -3689,6 +3692,8 @@ def warn_deprecated_def : Warning< "Implementing deprecated %select{method|class|category}0">, InGroup<DeprecatedImplementations>, DefaultIgnore; def err_unavailable : Error<"%0 is unavailable">; +def err_property_method_unavailable : + Error<"property access is using %0 method which is unavailable">; def err_unavailable_message : Error<"%0 is unavailable: %1">; def warn_unavailable_fwdclass_message : Warning< "%0 may be unavailable because the receiver type is unknown">, |