[PATCH] D96508: [clangd] Retire clang-tidy-checks flag.
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 11 07:37:50 PST 2021
njames93 created this revision.
njames93 added a reviewer: sammccall.
Herald added subscribers: usaxena95, kadircet, arphaman.
njames93 requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang.
In clangd-12 the ability to override what clang tidy checks should run was moved into config.
For the 13 release its a wise progression to remove the command line option for this.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96508
Files:
clang-tools-extra/clangd/tool/ClangdMain.cpp
Index: clang-tools-extra/clangd/tool/ClangdMain.cpp
===================================================================
--- clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -172,14 +172,6 @@
init(true),
};
-opt<std::string> ClangTidyChecks{
- "clang-tidy-checks",
- cat(Features),
- desc("List of clang-tidy checks to run (this will override "
- ".clang-tidy files). Only meaningful when -clang-tidy flag is on"),
- init(""),
-};
-
opt<CodeCompleteOptions::CodeCompletionParse> CodeCompletionParse{
"completion-parse",
cat(Features),
@@ -286,6 +278,7 @@
RetiredFlag<bool> RecoveryASTType("recovery-ast-type");
RetiredFlag<bool> AsyncPreamble("async-preamble");
RetiredFlag<bool> CollectMainFileRefs("collect-main-file-refs");
+RetiredFlag<std::string> ClangTidyChecks("clang-tidy-checks");
opt<int> LimitResults{
"limit-results",
@@ -833,10 +826,7 @@
Providers.push_back(provideClangTidyFiles(TFS));
if (EnableConfig)
Providers.push_back(provideClangdConfig());
- if (!ClangTidyChecks.empty())
- Providers.push_back(addTidyChecks(ClangTidyChecks));
- else
- Providers.push_back(provideDefaultChecks());
+ Providers.push_back(provideDefaultChecks());
Providers.push_back(disableUnusableChecks());
ClangTidyOptProvider = combine(std::move(Providers));
Opts.ClangTidyProvider = ClangTidyOptProvider;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96508.323011.patch
Type: text/x-patch
Size: 1446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210211/f714a6f6/attachment.bin>
More information about the cfe-commits
mailing list