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 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;