forked from qt-creator/qt-creator
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 <christian.stenger@qt.io>
This commit is contained in:
@@ -448,7 +448,8 @@ static BaseClientInterface *clientInterface(Project *project, const Utils::FileP
|
|||||||
const CppEditor::ClangdSettings settings(CppEditor::ClangdProjectSettings(project).settings());
|
const CppEditor::ClangdSettings settings(CppEditor::ClangdProjectSettings(project).settings());
|
||||||
if (!settings.indexingEnabled())
|
if (!settings.indexingEnabled())
|
||||||
indexingOption += "=0";
|
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)
|
if (settings.workerThreadLimit() != 0)
|
||||||
cmd.addArg("-j=" + QString::number(settings.workerThreadLimit()));
|
cmd.addArg("-j=" + QString::number(settings.workerThreadLimit()));
|
||||||
if (!jsonDbDir.isEmpty())
|
if (!jsonDbDir.isEmpty())
|
||||||
|
Reference in New Issue
Block a user