ioeric created this revision. ioeric added reviewers: kadircet, sammccall. Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ilya-biryukov.
Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D57047 Files: clangd/CodeComplete.cpp 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<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;
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<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