[clang-tools-extra] r332233 - [clangd] Fix warning after fully covered enum switch. NFC.
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon May 14 04:47:30 PDT 2018
Author: ibiryukov
Date: Mon May 14 04:47:30 2018
New Revision: 332233
URL: http://llvm.org/viewvc/llvm-project?rev=332233&view=rev
Log:
[clangd] Fix warning after fully covered enum switch. NFC.
By adding llvm_unreachable.
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=332233&r1=332232&r2=332233&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original)
+++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Mon May 14 04:47:30 2018
@@ -828,6 +828,7 @@ bool allowIndex(CodeCompletionContext &C
case NestedNameSpecifier::Identifier:
return false;
}
+ llvm_unreachable("invalid NestedNameSpecifier kind");
}
} // namespace
More information about the cfe-commits
mailing list