Permit -Wswitch coverage for enumerations.
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 19:33:26 +0000 (19:33 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 12 Jun 2014 19:33:26 +0000 (19:33 +0000)
commitfbfbaf6a931918f7a648758b0a709d52b30ed71b
treeca3d8e8a42f9ec308cb121e07fcf0620ac58ff1c
parent8730ee737517d11554eae525a8a78925ea94e7f4
Permit -Wswitch coverage for enumerations.

Thanks to David Blakie and Richard Smith for pointing out that we can retain the
-Wswitch coverage while avoiding the warning from GCC by pushing the unreachable
outside of the switch!

llvm-svn: 210812
clang/lib/Basic/DiagnosticIDs.cpp
clang/lib/Format/Format.cpp