ClangTools: Fix clazy output parsing

We must not paste stdout and stderr together, because if there is stderr
output (as in some versions of clazy), then the trailing messages will
make the JSON parsing fail.

Change-Id: Ia31efdf3376eeb2e232b32bb0cdb543345e2dbfc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-07-07 10:01:58 +02:00
parent dfd7bdd22a
commit ef87abdfbf

View File

@@ -64,7 +64,7 @@ static QString runExecutable(const Utils::CommandLine &commandLine,
return {};
}
return response.allOutput();
return response.stdOut();
}
static QStringList queryClangTidyChecks(const QString &executable,