llvm-project/lldb/source/Symbol
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
..
ArmUnwindInfo.cpp Fix several issues around .ARM.exidx section handling 2015-10-02 11:58:26 +00:00
Block.cpp Final bit of type system cleanup that abstracts declaration contexts into lldb_private::CompilerDeclContext and renames ClangType to CompilerType in many accessors and functions. 2015-08-24 23:46:31 +00:00
CMakeLists.txt Read macro info from .debug_macro section and use it for expression evaluation. 2015-12-16 00:22:08 +00:00
ClangASTContext.cpp Add -Wimplicit-fallthrough command line option to clang in 2016-02-16 04:14:33 +00:00
ClangASTImporter.cpp When importing Objective-C protocols, mark them as having external decls. 2016-02-10 22:00:32 +00:00
ClangExternalASTSourceCallbacks.cpp Trying to submit 254476 one more time. This implement -gmodule debugging support. 2015-12-08 01:02:08 +00:00
ClangExternalASTSourceCommon.cpp Fixed an unfortunate reversed conditional that 2014-12-06 02:31:49 +00:00
CompactUnwindInfo.cpp Clean up register naming conventions inside lldb. 2015-09-15 23:20:34 +00:00
CompileUnit.cpp Read macro info from .debug_macro section and use it for expression evaluation. 2015-12-16 00:22:08 +00:00
CompilerDecl.cpp Fixed TypeMemberFunctionImpl to not use clang types directly but use the new CompilerDecl class to do the job in an abstract way. 2015-11-10 17:47:04 +00:00
CompilerDeclContext.cpp Take 2: Use an artifical namespace so that member vars do not hide local vars. 2016-02-05 19:10:04 +00:00
CompilerType.cpp Rework the way in which ValueObjectChild decides how to update itself; this is a slight refactoring that I need as part of a larger master plan. As such, should be NFC 2015-11-09 23:07:55 +00:00
DWARFCallFrameInfo.cpp Revert "Improve the handling of missing elf symtab and missing symbol sizes" 2016-02-10 12:10:58 +00:00
DebugMacros.cpp Read macro info from .debug_macro section and use it for expression evaluation. 2015-12-16 00:22:08 +00:00
Declaration.cpp For some reason, sometimes the directory paths that clang emits have internal 2014-11-15 01:54:26 +00:00
FuncUnwinders.cpp Add support for .ARM.exidx unwind information 2015-09-30 13:50:14 +00:00
Function.cpp The compiler may use "line number 0" to indicate compiler generated goo that it can't 2016-02-03 00:07:23 +00:00
GoASTContext.cpp Implement missing GoASTContext methods 2016-01-15 19:35:48 +00:00
LineEntry.cpp When constructing an address range to "step" or "next" through, 2015-12-15 00:40:30 +00:00
LineTable.cpp Fix dwarf sequence insertions 2016-01-08 01:39:14 +00:00
ObjectFile.cpp Revert "Improve the handling of missing elf symtab and missing symbol sizes" 2016-02-10 12:10:58 +00:00
Symbol.cpp Unconditionally accept symbol sizes from elf 2016-01-19 10:24:51 +00:00
SymbolContext.cpp Adding an SBThread::StepInto that takes an end-line, also moved the code that figures 2016-02-13 00:31:47 +00:00
SymbolFile.cpp Now that SymbolFileDWARF supports having types in completely separate .pcm file with "-fmodules -gmodules", each SymbolFileDWARF can reference module DWARF info by looking in other DWARF files. Then if you have 1000 .o files that each reference one or more .pcm files in their debug info, a simple Module::FindTypes(...) call can end up searching the same .pcm file over and over and over. Now all internal FindTypes methods in classes (ModuleList, Module, SymbolFile) now take an extra argument: 2016-02-10 21:28:13 +00:00
SymbolVendor.cpp Now that SymbolFileDWARF supports having types in completely separate .pcm file with "-fmodules -gmodules", each SymbolFileDWARF can reference module DWARF info by looking in other DWARF files. Then if you have 1000 .o files that each reference one or more .pcm files in their debug info, a simple Module::FindTypes(...) call can end up searching the same .pcm file over and over and over. Now all internal FindTypes methods in classes (ModuleList, Module, SymbolFile) now take an extra argument: 2016-02-10 21:28:13 +00:00
Symtab.cpp Revert "Improve the handling of missing elf symtab and missing symbol sizes" 2016-02-10 12:10:58 +00:00
Type.cpp Remove default case in switch which covers all enumeration values 2015-12-08 20:50:35 +00:00
TypeList.cpp Testcase and fix for bug 24074 2015-10-08 09:45:41 +00:00
TypeMap.cpp Fix a crasher in SymbolContext::SortTypeList() where something that was iterating over a std::multimap was actually mutating the list. 2015-11-19 23:10:45 +00:00
TypeSystem.cpp Refinement of r260624. It is possible somebody might try to add to the map 2016-02-15 20:04:15 +00:00
UnwindPlan.cpp Fix handling of the arm IT instruction in the unwinder 2016-02-10 10:42:13 +00:00
UnwindTable.cpp Add support for .ARM.exidx unwind information 2015-09-30 13:50:14 +00:00
Variable.cpp Rename clang_type -> compiler_type for variables. 2015-09-24 03:54:50 +00:00
VariableList.cpp Fix resolution conflict between global and class static variables in C++ 2015-08-18 22:46:57 +00:00
VerifyDecl.cpp