[clang-tools-extra] r327184 - [clangd-fuzzer] Update ClangdLSPServer constructor call.

Matt Morehouse via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 9 15:02:22 PST 2018


Author: morehouse
Date: Fri Mar  9 15:02:22 2018
New Revision: 327184

URL: http://llvm.org/viewvc/llvm-project?rev=327184&view=rev
Log:
[clangd-fuzzer] Update ClangdLSPServer constructor call.

Build was broken by r326719.

Modified:
    clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp

Modified: clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp?rev=327184&r1=327183&r2=327184&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp (original)
+++ clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp Fri Mar  9 15:02:22 2018
@@ -14,6 +14,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "ClangdLSPServer.h"
+#include "ClangdServer.h"
 #include "CodeComplete.h"
 #include <sstream>
 
@@ -21,12 +22,10 @@ extern "C" int LLVMFuzzerTestOneInput(ui
   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<char *>(data), size));
   LSPServer.run(In);




More information about the cfe-commits mailing list