summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-07-13 16:37:11 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-07-13 16:37:11 +0000
commite8dd708a95ad89e90ba4f54a6c64717e1e2963ae (patch)
treec333e00101f3503997ed1920e92a0778be0da468 /include/clang/Basic
parente9abcb4c08cd75b29a7c58138de1ecc2fcea996a (diff)
Extend -Wdeprecated-implementations to warn about unavailable methods
rdar://22867595 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 671c3e92f4..ab1653d313 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -4581,6 +4581,9 @@ def warn_deprecated_fwdclass_message : Warning<
def warn_deprecated_def : Warning<
"implementing deprecated %select{method|class|category}0">,
InGroup<DeprecatedImplementations>, DefaultIgnore;
+def warn_unavailable_def : Warning<
+ "implementing unavailable method">,
+ 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">;