[Lldb-commits] [lldb] r346519 - Annotate switch with LLVM_FALLTHROUGH

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 9 09:11:17 PST 2018


Author: adrian
Date: Fri Nov  9 09:11:17 2018
New Revision: 346519

URL: http://llvm.org/viewvc/llvm-project?rev=346519&view=rev
Log:
Annotate switch with LLVM_FALLTHROUGH

Modified:
    lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp
    lldb/trunk/tools/debugserver/source/RNBRemote.cpp

Modified: lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp?rev=346519&r1=346518&r2=346519&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp (original)
+++ lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp Fri Nov  9 09:11:17 2018
@@ -156,6 +156,7 @@ void DNBRegisterValueClass::Dump(const c
             DNBLogError(
                 "unsupported vector format %d, defaulting to hex bytes.",
                 info.format);
+            LLVM_FALLTHROUGH;
           case VectorOfUInt8:
             snprintf(str, sizeof(str), "%s", "uint8   { ");
             pos = str + strlen(str);

Modified: lldb/trunk/tools/debugserver/source/RNBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBRemote.cpp?rev=346519&r1=346518&r2=346519&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBRemote.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBRemote.cpp Fri Nov  9 09:11:17 2018
@@ -3690,7 +3690,7 @@ rnb_err_t RNBRemote::HandlePacket_v(cons
           return HandlePacket_ILLFORMED(
               __FILE__, __LINE__, p, "Could not parse signal in vCont packet");
       // Fall through to next case...
-
+        LLVM_FALLTHROUGH;
       case 'c':
         // Continue
         thread_action.state = eStateRunning;
@@ -3703,7 +3703,7 @@ rnb_err_t RNBRemote::HandlePacket_v(cons
           return HandlePacket_ILLFORMED(
               __FILE__, __LINE__, p, "Could not parse signal in vCont packet");
       // Fall through to next case...
-
+        LLVM_FALLTHROUGH;
       case 's':
         // Step
         thread_action.state = eStateStepping;




More information about the lldb-commits mailing list