projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e446f04
)
[clangd] Fix clang -Wimplicit-fallthrough
author
Fangrui Song
<maskray@google.com>
Fri, 2 Nov 2018 04:23:50 +0000
(
04:23
+0000)
committer
Fangrui Song
<maskray@google.com>
Fri, 2 Nov 2018 04:23:50 +0000
(
04:23
+0000)
llvm-svn: 345952
clang-tools-extra/clangd/CodeComplete.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/CodeComplete.cpp
b/clang-tools-extra/clangd/CodeComplete.cpp
index
27f57f2
..
3bfde61
100644
(file)
--- a/
clang-tools-extra/clangd/CodeComplete.cpp
+++ b/
clang-tools-extra/clangd/CodeComplete.cpp
@@
-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.