From f9bcd5c83c39218128ace724a1a452ecdc76492d Mon Sep 17 00:00:00 2001 From: firewave Date: Sun, 20 Oct 2024 15:38:04 +0200 Subject: [PATCH] cppcheck.cpp: fixed missing verbose logging of clang command when using build dir --- lib/cppcheck.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 4152e23d051c..ef719d649323 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -464,7 +464,8 @@ unsigned int CppCheck::checkClang(const FileWithDetails &file) if (!mSettings.buildDir.empty()) { std::ofstream fout(clangcmd); fout << exe << " " << args2 << " " << redirect2 << std::endl; - } else if (mSettings.verbose && !mSettings.quiet) { + } + if (mSettings.verbose && !mSettings.quiet) { mErrorLogger.reportOut(exe + " " + args2); }