summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2019-08-23 12:07:33 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2019-08-23 13:07:27 +0000
commitabadd0f198ec3e1964ee5f2b45e91f1fc31aa767 (patch)
tree8eb9fa8c9472e77786b98eb88d153a0076630c9b /src/plugins
parentf62927868491b7ed7e7dbb76fa87883502799759 (diff)
downloadqt-creator-abadd0f198ec3e1964ee5f2b45e91f1fc31aa767.tar.gz
ClangTools: Tests: Fix tidy checks
Explicitly remove any by default enabled checks (e.g. static analyzer) otherwise we get more diagnostics than expected. Change-Id: I53e63a10001be8027e880dac01000bdca4a8f920 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/clangtools/clangtoolsunittests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/clangtools/clangtoolsunittests.cpp b/src/plugins/clangtools/clangtoolsunittests.cpp
index 99b35dae31..a4d300c844 100644
--- a/src/plugins/clangtools/clangtoolsunittests.cpp
+++ b/src/plugins/clangtools/clangtoolsunittests.cpp
@@ -87,7 +87,7 @@ static CppTools::ClangDiagnosticConfig configFor(const QString &tidyChecks,
config.setIsReadOnly(true);
config.setClangOptions(QStringList{QStringLiteral("-Wno-everything")});
config.setClangTidyMode(CppTools::ClangDiagnosticConfig::TidyMode::ChecksPrefixList);
- config.setClangTidyChecks(tidyChecks);
+ config.setClangTidyChecks("-*," + tidyChecks);
config.setClazyChecks(clazyChecks);
return config;
}