CppCheck: Improve output when first configuration is not empty.

This commit is contained in:
Daniel Marjamäki 2017-04-06 19:52:21 +02:00
parent 50da7d4919
commit 70a7915173
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin
cfg = *it; cfg = *it;
// If only errors are printed, print filename after the check // If only errors are printed, print filename after the check
if (_settings.quiet == false && it != configurations.begin()) { if (_settings.quiet == false && (!cfg.empty() || it != configurations.begin())) {
std::string fixedpath = Path::simplifyPath(filename); std::string fixedpath = Path::simplifyPath(filename);
fixedpath = Path::toNativeSeparators(fixedpath); fixedpath = Path::toNativeSeparators(fixedpath);
_errorLogger.reportOut("Checking " + fixedpath + ": " + cfg + "..."); _errorLogger.reportOut("Checking " + fixedpath + ": " + cfg + "...");