Fix "missing field 'ClangTidyOpts' initializer" warning. NFCI.

llvm-svn: 351818
This commit is contained in:
Simon Pilgrim 2019-01-22 13:35:16 +00:00
parent aa6a4339ac
commit 6202a3ad67
1 changed files with 3 additions and 2 deletions

View File

@ -1019,8 +1019,9 @@ 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});
auto CI = buildCompilerInvocation(
ParseInputs{Input.Command, VFS, Input.Contents,
tidy::ClangTidyOptions::getDefaults()});
if (!CI) {
elog("Couldn't create CompilerInvocation");
return false;