Verification; printing debug output on std::cout
This commit is contained in:
parent
fc5fd3c40c
commit
e32c01b13c
|
@ -1979,6 +1979,8 @@ void ExprEngine::runChecks(ErrorLogger *errorLogger, const Tokenizer *tokenizer,
|
||||||
|
|
||||||
std::ostringstream report;
|
std::ostringstream report;
|
||||||
ExprEngine::executeAllFunctions(tokenizer, settings, callbacks, 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());
|
errorLogger->reportVerification(report.str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue