llvm-project/clang/lib
Alexander Kornienko afed1ddb40 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

llvm-svn: 173889
2013-01-30 03:49:44 +00:00
..
ARCMigrate Re-sort all the headers. Lots of regressions have crept in here. 2013-01-19 08:09:44 +00:00
AST Removed couple of html named character references in 2013-01-30 00:10:09 +00:00
ASTMatchers Remove useless 'llvm::' qualifier from names like StringRef and others that are 2013-01-12 19:30:44 +00:00
Analysis -Wuninitialized: warn about uninitialized values resulting from ?: that evaluate to lvalues (in C++). 2013-01-19 00:25:06 +00:00
Basic <limits.h> includes <linux/limits.h> on Linux, no need to special-case it 2013-01-26 16:29:36 +00:00
CodeGen [ubsan] Implement the -fcatch-undefined-behavior flag using a trapping 2013-01-29 23:31:22 +00:00
Driver [driver] Clear the FailureResultFiles when initializing clang diagnostics. Also, 2013-01-29 23:57:10 +00:00
Edit Implement OpenCL event_t as Clang builtin type, including event_t related OpenCL restrictions (OpenCL 1.2 spec 6.9) 2013-01-20 12:31:11 +00:00
Format Move the token annotator into separate files. 2013-01-29 21:01:14 +00:00
Frontend Don't warn about Unicode characters in -E mode. 2013-01-30 01:52:57 +00:00
FrontendTool use early returns to simplify and de-nest 2013-01-06 07:49:41 +00:00
Headers Parsing support for C11's _Noreturn keyword. No semantics yet. 2013-01-17 22:16:11 +00:00
Lex Don't warn about Unicode characters in -E mode. 2013-01-30 01:52:57 +00:00
Parse Provide a fixit for constexpr non-static data members. 2013-01-30 01:22:18 +00:00
Rewrite Rework the traversal of Objective-C categories and extensions to 2013-01-16 23:00:23 +00:00
Sema Don't warn on fall-through from unreachable code. 2013-01-30 03:49:44 +00:00
Serialization [Frontend] Remove HeaderSearchOptions::Entry::IsInternal, which is unused. 2013-01-30 00:34:26 +00:00
StaticAnalyzer [analyzer] C++ initializers may require cleanups; look through these. 2013-01-26 03:16:31 +00:00
Tooling Nuke SetUpBuildDumpLog. 2013-01-20 01:58:28 +00:00
CMakeLists.txt Initial version of formatting library. 2012-12-03 18:12:45 +00:00
Makefile Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user 2012-12-13 16:09:42 +00:00