forked from qt-creator/qt-creator
ClangTools: Remove clang static analyzer
...since it's superseded by the tidy integration. Change-Id: Idafa5e1fb5129b1af8e42231a664684d4b90821f Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include "clangtoolspreconfiguredsessiontests.h"
|
||||
|
||||
#include "clangtoolsdiagnostic.h"
|
||||
#include "clangstaticanalyzertool.h"
|
||||
#include "clangtidyclazytool.h"
|
||||
#include "clangtoolsutils.h"
|
||||
|
||||
#include <cpptools/compileroptionsbuilder.h>
|
||||
@@ -120,13 +120,13 @@ void PreconfiguredSessionTests::testPreconfiguredSession()
|
||||
|
||||
QVERIFY(switchToProjectAndTarget(project, target));
|
||||
|
||||
ClangStaticAnalyzerTool::instance()->startTool(false);
|
||||
QSignalSpy waitUntilAnalyzerFinished(ClangStaticAnalyzerTool::instance(), SIGNAL(finished(bool)));
|
||||
ClangTidyClazyTool::instance()->startTool(false);
|
||||
QSignalSpy waitUntilAnalyzerFinished(ClangTidyClazyTool::instance(), SIGNAL(finished(bool)));
|
||||
QVERIFY(waitUntilAnalyzerFinished.wait(30000));
|
||||
const QList<QVariant> arguments = waitUntilAnalyzerFinished.takeFirst();
|
||||
const bool analyzerFinishedSuccessfully = arguments.first().toBool();
|
||||
QVERIFY(analyzerFinishedSuccessfully);
|
||||
QCOMPARE(ClangStaticAnalyzerTool::instance()->diagnostics().count(), 0);
|
||||
QCOMPARE(ClangTidyClazyTool::instance()->diagnostics().count(), 0);
|
||||
}
|
||||
|
||||
static QList<Project *> validProjects(const QList<Project *> projectsOfSession)
|
||||
|
||||
Reference in New Issue
Block a user