forked from qt-creator/qt-creator
ClangTools: Run clang-tidy and clazy separately
They are two different tools and should not have been merged into a single runner in the first place. People can now actively decide to run clazy if they really want to, rather than getting confronted with its increasingly irrelevant complaints by default. We keep the common settings widget for now. Change-Id: I3c2b1db8c07ff5c128700d4a1deefd710967568a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -99,13 +99,15 @@ void PreconfiguredSessionTests::testPreconfiguredSession()
|
||||
|
||||
QVERIFY(switchToProjectAndTarget(project, target));
|
||||
|
||||
ClangTool::instance()->startTool(ClangTool::FileSelectionType::AllFiles);
|
||||
QSignalSpy waitUntilAnalyzerFinished(ClangTool::instance(), SIGNAL(finished(bool)));
|
||||
QVERIFY(waitUntilAnalyzerFinished.wait(30000));
|
||||
const QList<QVariant> arguments = waitUntilAnalyzerFinished.takeFirst();
|
||||
const bool analyzerFinishedSuccessfully = arguments.first().toBool();
|
||||
QVERIFY(analyzerFinishedSuccessfully);
|
||||
QCOMPARE(ClangTool::instance()->diagnostics().count(), 0);
|
||||
for (ClangTool * const tool : {ClangTidyTool::instance(), ClazyTool::instance()}) {
|
||||
tool->startTool(ClangTool::FileSelectionType::AllFiles);
|
||||
QSignalSpy waitUntilAnalyzerFinished(tool, SIGNAL(finished(bool)));
|
||||
QVERIFY(waitUntilAnalyzerFinished.wait(30000));
|
||||
const QList<QVariant> arguments = waitUntilAnalyzerFinished.takeFirst();
|
||||
const bool analyzerFinishedSuccessfully = arguments.first().toBool();
|
||||
QVERIFY(analyzerFinishedSuccessfully);
|
||||
QCOMPARE(tool->diagnostics().count(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
static const QList<Project *> validProjects(const QList<Project *> projectsOfSession)
|
||||
|
||||
Reference in New Issue
Block a user