[clangd] Fix fuzzer build after 7ba0779fbb

This commit is contained in:
Sam McCall 2020-09-30 11:02:05 +02:00
parent 6342b38c5f
commit d99f46c6eb
1 changed files with 4 additions and 6 deletions

View File

@ -14,8 +14,6 @@
#include "ClangdLSPServer.h"
#include "ClangdServer.h"
#include "CodeComplete.h"
#include "refactor/Rename.h"
#include "support/ThreadsafeFS.h"
#include <cstdio>
#include <sstream>
@ -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;
}