[clang-tools-extra] r351818 - Fix "missing field 'ClangTidyOpts' initializer" warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 22 05:35:17 PST 2019
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;
More information about the cfe-commits
mailing list