llvm-project/lldb/source/Expression
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
..
CMakeLists.txt Create an expression parser for Go. 2015-11-02 19:30:40 +00:00
DWARFExpression.cpp Moved more Clang-specific parts of the expression parser into the Clang plugin. 2015-09-25 20:35:58 +00:00
Expression.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
ExpressionSourceCode.cpp Take 2: Use an artifical namespace so that member vars do not hide local vars. 2016-02-05 19:10:04 +00:00
ExpressionVariable.cpp Now persistent expression data no longer lives with the Target, but rather with 2015-09-30 19:57:57 +00:00
FunctionCaller.cpp Moved more Clang-specific parts of the expression parser into the Clang plugin. 2015-09-25 20:35:58 +00:00
IRDynamicChecks.cpp Removed many JIT workarounds from IRForTarget. 2016-02-13 00:01:46 +00:00
IRExecutionUnit.cpp Fix stripping of _ when looking for symbols in IRExecutionUnit. 2016-02-12 23:55:13 +00:00
IRInterpreter.cpp IRInterpreter now recognizes expressions with constants it doesn't handle. 2016-02-12 21:16:58 +00:00
IRMemoryMap.cpp Update for llvm change. NFC. 2016-01-18 20:57:54 +00:00
LLVMUserExpression.cpp AddInitialArguments -> AddArguments, and we pass in the struct_address and push it too. All the 2015-11-05 00:24:18 +00:00
Materializer.cpp Fixed a bug where the size of a type was used instead of the size of a pointer. 2015-11-10 21:48:05 +00:00
REPL.cpp Add -Wimplicit-fallthrough command line option to clang in 2016-02-16 04:14:33 +00:00
UserExpression.cpp Add the ability to pass an EvaluateExpressionOptions when you make a UserExpression. This 2015-11-03 02:11:24 +00:00
UtilityFunction.cpp Reduce header inclusion in Expression. 2015-10-07 17:22:54 +00:00