[PATCH] D57047: [clangd] Fix broken build after r351793.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 22 04:51:29 PST 2019


ioeric created this revision.
ioeric added reviewers: kadircet, sammccall.
Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ilya-biryukov.

Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D57047

Files:
  clangd/CodeComplete.cpp


Index: clangd/CodeComplete.cpp
===================================================================
--- clangd/CodeComplete.cpp
+++ clangd/CodeComplete.cpp
@@ -18,6 +18,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "CodeComplete.h"
+#include "../clang-tidy/ClangTidyOptions.h"
 #include "AST.h"
 #include "ClangdUnit.h"
 #include "CodeCompletionStrings.h"
@@ -1019,8 +1020,9 @@
   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});
+  auto CI = buildCompilerInvocation(
+      ParseInputs{Input.Command, VFS, Input.Contents,
+                  tidy::ClangTidyOptions::getDefaults()});
   if (!CI) {
     elog("Couldn't create CompilerInvocation");
     return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57047.182890.patch
Type: text/x-patch
Size: 949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190122/4c6924e1/attachment.bin>


More information about the cfe-commits mailing list