Changed output of the program to print out the file name before

preprocessor.
This commit is contained in:
Reijo Tomperi 2009-01-19 19:00:36 +00:00
parent de28502bb1
commit adc116d0ef
1 changed files with 3 additions and 1 deletions

View File

@ -148,6 +148,8 @@ unsigned int CppCheck::check()
_errout.str("");
std::string fname = _filenames[c];
if (_settings._errorsOnly == false)
_errorLogger->reportOut(std::string("Checking ") + fname + std::string("..."));
Preprocessor preprocessor;
std::list<std::string> configurations;
@ -182,7 +184,7 @@ unsigned int CppCheck::check()
std::string codeWithoutCfg = Preprocessor::getcode(filedata, *it);
// If only errors are printed, print filename after the check
if (_settings._errorsOnly == false)
if (_settings._errorsOnly == false && it != configurations.begin())
_errorLogger->reportOut(std::string("Checking ") + fname + ": " + cfg + std::string("..."));
checkFile(codeWithoutCfg, _filenames[c].c_str());