[clangd] Fix clang -Wimplicit-fallthrough
authorFangrui Song <maskray@google.com>
Fri, 2 Nov 2018 04:23:50 +0000 (04:23 +0000)
committerFangrui Song <maskray@google.com>
Fri, 2 Nov 2018 04:23:50 +0000 (04:23 +0000)
llvm-svn: 345952

clang-tools-extra/clangd/CodeComplete.cpp

index 27f57f2..3bfde61 100644 (file)
@@ -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.