forked from qt-creator/qt-creator
ClangTools: Prompt for files to analyze
If the run button is clicked, the user is prompted to select the files for analysis. Change-Id: I21e4ee6b7c14392a8c1a901ac7aa1c9c16e30f0d Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "clangfileinfo.h"
|
||||
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
#include <cpptools/projectinfo.h>
|
||||
|
||||
@@ -44,12 +46,15 @@ public:
|
||||
ClangTool(const QString &name);
|
||||
virtual ~ClangTool() = default;
|
||||
|
||||
virtual void startTool() = 0;
|
||||
virtual void startTool(bool askUserForFileSelection) = 0;
|
||||
|
||||
virtual QList<Diagnostic> read(const QString &filePath,
|
||||
const QString &logFilePath,
|
||||
QString *errorMessage) const = 0;
|
||||
|
||||
FileInfos collectFileInfos(ProjectExplorer::Project *project,
|
||||
bool askUserForFileSelection) const;
|
||||
|
||||
// For testing.
|
||||
QList<Diagnostic> diagnostics() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user