forked from OSchip/llvm-project
[clangd] Fix fuzzer build after 7ba0779fbb
This commit is contained in:
parent
6342b38c5f
commit
d99f46c6eb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue