ClangTools: Clean up plugin tests

We can provide the run settings explicitly instead of writing to the
settings.

Change-Id: Ibb9ef0280c14315ff7ba72be75dfd04c50d84484
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Nikolai Kosjar
2019-09-25 15:39:32 +02:00
parent 44ddc028b5
commit d2648db914
4 changed files with 38 additions and 39 deletions

View File

@@ -52,6 +52,7 @@ namespace Internal {
class ClangToolsDiagnosticModel;
class Diagnostic;
class DiagnosticFilterModel;
class RunSettings;
const char ClangTidyClazyPerspectiveId[] = "ClangTidyClazy.Perspective";
@@ -73,12 +74,13 @@ public:
AskUser,
};
void startTool(FileSelection fileSelection);
void startTool(const RunSettings &runSettings, FileSelection fileSelection);
Diagnostics read(OutputFileFormat outputFileFormat,
const QString &logFilePath,
const QString &mainFilePath,
const QSet<Utils::FilePath> &projectFiles,
QString *errorMessage) const;
const QString &logFilePath,
const QString &mainFilePath,
const QSet<Utils::FilePath> &projectFiles,
QString *errorMessage) const;
FileInfos collectFileInfos(ProjectExplorer::Project *project,
FileSelection fileSelection) const;