From de968e7ffed87c952b8a260296658324d6a053d1 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 30 May 2024 15:07:49 +0200 Subject: [PATCH] Cppcheck: Fix commandline usage The parameter added as first additional parameter is not a file path, but a string holding additional arguments. Amends 26cfa86969bf7ebde80e16d530800d1c30fb343b. Task-number: QTCREATORBUG-28586 Change-Id: I6808e491f59f7eda8a63c5c990a7cc9c084135b9 Reviewed-by: Marcus Tillmanns --- src/plugins/cppcheck/cppcheckrunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cppcheck/cppcheckrunner.cpp b/src/plugins/cppcheck/cppcheckrunner.cpp index d3f034e80b1..bcf663e46e2 100644 --- a/src/plugins/cppcheck/cppcheckrunner.cpp +++ b/src/plugins/cppcheck/cppcheckrunner.cpp @@ -115,7 +115,7 @@ void CppcheckRunner::checkQueued() CommandLine commandLine{m_binary, m_arguments, CommandLine::Raw}; FilePaths files = m_queue.begin().value(); - commandLine.addArg(m_queue.begin().key()); + commandLine.addArgs(m_queue.begin().key(), CommandLine::Raw); m_currentFiles.clear(); int argumentsLength = commandLine.arguments().length(); while (!files.isEmpty()) {