]> granicus.if.org Git - clang/commit
Fix declaring class template methods with an attributed typedef
authorReid Kleckner <reid@kleckner.net>
Wed, 31 Jul 2013 21:00:18 +0000 (21:00 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 31 Jul 2013 21:00:18 +0000 (21:00 +0000)
commitc66e7e99d5acc560de5cea50909fcea22ef12ca5
tree5f7c1aa42f293467576035755bd26ba171753fd9
parent78d0fbfe3aa0dcf158fed95a51460e5d769447ee
Fix declaring class template methods with an attributed typedef

This change unifies the logic for template instantiation of methods and
functions declared with typedefs.

It ensures that SubstFunctionType() always fills the Params out param
with non-null ParmVarDecls or returns null.

Reviewers: rsmith

Differential Revision: http://llvm-reviews.chandlerc.com/D1135

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187528 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaCXX/decl-microsoft-call-conv.cpp
test/SemaTemplate/instantiate-function-params.cpp