From c3a1b41fb33f105c27af0edc8f1c34e8ac826555 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 30 May 2024 15:10:23 +0200 Subject: [PATCH] Cppcheck: Fix handling of default executable On Unix we set the default just to cppcheck and mark it even as valid if it can be found in PATH. But when running we silently fail as we expect a full path before launching the executable. Use the effective binary instead. Change-Id: I03393b1d227c595da5142fce6b8bea5210a15747 Reviewed-by: Marcus Tillmanns Reviewed-by: Orgad Shaneh --- src/plugins/cppcheck/cppchecktool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cppcheck/cppchecktool.cpp b/src/plugins/cppcheck/cppchecktool.cpp index 84479a78be5..85a17d92df4 100644 --- a/src/plugins/cppcheck/cppchecktool.cpp +++ b/src/plugins/cppcheck/cppchecktool.cpp @@ -101,7 +101,7 @@ void CppcheckTool::updateArguments() arguments.push_back("--template=\"{file},{line},{severity},{id},{message}\""); - m_runner->reconfigure(s.binary(), arguments.join(' ')); + m_runner->reconfigure(s.binary.effectiveBinary(), arguments.join(' ')); } QStringList CppcheckTool::additionalArguments(const CppEditor::ProjectPart &part) const