From d99f46c6eb8debaa1a14c122956177dc2a40ef9b Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Wed, 30 Sep 2020 11:02:05 +0200 Subject: [PATCH] [clangd] Fix fuzzer build after 7ba0779fbb41b6fa8 --- clang-tools-extra/clangd/fuzzer/clangd-fuzzer.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/clang-tools-extra/clangd/fuzzer/clangd-fuzzer.cpp b/clang-tools-extra/clangd/fuzzer/clangd-fuzzer.cpp index e620342499bf..41c603b5fd21 100644 --- a/clang-tools-extra/clangd/fuzzer/clangd-fuzzer.cpp +++ b/clang-tools-extra/clangd/fuzzer/clangd-fuzzer.cpp @@ -14,8 +14,6 @@ #include "ClangdLSPServer.h" #include "ClangdServer.h" -#include "CodeComplete.h" -#include "refactor/Rename.h" #include "support/ThreadsafeFS.h" #include #include @@ -33,12 +31,12 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) { /*Style=*/JSONStreamStyle::Delimited); RealThreadsafeFS FS; CodeCompleteOptions CCOpts; - CCOpts.EnableSnippets = false; - ClangdServer::Options Opts; + ClangdLSPServer::Options Opts; + Opts.CodeComplete.EnableSnippets = false; + Opts.UseDirBasedCDB = false; // Initialize and run ClangdLSPServer. - ClangdLSPServer LSPServer(*Transport, FS, CCOpts, RenameOptions(), llvm::None, - false, llvm::None, Opts); + ClangdLSPServer LSPServer(*Transport, FS, Opts); LSPServer.run(); return 0; }