summaryrefslogtreecommitdiffstats
path: root/include/clang
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2019-01-14 19:17:31 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2019-01-14 19:17:31 +0000
commit9f41c42b7fca9e80fc3261768c5bda0bde0491a2 (patch)
treeae5d938f588d1ff36a772ebad68105c5a80ab17a /include/clang
parent13b4d37f6ce2ad0acec6f19fe970f38608716a90 (diff)
Improve a -Wunguarded-availability note
Mention the deployment target, and don't say "partial" which doesn't really mean anything to users. rdar://problem/33601513 Differential revision: https://reviews.llvm.org/D56523 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 78ecc8784a..5feb877e46 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -4565,7 +4565,10 @@ def warn_unavailable_fwdclass_message : Warning<
InGroup<UnavailableDeclarations>;
def note_availability_specified_here : Note<
"%0 has been explicitly marked "
- "%select{unavailable|deleted|deprecated|partial}1 here">;
+ "%select{unavailable|deleted|deprecated}1 here">;
+def note_partial_availability_specified_here : Note<
+ "%0 has been marked as being introduced in %1 %2 here, "
+ "but the deployment target is %1 %3">;
def note_implicitly_deleted : Note<
"explicitly defaulted function was implicitly deleted here">;
def warn_not_enough_argument : Warning<