summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/switch-recovery.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove the last FIXMEs on -Wunused-comparison since it got moved toChandler Carruth2011-08-181-1/+1
| | | | | | | entirely use the existing -Wunused-value infrastructure. This also fixes a few missed cases for -Wunused in general. llvm-svn: 137916
* Improve the diagnostics generated for switch statements missing expressionsDavid Majnemer2011-06-131-0/+14
| | | | | | | - Move the diagnostic to the case statement instead of at the end of the switch - Add a fix-it hint as to how to fix the compilation error llvm-svn: 132903
* Add a fixit suggest for missing case keywords inside a switch scope. For ↵Richard Trieu2011-04-211-0/+124
| | | | | | | | | | | instance, in the following code, 'case ' will be suggested before the '1:' switch (x) { 1: return 0; default: return 1; } llvm-svn: 129943
* Improve our parse recovery on 'case blah;' and 'default;'.John McCall2011-01-221-0/+14
| | | | llvm-svn: 124025
* Improve the diagnostic and recovery for missing colons after 'case'Douglas Gregor2010-12-231-1/+9
| | | | | | | | | | | | | | | and 'default' statements, including a Fix-It to add the colon: test/Parser/switch-recovery.cpp:13:12: error: expected ':' after 'case' case 17 // expected-error{{expected ':' after 'case'}} ^ : test/Parser/switch-recovery.cpp:16:12: error: expected ':' after 'default' default // expected-error{{expected ':' after 'default'}} ^ : llvm-svn: 122522
* Improve parser recovery when a switch condition is invalid; fixesDouglas Gregor2010-05-201-0/+12
<rdar://problem/7971948>. llvm-svn: 104291
OpenPOWER on IntegriCloud