Author: rksimon
Date: Tue Jan 22 05:35:16 2019
New Revision: 351818

URL: http://llvm.org/viewvc/llvm-project?rev=351818&view=rev
Log:
Fix "missing field 'ClangTidyOpts' initializer" warning. NFCI.
Modified:
    clang-tools-extra/trunk/clangd/CodeComplete.cpp

Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CodeComplete.cpp?rev=351818&r1=351817&r2=351818&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original)
+++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Tue Jan 22 05:35:16 2019
@@ -1019,8 +1019,9 @@ bool semaCodeComplete(std::unique_ptr<Co
   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;


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to