#5593 - hang or --report-progress broken (does not report progress) : add reportProgress() call to SymbolDatabase
This commit is contained in:
parent
a9943fe6d0
commit
7d9ec01bdc
|
@ -47,6 +47,10 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
|
|||
|
||||
// find all scopes
|
||||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok ? tok->next() : nullptr) {
|
||||
// #5593 suggested to add here:
|
||||
_errorLogger->reportProgress(_tokenizer->getSourceFilePath(),
|
||||
"SymbolDatabase",
|
||||
tok->progressValue());
|
||||
// Locate next class
|
||||
if (Token::Match(tok, "class|struct|union|namespace ::| %var% {|:|::") &&
|
||||
tok->strAt(-1) != "friend") {
|
||||
|
|
Loading…
Reference in New Issue