| commit | 84837d5b5aa0d9d015aca1f08eb96ee27a47a84b | [log] [tgz] |
|---|---|---|
| author | Richard Smith <richard-llvm@metafoo.co.uk> | Thu May 03 18:27:39 2012 +0000 |
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | Thu May 03 18:27:39 2012 +0000 |
| tree | 138db43cee7b666753b9a02e6595c244d4f3ff66 | |
| parent | b3b56bb9600d5626b706cfb3d3b5cc365cafa4dd [diff] |
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. llvm-svn: 156086