]> granicus.if.org Git - clang/commit
Consolidate and unify initializer list deduction
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 25 Jun 2015 00:25:49 +0000 (00:25 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 25 Jun 2015 00:25:49 +0000 (00:25 +0000)
commite9d8c76e70cce22bf97a39019538179feb7a432b
tree043f7a6a998af68ec532da8559c967ecbccc485d
parent275c0055cf5c3e39f33cf4446921c8946dbf81c6
Consolidate and unify initializer list deduction

Summary:
This patch reduces duplication in the template argument deduction code
for handling deduction from initializer lists in a function call. This
extends the fix for PR12119 to also apply to the case where the
corresponding parameter is a trailing parameter pack.

Test Plan:
A test for deduction from nested initializer lists where the
corresponding parameter is a trailing parameter pack is added in
`clang/test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp`.

Reviewers: fraggamuffin, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D10681

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240612 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateDeduction.cpp
test/SemaCXX/cxx0x-initializer-stdinitializerlist.cpp