forked from qt-creator/qt-creator
ClangTools: Add action for running on current file
Ideally, we would build the particular file before running the analyzer, but not every project manager supports that. For now, skip building the project for this action. Change-Id: Ibc516c41dd0dbeb7b17b44c0ac35ae4b46ae801d Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -131,7 +131,7 @@ void ClangToolsUnitTests::testProject()
|
||||
clangToolsSettings->setDiagnosticConfigId(diagnosticConfig.id());
|
||||
clangToolsSettings->writeSettings();
|
||||
|
||||
tool->startTool(false);
|
||||
tool->startTool(ClangTidyClazyTool::FileSelection::AllFiles);
|
||||
QSignalSpy waiter(tool, SIGNAL(finished(bool)));
|
||||
QVERIFY(waiter.wait(30000));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user