llvm-project/lldb/source/Plugins/ObjectFile
Jason Molenda 62e0681afb Add -Wimplicit-fallthrough command line option to clang in
the xcode project file to catch switch statements that have a
case that falls through unintentionally.

Define LLVM_FALLTHROUGH to indicate instances where a case has code
and intends to fall through.  This should be in llvm/Support/Compiler.h;
Peter Collingbourne originally checked in there (r237766), then
reverted (r237941) because he didn't have time to mark up all the
'case' statements that were intended to fall through.  I put together
a patch to get this back in llvm http://reviews.llvm.org/D17063 but
it hasn't been approved in the past week.  I added a new
lldb-private-defines.h to hold the definition for now.

Every place in lldb where there is a comment that the fall-through
is intentional, I added LLVM_FALLTHROUGH to silence the warning.
I haven't tried to identify whether the fallthrough is a bug or
not in the other places.

I haven't tried to add this to the cmake option build flags.
This warning will only work for clang.

This build cleanly (with some new warnings) on macosx with clang
under xcodebuild, but if this causes problems for people on other
configurations, I'll back it out.

llvm-svn: 260930
2016-02-16 04:14:33 +00:00
..
ELF Revert "Improve the handling of missing elf symtab and missing symbol sizes" 2016-02-10 12:10:58 +00:00
JIT Remove autoconf support from source directories. 2016-01-28 22:05:24 +00:00
Mach-O Add -Wimplicit-fallthrough command line option to clang in 2016-02-16 04:14:33 +00:00
PECOFF Remove autoconf support from source directories. 2016-01-28 22:05:24 +00:00
CMakeLists.txt Make cmake build the new ObjectFileJIT. 2014-03-24 23:11:37 +00:00