Sebastian Redl
84407ba82a
Parse brace initializers as default arguments. PR12236.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152721 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-14 15:54:00 +00:00
Sebastian Redl
2422e82b54
Single- and zero-element initializer lists to scalars are list-initializations. Fixes PR12118.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151666 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-28 23:36:38 +00:00
Richard Smith
0635aa75ab
Accept braced-init-lists in conditions, and, in passing, dramatically improve
...
the diagnostic for using a parenthesized direct-initializer in a condition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151137 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-22 06:49:09 +00:00
Sebastian Redl
6dc00f6e98
Proper initializer list support for new expressions and type construct expressions. Array new still missing.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150346 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-12 18:41:05 +00:00
Sebastian Redl
3a45c0e61d
Change the way we store initialization kinds so that all direct inits can distinguish between list and parens form. This allows us to correctly diagnose the last test cases from litb.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150343 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-12 16:37:36 +00:00
Sebastian Redl
2b916b8b55
Sema support for initialization of std::initializer_list from initializer lists.
...
This does not yet support CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148349 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-17 22:49:42 +00:00
Sebastian Redl
5405b817e2
Implement overload resolution from init lists for scalar parameter types.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142148 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-16 18:19:34 +00:00
Sebastian Redl
d12c9f5f8b
Prove that non-overloaded function calls using init list arguments work.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142144 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-16 18:19:11 +00:00
Richard Smith
762bb9d0ad
Update all tests other than Driver/std.cpp to use -std=c++11 rather than
...
-std=c++0x. Patch by Ahmed Charles!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141900 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-13 22:29:44 +00:00
Sebastian Redl
6df6548e44
Correctly parse braced member initializers (even in delayed parsing) and correctly pass
...
the information on to Sema. There's still an incorrectness in the way template instantiation
works now, but that is due to a far larger underlying representational problem.
Also add a test case for various list initialization cases of scalars, which test this
commit as well as the previous one.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140460 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-24 17:48:25 +00:00