diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp --- a/clang-tools-extra/clangd/tool/ClangdMain.cpp +++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp @@ -172,14 +172,6 @@ init(true), }; -opt 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 CodeCompletionParse{ "completion-parse", cat(Features), @@ -287,6 +279,7 @@ RetiredFlag AsyncPreamble("async-preamble"); RetiredFlag CollectMainFileRefs("collect-main-file-refs"); RetiredFlag CrossFileRename("cross-file-rename"); +RetiredFlag ClangTidyChecks("clang-tidy-checks"); opt LimitResults{ "limit-results", @@ -826,10 +819,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;