[clang-tools-extra] r345952 - [clangd] Fix clang -Wimplicit-fallthrough

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 1 21:23:50 PDT 2018


Author: maskray
Date: Thu Nov  1 21:23:50 2018
New Revision: 345952

URL: http://llvm.org/viewvc/llvm-project?rev=345952&view=rev
Log:
[clangd] Fix clang -Wimplicit-fallthrough

Modified:
    clang-tools-extra/trunk/clangd/CodeComplete.cpp

Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CodeComplete.cpp?rev=345952&r1=345951&r2=345952&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original)
+++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Thu Nov  1 21:23:50 2018
@@ -219,7 +219,7 @@ struct CompletionCandidate {
       case index::SymbolKind::InstanceMethod:
       case index::SymbolKind::StaticMethod:
         assert(false && "Don't expect members from index in code completion");
-        // fall through
+        LLVM_FALLTHROUGH;
       case index::SymbolKind::Function:
         // We can't group overloads together that need different #includes.
         // This could break #include insertion.




More information about the cfe-commits mailing list