Cppcheck: Print clang command when --verbose is used and build dir is empty

This commit is contained in:
Daniel Marjamäki 2020-12-29 10:20:46 +01:00
parent 2898a2925d
commit 7719b27e44
1 changed files with 2 additions and 0 deletions

View File

@ -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;