From 90ad9024861641b5535eaa6d2dd302e3f04559ea Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 17 May 2021 12:02:42 +0200 Subject: Utils: Remove CommandLine argument from QtcProcess::run{,Blocking} Makes run() more similar to what start() looks like. Also add some asserts to make sure run() and related functions are only called on SyncronousProcesses, as these are currently the only ones where this works. Change-Id: Idee6076c3f40a484db5c17f5bb348698cc83d220 Reviewed-by: Christian Stenger --- src/plugins/clangtools/executableinfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/clangtools/executableinfo.cpp') diff --git a/src/plugins/clangtools/executableinfo.cpp b/src/plugins/clangtools/executableinfo.cpp index 7348e420ba..71d9554056 100644 --- a/src/plugins/clangtools/executableinfo.cpp +++ b/src/plugins/clangtools/executableinfo.cpp @@ -54,8 +54,9 @@ static QString runExecutable(const Utils::CommandLine &commandLine, Environment env = Environment::systemEnvironment(); Environment::setupEnglishOutput(&env); cpp.setEnvironment(env); + cpp.setCommand(commandLine); - cpp.runBlocking(commandLine); + cpp.runBlocking(); if (cpp.result() != QtcProcess::Finished && (failSilently == FailSilently::No || cpp.result() != QtcProcess::FinishedError)) { -- cgit v1.2.1