From: Sean Hunt Date: Wed, 22 Jun 2011 01:05:16 +0000 (+0000) Subject: Extend the deleted overload candidate note to cover all cases. It X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a17cae4e3dcccda0e930f9f55574c8f3bb5337c;p=clang Extend the deleted overload candidate note to cover all cases. It probably shouldn't cover the implicit member case, but it needs to until more descriptive diagnostics are implemented. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133594 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 6b38d9f9fe..55f1ec3956 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1535,7 +1535,13 @@ def note_ovl_candidate_arity : Note<"candidate " def note_ovl_candidate_deleted : Note< "candidate %select{function|function|constructor|" - "function |function |constructor ||||constructor (inherited)}0%1 " + "function |function |constructor |" + "constructor (the implicit default constructor)|" + "constructor (the implicit copy constructor)|" + "constructor (the implicit move constructor)|" + "function (the implicit copy assignment operator)|" + "function (the implicit move assignment operator)|" + "constructor (inherited)}0%1 " "has been explicitly %select{made unavailable|deleted}2">; // Giving the index of the bad argument really clutters this message, and