From ef87abdfbffc3b69f5948841a1eae6722336148e Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 7 Jul 2020 10:01:58 +0200 Subject: [PATCH] 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 --- src/plugins/clangtools/executableinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/clangtools/executableinfo.cpp b/src/plugins/clangtools/executableinfo.cpp index 88cf579f0ee..6e7bb1fcd4f 100644 --- a/src/plugins/clangtools/executableinfo.cpp +++ b/src/plugins/clangtools/executableinfo.cpp @@ -64,7 +64,7 @@ static QString runExecutable(const Utils::CommandLine &commandLine, return {}; } - return response.allOutput(); + return response.stdOut(); } static QStringList queryClangTidyChecks(const QString &executable,