From afacada94ba69f1a902253676da2557a308b464e Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Fri, 9 Mar 2018 23:02:22 +0000 Subject: [PATCH] [clangd-fuzzer] Update ClangdLSPServer constructor call. Build was broken by r326719. llvm-svn: 327184 --- clang-tools-extra/clangd/fuzzer/ClangdFuzzer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/clang-tools-extra/clangd/fuzzer/ClangdFuzzer.cpp b/clang-tools-extra/clangd/fuzzer/ClangdFuzzer.cpp index 266da4ed..3321222 100644 --- a/clang-tools-extra/clangd/fuzzer/ClangdFuzzer.cpp +++ b/clang-tools-extra/clangd/fuzzer/ClangdFuzzer.cpp @@ -14,6 +14,7 @@ //===----------------------------------------------------------------------===// #include "ClangdLSPServer.h" +#include "ClangdServer.h" #include "CodeComplete.h" #include @@ -21,12 +22,10 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) { clang::clangd::JSONOutput Out(llvm::nulls(), llvm::nulls(), nullptr); clang::clangd::CodeCompleteOptions CCOpts; CCOpts.EnableSnippets = false; + clang::clangd::ClangdServer::Options Opts; // Initialize and run ClangdLSPServer. - clang::clangd::ClangdLSPServer LSPServer( - Out, clang::clangd::getDefaultAsyncThreadsCount(), - /*StorePreamblesInMemory=*/false, CCOpts, llvm::None, llvm::None, - /*BuildDynamicSymbolIndex=*/false); + clang::clangd::ClangdLSPServer LSPServer(Out, CCOpts, llvm::None, Opts); std::istringstream In(std::string(reinterpret_cast(data), size)); LSPServer.run(In); -- 2.7.4