llvm-project/lldb/source/Target
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
..
ABI.cpp Eliminated redundant "constructors" for ClangExpressionVariable. 2015-10-01 23:07:06 +00:00
CMakeLists.txt [cmake] Remove LLVM_NO_RTTI. 2015-09-03 08:46:55 +00:00
CPPLanguageRuntime.cpp Move more functionality from the LanguageRuntimes to the Languages. 2015-09-02 01:59:14 +00:00
ExecutionContext.cpp Make lldb::endian::InlHostByteOrder() private. 2015-11-07 04:40:13 +00:00
FileAction.cpp Refactor many file functions to use FileSpec over strings. 2015-05-29 19:52:29 +00:00
InstrumentationRuntime.cpp LLDB AddressSanitizer instrumentation runtime plugin, breakpint on error and report data extraction 2014-10-10 23:43:03 +00:00
InstrumentationRuntimeStopInfo.cpp LLDB AddressSanitizer instrumentation runtime plugin, breakpint on error and report data extraction 2014-10-10 23:43:03 +00:00
JITLoader.cpp Moved JITLoader.cpp and JITLoaderList.cpp over into "source/Target" since the header files were in "include/lldb/Target". 2014-03-06 00:14:12 +00:00
JITLoaderList.cpp Create a Process::ModulesDidLoad() method to handle process-related tasks, as suggested by Jim Ingham. Make JITLoader instances use this to probe only new modules for relevant JIT symbols. Also re-enable the JITLoader hooks in Process. 2014-03-13 09:37:02 +00:00
Language.cpp Objective-C++ is a kind of C++. 2016-02-12 19:47:57 +00:00
LanguageRuntime.cpp Per Jim's suggestion, move checks that we're not mixing and matching Debuggers and Commands deeper in the bowels of LLDB 2016-02-06 01:36:07 +00:00
Memory.cpp Fix the L1 cache search in MemoryCache::Read to use the 2015-12-12 03:06:10 +00:00
MemoryHistory.cpp Fix MemoryHistory plugin to check whether the plugin 2014-10-16 16:59:23 +00:00
ObjCLanguageRuntime.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
OperatingSystem.cpp
PathMappingList.cpp Start converting usages of off_t to other types. 2014-07-02 17:24:07 +00:00
Platform.cpp Modify "platform connect" to connect to processes as well 2015-12-08 14:08:19 +00:00
Process.cpp Add -Wimplicit-fallthrough command line option to clang in 2016-02-16 04:14:33 +00:00
ProcessInfo.cpp Pull ProcessInfo and ProcessLaunchInfo out of Target/Process. 2014-06-30 00:30:53 +00:00
ProcessLaunchInfo.cpp Make uses of /dev/null portable across OSes. 2015-10-14 21:37:36 +00:00
Queue.cpp Add a SBQueue::GetKind() method to retrieve the type of libdispatch queue (serial or concurrent). 2014-03-13 02:54:54 +00:00
QueueItem.cpp Correctly add the QueueID to a pending block's extended thread backtrace thread. 2014-03-10 08:42:03 +00:00
QueueList.cpp Add new Queue, QueueItem, Queuelist, SBQueue, SBQueueItem classes to represent 2013-12-13 00:29:16 +00:00
RegisterContext.cpp Make lldb::endian::InlHostByteOrder() private. 2015-11-07 04:40:13 +00:00
SectionLoadHistory.cpp Fix typos. 2014-07-01 21:22:11 +00:00
SectionLoadList.cpp Fixed a couple of places where we were getting the module from a 2016-01-29 20:21:33 +00:00
StackFrame.cpp Add -Wimplicit-fallthrough command line option to clang in 2016-02-16 04:14:33 +00:00
StackFrameList.cpp Add a missing Mutex Locker in ResetCurrentInlinedDepth 2015-10-16 05:17:25 +00:00
StackID.cpp sweep up -Wformat warnings from gcc 2014-04-04 04:06:10 +00:00
StopInfo.cpp [LLDB][Watchpoint] Change ignore_count condition location to fix watchpoint ignore feature for architectures with watchpoint_exceptions_received=before 2015-11-03 09:04:33 +00:00
SystemRuntime.cpp Change the Mac OS X SystemRuntime plugin from using the placeholder 2014-02-05 05:44:54 +00:00
Target.cpp Make Target::CalculateProcess() return a sensible result. 2016-02-12 19:45:31 +00:00
TargetList.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
Thread.cpp Remove a stray ;. 2016-02-03 19:49:03 +00:00
ThreadCollection.cpp [lldb] Abstract a superclass for a generic thread container. 2014-09-05 19:13:15 +00:00
ThreadList.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlan.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlanBase.cpp Improve logging a bit by printing the exception or signal type description. 2014-02-27 19:35:12 +00:00
ThreadPlanCallFunction.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlanCallFunctionUsingABI.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlanCallUserExpression.cpp This patch makes Clang-independent base classes for all the expression types that lldb currently vends. 2015-09-15 21:13:50 +00:00
ThreadPlanPython.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
ThreadPlanRunToAddress.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlanShouldStopHere.cpp Re-apply r257117 (reverted in r257138 temporarily), 2016-01-08 21:40:11 +00:00
ThreadPlanStepInRange.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlanStepInstruction.cpp The SetStopInfo from a Mach Exception was setting the stop 2016-02-03 19:45:31 +00:00
ThreadPlanStepOut.cpp Re-apply r257117 (reverted in r257138 temporarily), 2016-01-08 21:40:11 +00:00
ThreadPlanStepOverBreakpoint.cpp Move lldb-log.cpp to core/Logging.cpp 2015-03-18 18:20:42 +00:00
ThreadPlanStepOverRange.cpp Re-apply r257117 (reverted in r257138 temporarily), 2016-01-08 21:40:11 +00:00
ThreadPlanStepRange.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlanStepThrough.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlanStepUntil.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadPlanTracer.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
ThreadSpec.cpp Fix Clang-tidy modernize-use-nullptr and readability-simplify-boolean-expr warnings in some files in source/Target/. 2015-12-15 01:33:19 +00:00
UnixSignals.cpp Target: fix -Wcast-qual warning 2016-01-22 20:26:32 +00:00
UnwindAssembly.cpp Fix UnwindAssembly memory leak by defining and using a shared UnwindAssemblySP type. 2014-02-03 23:49:47 +00:00