[clang-tools-extra] r340263 - [clangd] NFC: Fix broken build
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 21 03:40:19 PDT 2018
Author: omtcyfz
Date: Tue Aug 21 03:40:19 2018
New Revision: 340263
URL: http://llvm.org/viewvc/llvm-project?rev=340263&view=rev
Log:
[clangd] NFC: Fix broken build
Modified:
clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp?rev=340263&r1=340262&r2=340263&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Tue Aug 21 03:40:19 2018
@@ -29,6 +29,11 @@
using namespace clang;
using namespace clang::clangd;
+static llvm::cl::opt<bool>
+ UseDex("use-dex-index",
+ llvm::cl::desc("Use experimental Dex static index."),
+ llvm::cl::init(false), llvm::cl::Hidden);
+
namespace {
enum class PCHStorageFlag { Disk, Memory };
@@ -47,7 +52,7 @@ std::unique_ptr<SymbolIndex> buildStatic
for (auto Sym : Slab)
SymsBuilder.insert(Sym);
- return UseDex ? DexIndex::build(std::move(SymsBuilder).build())
+ return UseDex ? dex::DexIndex::build(std::move(SymsBuilder).build())
: MemIndex::build(std::move(SymsBuilder).build());
}
@@ -189,11 +194,6 @@ static llvm::cl::opt<CompileArgsFrom> Co
"'compile_commands.json' files")),
llvm::cl::init(FilesystemCompileArgs), llvm::cl::Hidden);
-static llvm::cl::opt<bool>
- UseDex("use-dex-index",
- llvm::cl::desc("Use experimental Dex static index."),
- llvm::cl::init(false), llvm::cl::Hidden);
-
int main(int argc, char *argv[]) {
llvm::sys::PrintStackTraceOnErrorSignal(argv[0]);
llvm::cl::SetVersionPrinter([](llvm::raw_ostream &OS) {
More information about the cfe-commits
mailing list