From 7719b27e4482e1e59b25862f2795dc858b8f52d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 29 Dec 2020 10:20:46 +0100 Subject: [PATCH] Cppcheck: Print clang command when --verbose is used and build dir is empty --- lib/cppcheck.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 5785fe23a..c069917ce 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -350,6 +350,8 @@ unsigned int CppCheck::check(const std::string &path) if (!mSettings.buildDir.empty()) { std::ofstream fout(clangcmd); fout << exe << " " << args2 << " " << redirect2 << std::endl; + } else if (mSettings.verbose && !mSettings.quiet) { + mErrorLogger.reportOut(exe + " " + args2); } std::string output2;