Valgrind: Inline ValgrindToolRunner::executable

Change-Id: Ia714a5a322ae56b07360871f584ec6f9f1babb5b
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-05-31 09:17:50 +02:00
parent 6431b02947
commit 1976630bbc
4 changed files with 4 additions and 11 deletions

View File

@@ -25,7 +25,6 @@
#include "callgrindengine.h"
#include "callgrindtool.h"
#include "valgrindsettings.h"
#include <valgrind/callgrind/callgrindcontroller.h>
@@ -105,7 +104,7 @@ QStringList CallgrindToolRunner::toolArguments() const
arguments << "--callgrind-out-file=" + m_valgrindOutputFile.path();
arguments << Utils::ProcessArgs::splitArgs(m_settings.callgrindArguments.value());
arguments << ProcessArgs::splitArgs(m_settings.callgrindArguments.value());
return arguments;
}
@@ -117,7 +116,8 @@ QString CallgrindToolRunner::progressTitle() const
void CallgrindToolRunner::start()
{
appendMessage(tr("Profiling %1").arg(executable().toUserOutput()), Utils::NormalMessageFormat);
const FilePath executable = runControl()->commandLine().executable();
appendMessage(tr("Profiling %1").arg(executable.toUserOutput()), NormalMessageFormat);
return ValgrindToolRunner::start();
}

View File

@@ -1008,7 +1008,7 @@ void MemcheckToolPrivate::setupRunner(MemcheckToolRunner *runTool)
m_loadExternalLogFile->setDisabled(true);
const FilePath dir = runControl->project()->projectDirectory();
const QString name = runTool->executable().fileName();
const QString name = runControl->commandLine().executable().fileName();
m_errorView->setDefaultSuppressionFile(dir.pathAppended(name + ".supp"));

View File

@@ -122,11 +122,6 @@ void ValgrindToolRunner::stop()
m_runner.stop();
}
FilePath ValgrindToolRunner::executable() const
{
return runControl()->commandLine().executable();
}
QStringList ValgrindToolRunner::genericToolArguments() const
{
QString smcCheckValue;

View File

@@ -47,8 +47,6 @@ public:
void start() override;
void stop() override;
Utils::FilePath executable() const;
protected:
virtual QString progressTitle() const = 0;
virtual QStringList toolArguments() const = 0;