summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/clangd/CodeComplete.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp
index 40b4c78d209..e1be6b4527d 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -1019,9 +1019,11 @@ bool semaCodeComplete(std::unique_ptr<CodeCompleteConsumer> Consumer,
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS = Input.VFS;
if (Input.Preamble && Input.Preamble->StatCache)
VFS = Input.Preamble->StatCache->getConsumingFS(std::move(VFS));
- auto CI = buildCompilerInvocation(
- ParseInputs{Input.Command, VFS, Input.Contents,
- tidy::ClangTidyOptions::getDefaults()});
+ ParseInputs PInput;
+ PInput.CompileCommand = Input.Command;
+ PInput.FS = VFS;
+ PInput.Contents = Input.Contents;
+ auto CI = buildCompilerInvocation(PInput);
if (!CI) {
elog("Couldn't create CompilerInvocation");
return false;
OpenPOWER on IntegriCloud