summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Count the number of initializable members correctly in structs/unions Eli Friedman2008-05-251-2/+6
| | | | | | with unnamed members. llvm-svn: 51557
* Diagnose implicit init list for empty aggregate, like struct {}. Fixes Eli Friedman2008-05-251-0/+7
| | | | | | PR2151 (by not creating the empty implicit init list). llvm-svn: 51556
* Move the error checking for variable-sized objects so we don't Eli Friedman2008-05-251-20/+19
| | | | | | double-report errors; fixes PR2362. llvm-svn: 51555
* Be a bit more defensive in SemaInit.Eli Friedman2008-05-201-1/+7
| | | | llvm-svn: 51301
* Adjust warning so that it doesn't fire when there is an error.Eli Friedman2008-05-191-3/+4
| | | | llvm-svn: 51269
* Add errors for some illegal constructs (specifically, "int a = {{3}};" Eli Friedman2008-05-191-10/+14
| | | | | | and "int a = {};"). I'll adjust the tests in a bit. llvm-svn: 51265
* Some more SemaInit cleanup.Eli Friedman2008-05-191-36/+42
| | | | llvm-svn: 51262
* Various fixes; solves (almost) all of the test regressions that would be Eli Friedman2008-05-191-112/+79
| | | | | | caused by enabling SemaInit. llvm-svn: 51261
* Several fixes to SemaInit.cpp. It's still not enabled (since it fails a few ↵Steve Naroff2008-05-061-31/+48
| | | | | | tests). Expect to enable it very soon. llvm-svn: 50688
* Replace Sema::CheckInitializerListTypes() with a helper class ↵Steve Naroff2008-05-011-0/+292
(InitListChecker) that synthesizes implicit InitListExpr's when appropriate (see InitListExpr comments in Expr.h for more details). I also moved the code to SemaInit.cpp, to help reduce clutter in SemaDecl.cpp. NOTE: This work is incomplete and still fails many tests (as a result, it isn't enabled yet). Nevertheless, I wanted to check it in so I can work on it from home. llvm-svn: 50544
OpenPOWER on IntegriCloud