summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/generalized-initializers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change the way we store initialization kinds so that all direct inits can ↵Sebastian Redl2012-02-121-52/+0
| | | | | | distinguish between list and parens form. This allows us to correctly diagnose the last test cases from litb. llvm-svn: 150343
* Employ DirectList initialized entities to properly sort through some ↵Sebastian Redl2012-02-121-23/+0
| | | | | | initialization edge cases. llvm-svn: 150342
* Fix parsing new expressions using init lists. Probably still do the wrong ↵Sebastian Redl2012-02-111-83/+0
| | | | | | | | thing in cases involving array new. Show that many cases using initializer list constructors work, in that they parse and pass semantic analysis. llvm-svn: 150316
* Auto deduction support for std::initializer_list, including for-range ↵Sebastian Redl2012-01-171-12/+0
| | | | | | | | support. This means you can now write: for (int i : {1, 4, 512, 23, 251}) {} llvm-svn: 148353
* Sema support for initialization of std::initializer_list from initializer lists.Sebastian Redl2012-01-171-3/+1
| | | | | | This does not yet support CodeGen. llvm-svn: 148349
* Diagnose when omitting braces in direct list-initialization in C++0x.Sebastian Redl2011-10-161-35/+0
| | | | | | This also applies to C99-style aggregate literals, should they be used in C++11, since they are effectively identical to constructor call list-initialization syntax. llvm-svn: 142147
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Correctly parse braced member initializers (even in delayed parsing) and ↵Sebastian Redl2011-09-241-21/+0
| | | | | | | | | | | 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. llvm-svn: 140460
* Fix the expected error for narrowing conversions in ↵Sebastian Redl2011-09-241-2/+2
| | | | | | | | generalized-initializers.cpp to match what the actual implementation of the error looks like. llvm-svn: 140458
* Revert 135177 to fix PR10363.Rafael Espindola2011-07-141-34/+0
| | | | | | | | Revert "For C++11, do more checking of initializer lists up-front, enabling some subset of the final functionality. C just leaves the function early. C++98 runs through the same code path, but has no changed functionality either." This reverts commit ac420c5053d6aa41d59f782caad9e46e5baaf2c2. llvm-svn: 135210
* For C++11, do more checking of initializer lists up-front, enabling some ↵Sebastian Redl2011-07-141-0/+34
| | | | | | | | | | subset of the final functionality. C just leaves the function early. C++98 runs through the same code path, but has no changed functionality either. This is a first baby step towards supporting generalized initializer lists. This also removes an aggregate test case that was just plain wrong, assuming that non-aggregates couldn't be initialized with initializer lists in C++11 mode. llvm-svn: 135177
* Fix problems Johannes noticed, and extend test cases further.Sebastian Redl2011-07-141-4/+58
| | | | llvm-svn: 135176
* More std::initializer_list tests.Sebastian Redl2011-06-051-1/+3
| | | | llvm-svn: 132663
* Parse C++0x generalized initializers.Sebastian Redl2011-06-051-3/+4
| | | | llvm-svn: 132662
* Expand on braced init list tests.Sebastian Redl2011-06-051-22/+66
| | | | llvm-svn: 132661
* Introduce XFAILed test for braced initializer lists.Sebastian Redl2011-05-201-0/+127
llvm-svn: 131754
OpenPOWER on IntegriCloud