History log of /external/clang/test/Parser/switch-recovery.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5440bfaff6aec058b60bc6da75bb4f13b7a76491 18-Aug-2011 Chandler Carruth <chandlerc@gmail.com> Remove the last FIXMEs on -Wunused-comparison since it got moved to
entirely use the existing -Wunused-value infrastructure. This also fixes
a few missed cases for -Wunused in general.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137916 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Parser/switch-recovery.cpp
0e1e69ca1b30df7692f302a5388377f507bc4567 13-Jun-2011 David Majnemer <david.majnemer@gmail.com> Improve the diagnostics generated for switch statements missing expressions

- 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


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Parser/switch-recovery.cpp
bb9b80c308d7d3f758886243c7145404a50c66cf 21-Apr-2011 Richard Trieu <rtrieu@google.com> Add a fixit suggest for missing case keywords inside a switch scope. For instance, in the following code, 'case ' will be suggested before the '1:'

switch (x) {
1: return 0;
default: return 1;
}



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129943 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Parser/switch-recovery.cpp
f6a3ab0f167f23d0669eae77280c7ff660e7ad98 22-Jan-2011 John McCall <rjmccall@apple.com> Improve our parse recovery on 'case blah;' and 'default;'.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124025 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Parser/switch-recovery.cpp
662a4822ee7c8696434b054303c5076a606ab175 23-Dec-2010 Douglas Gregor <dgregor@apple.com> Improve the diagnostic and recovery for missing colons after 'case'
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'}}
^
:



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122522 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Parser/switch-recovery.cpp
4186ff4fc4102f63b7485c2bf89155d3b0899d32 21-May-2010 Douglas Gregor <dgregor@apple.com> Improve parser recovery when a switch condition is invalid; fixes
<rdar://problem/7971948>.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Parser/switch-recovery.cpp