aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateDeduction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-08 15:59:14 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-08 15:59:14 +0000
commit0fce0ae7d60bed52e36c87194922b7aecce78b83 (patch)
treebc8ff8ca99d2df9465ed0dc9514e7f76a2e9f1f2 /lib/Sema/SemaTemplateDeduction.cpp
parenta27fad59dc760252af025ef6a86d31bb7d11a44a (diff)
Document the template argument deduction patterns that Anders' patch supports
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateDeduction.cpp')
-rw-r--r--lib/Sema/SemaTemplateDeduction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplateDeduction.cpp b/lib/Sema/SemaTemplateDeduction.cpp
index db7e622f7f..fe779ebd80 100644
--- a/lib/Sema/SemaTemplateDeduction.cpp
+++ b/lib/Sema/SemaTemplateDeduction.cpp
@@ -265,6 +265,9 @@ static bool DeduceTemplateArguments(ASTContext &Context, QualType Param,
return false;
}
+ // type(*)(T)
+ // T(*)()
+ // T(*)(T)
case Type::FunctionProto: {
const FunctionProtoType *FunctionProtoArg =
dyn_cast<FunctionProtoType>(Arg);