[clang-tools-extra] r352857 - [clangd] Unbreak fuzzer target
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 1 03:09:06 PST 2019
Author: sammccall
Date: Fri Feb 1 03:09:06 2019
New Revision: 352857
URL: http://llvm.org/viewvc/llvm-project?rev=352857&view=rev
Log:
[clangd] Unbreak fuzzer target
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=352857&r1=352856&r2=352857&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp (original)
+++ clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp Fri Feb 1 03:09:06 2019
@@ -15,6 +15,7 @@
#include "ClangdLSPServer.h"
#include "ClangdServer.h"
#include "CodeComplete.h"
+#include "FSProvider.h"
#include <cstdio>
#include <sstream>
@@ -29,12 +30,13 @@ extern "C" int LLVMFuzzerTestOneInput(ui
auto Transport = newJSONTransport(In, llvm::nulls(),
/*InMirror=*/nullptr, /*Pretty=*/false,
/*Style=*/JSONStreamStyle::Standard);
+ RealFileSystemProvider FS;
CodeCompleteOptions CCOpts;
CCOpts.EnableSnippets = false;
ClangdServer::Options Opts;
// Initialize and run ClangdLSPServer.
- ClangdLSPServer LSPServer(*Transport, CCOpts, llvm::None, false, Opts);
+ ClangdLSPServer LSPServer(*Transport, FS, CCOpts, llvm::None, false, Opts);
LSPServer.run();
return 0;
}
More information about the cfe-commits
mailing list