From 15b6eaa47b348efaae4756cd2a095dc78273337d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 21 Sep 2021 13:48:26 +0200 Subject: [PATCH] ClangCodeModel: Switch off clang-tidy in clangd We have our own dedicated clang-tidy support, so let's not confuse users. Change-Id: I69a32de3ac96ad2c51d70c82a9eb62f811e65460 Reviewed-by: Christian Stenger --- src/plugins/clangcodemodel/clangdclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/clangcodemodel/clangdclient.cpp b/src/plugins/clangcodemodel/clangdclient.cpp index 43ebc650c0a..d8b54cdf82d 100644 --- a/src/plugins/clangcodemodel/clangdclient.cpp +++ b/src/plugins/clangcodemodel/clangdclient.cpp @@ -448,7 +448,8 @@ static BaseClientInterface *clientInterface(Project *project, const Utils::FileP const CppEditor::ClangdSettings settings(CppEditor::ClangdProjectSettings(project).settings()); if (!settings.indexingEnabled()) indexingOption += "=0"; - Utils::CommandLine cmd{settings.clangdFilePath(), {indexingOption, "--limit-results=0"}}; + Utils::CommandLine cmd{settings.clangdFilePath(), {indexingOption, "--limit-results=0", + "--clang-tidy=0"}}; if (settings.workerThreadLimit() != 0) cmd.addArg("-j=" + QString::number(settings.workerThreadLimit())); if (!jsonDbDir.isEmpty())