report progress in TemplateSimplifier::simplifyTemplateInstantiations, as far as I see it can be very slow

This commit is contained in:
Daniel Marjamäki 2016-02-05 07:59:29 +01:00
parent 3b7948fb4e
commit 07f3930923
1 changed files with 2 additions and 0 deletions

View File

@ -1272,6 +1272,8 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
} }
} }
Token * const tok2 = *iter2; Token * const tok2 = *iter2;
if (errorlogger && !tokenlist.getFiles().empty())
errorlogger->reportProgress(tokenlist.getFiles()[0], "TemplateSimplifier::simplifyTemplateInstantiations()", tok2->progressValue());
assert(tokenlist.validateToken(tok2)); // that assertion fails on examples from #6021 assert(tokenlist.validateToken(tok2)); // that assertion fails on examples from #6021
if (tok2->str() != name) if (tok2->str() != name)
continue; continue;