Per discussion on cfe-dev, re-enable suppression of -Wimplicit-fallthrough on C,...
authorTed Kremenek <kremenek@apple.com>
Mon, 12 Nov 2012 21:20:48 +0000 (21:20 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 12 Nov 2012 21:20:48 +0000 (21:20 +0000)
commitda5919ffa10c251091482f5aea0c30eca123aa54
tree006743df515ddb1c089073fe4da5ac2a56c72331
parent039136664db74a346f94ce4caa3e378d2d315ee8
Per discussion on cfe-dev, re-enable suppression of -Wimplicit-fallthrough on C, but also include dialects of C++ earlier than C++11.

There was enough consensus that we *can* get a good language solution
to have an annotation outside of C++11, and without this annotation
this warning doesn't quite mean's completeness criteria for this
kind of warning.  For now, restrict this warning to C++11 (where an
annotation exists), and make this the behavior for the LLVM 3.2 release.
Afterwards, we will hammer out a language solution that we are all
happy with.

llvm-svn: 167749
clang/lib/Sema/AnalysisBasedWarnings.cpp
clang/test/SemaCXX/switch-implicit-fallthrough-cxx98.cpp