From 6202a3ad67d776179cb2952cd1b3dafcc2d04998 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 22 Jan 2019 13:35:16 +0000 Subject: [PATCH] Fix "missing field 'ClangTidyOpts' initializer" warning. NFCI. llvm-svn: 351818 --- clang-tools-extra/clangd/CodeComplete.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp index 5a5eb8cd6310..40b4c78d2093 100644 --- a/clang-tools-extra/clangd/CodeComplete.cpp +++ b/clang-tools-extra/clangd/CodeComplete.cpp @@ -1019,8 +1019,9 @@ bool semaCodeComplete(std::unique_ptr Consumer, llvm::IntrusiveRefCntPtr 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;