[PATCH] D94411: [clangd] Fix -check mode doesn't respect any tidy configs.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 11 07:45:30 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa2dbf3443af7: [clangd] Fix -check mode doesn't respect any tidy configs. (authored by hokein).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94411/new/
https://reviews.llvm.org/D94411
Files:
clang-tools-extra/clangd/tool/Check.cpp
Index: clang-tools-extra/clangd/tool/Check.cpp
===================================================================
--- clang-tools-extra/clangd/tool/Check.cpp
+++ clang-tools-extra/clangd/tool/Check.cpp
@@ -123,6 +123,7 @@
std::vector<std::string> CC1Args;
Inputs.CompileCommand = Cmd;
Inputs.TFS = &TFS;
+ Inputs.ClangTidyProvider = Opts.ClangTidyProvider;
if (Contents.hasValue()) {
Inputs.Contents = *Contents;
log("Imaginary source file contents:\n{0}", Inputs.Contents);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94411.315807.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210111/6530c5b9/attachment.bin>
More information about the cfe-commits
mailing list