8b0822b3043f91a113d39da7aa9bb0634db69807 |
|
02-Apr-2013 |
Alexander Kornienko <alexfh@google.com> |
Moved fallthrough regression test to switch-implicit-fallthrough.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178554 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|
878d0ad2c9d83ee6485fd16e21c5082acc63a890 |
|
07-Feb-2013 |
Alexander Kornienko <alexfh@google.com> |
-Wimplicit-fallthrough: fixed two cases where "fallthrough annotation in unreachable code" was issued incorrectly. Summary: -Wimplicit-fallthrough: fixed two cases where "fallthrough annotation in unreachable code" was issued incorrectly: 1. In actual unreachable code, but not immediately on a fall-through execution path "fallthrough annotation does not directly precede switch label" is better; 2. After default: in a switch with covered enum cases. Actually, these shouldn't be treated as unreachable code for our purpose. Reviewers: rsmith Reviewed By: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D374 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174575 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|
0162b832fd6450cd3a23019a3c900382d0e9415c |
|
01-Feb-2013 |
Alexander Kornienko <alexfh@google.com> |
Fixed segmentation fault when a CFGBlock has NULL successor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174182 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|
4874a8143dc3032205f97527ff619730db3d1f57 |
|
30-Jan-2013 |
Alexander Kornienko <alexfh@google.com> |
Don't warn on fall-through from unreachable code. Summary: A motivating example: class ClassWithDtor { public: ~ClassWithDtor() {} }; void fallthrough3(int n) { switch (n) { case 2: do { ClassWithDtor temp; return; } while (0); // This generates a chain of unreachable CFG blocks. case 3: break; } } Reviewers: rsmith, doug.gregor, alexfh Reviewed By: alexfh CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D330 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173889 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|
c6dcea93b499b504da22f9921fc198423ad0b13b |
|
25-Jan-2013 |
Alexander Kornienko <alexfh@google.com> |
Silence unintended fallthrough diagnostic on a case label preceded with a normal label. Summary: It's unlikely that a fallthrough is unintended in the following code: switch (n) { ... label: case 1: ... goto label; ... } Reviewers: rsmith, doug.gregor Reviewed By: doug.gregor CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D329 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173486 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|
e992ed1a065d857947b3969e6b779c41cc35c234 |
|
25-Jan-2013 |
Alexander Kornienko <alexfh@google.com> |
Don't suggest to insert [[clang::fallthrough]] before empty cases. Fix for multiple case labels. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173458 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|
86197b311ddb938c9605fdc3e4e57157c4cfe9bd |
|
20-Jun-2012 |
Alexander Kornienko <alexfh@google.com> |
Added test with sizeof conditions (relies on to-be-implemented functionality of CFG, discussion: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120507/057370.html) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158854 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|
a189d8976f1193b788508a1a29b2e9d0aca06aca |
|
26-May-2012 |
Alexander Kornienko <alexfh@gmail.com> |
Don't offer '[[clang::fallthrough]];' fix-it when a fall-through occurs to a switch label immediately followed by a 'break;'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|
e0d3b4cd2b66f1cef26cacbed5820ab7c22ad5b3 |
|
03-May-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Add -Wimplicit-fallthrough warning flag, which warns on fallthrough between cases in switch statements. Also add a [[clang::fallthrough]] attribute, which can be used to suppress the warning in the case of intentional fallthrough. Patch by Alexander Kornienko! The handling of C++11 attribute namespaces in this patch is temporary, and will be replaced with a cleaner mechanism in a subsequent patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156086 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/switch-implicit-fallthrough.cpp
|