Fix the clangd-fuzzer build error.

This commit is contained in:
Haojian Wu 2020-02-26 10:12:49 +01:00
parent 34d0e1bd6d
commit 4feca71df0
1 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@
#include "ClangdServer.h"
#include "CodeComplete.h"
#include "FSProvider.h"
#include "refactor/Rename.h"
#include <cstdio>
#include <sstream>
@ -36,8 +37,8 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t *data, size_t size) {
ClangdServer::Options Opts;
// Initialize and run ClangdLSPServer.
ClangdLSPServer LSPServer(*Transport, FS, CCOpts, llvm::None, false,
llvm::None, Opts);
ClangdLSPServer LSPServer(*Transport, FS, CCOpts, RenameOptions(), llvm::None,
false, llvm::None, Opts);
LSPServer.run();
return 0;
}