summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-08 20:07:26 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-08 20:07:26 +0000
commitd09efd43d3f849f3d836e46f9fc61013449c816a (patch)
tree569925aab32d41a04b163770edaf292e552cf93f /clang/lib/Sema/SemaOverload.h
parent5a62d6e578de5154ccae7257943b397989d40afe (diff)
downloadbcm5719-llvm-d09efd43d3f849f3d836e46f9fc61013449c816a.tar.gz
bcm5719-llvm-d09efd43d3f849f3d836e46f9fc61013449c816a.zip
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
Diffstat (limited to 'clang/lib/Sema/SemaOverload.h')
-rw-r--r--clang/lib/Sema/SemaOverload.h4
1 files changed, 4 insertions, 0 deletions
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();
OpenPOWER on IntegriCloud