From d09efd43d3f849f3d836e46f9fc61013449c816a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sat, 8 May 2010 20:07:26 +0000 Subject: When printing an overload candidate that failed due to SFINAE, print a specific message that includes the template arguments, e.g., test/SemaTemplate/overload-candidates.cpp:27:20: note: candidate template ignored: substitution failure [with T = int *] typename T::type get_type(const T&); // expected-note{{candidate ... ^ llvm-svn: 103348 --- clang/lib/Sema/SemaOverload.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/Sema/SemaOverload.h') diff --git a/clang/lib/Sema/SemaOverload.h b/clang/lib/Sema/SemaOverload.h index c13fb17b858..cf169438261 100644 --- a/clang/lib/Sema/SemaOverload.h +++ b/clang/lib/Sema/SemaOverload.h @@ -539,6 +539,10 @@ namespace clang { /// refers to, if any. TemplateParameter getTemplateParameter(); + /// \brief Retrieve the template argument list associated with this + /// deduction failure, if any. + TemplateArgumentList *getTemplateArgumentList(); + /// \brief Return the first template argument this deduction failure /// refers to, if any. const TemplateArgument *getFirstArg(); -- cgit v1.2.3