Verification; printing debug output on std::cout

This commit is contained in:
Daniel Marjamäki 2020-01-01 19:57:38 +01:00
parent fc5fd3c40c
commit e32c01b13c
1 changed files with 3 additions and 1 deletions

View File

@ -1979,6 +1979,8 @@ void ExprEngine::runChecks(ErrorLogger *errorLogger, const Tokenizer *tokenizer,
std::ostringstream report;
ExprEngine::executeAllFunctions(tokenizer, settings, callbacks, report);
if (errorLogger && !settings->verificationReport.empty() && !report.str().empty())
if (settings->verificationReport.empty())
std::cout << report.str();
else if (errorLogger)
errorLogger->reportVerification(report.str());
}