Refactorization: Speedup function lookup in symboldatabase (#6277)
This commit is contained in:
parent
d53f2f583c
commit
9a679d1720
|
@ -1121,7 +1121,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
|
|||
// Set function call pointers
|
||||
for (const Token* tok = _tokenizer->list.front(); tok != _tokenizer->list.back(); tok = tok->next()) {
|
||||
if (Token::Match(tok, "%var% (")) {
|
||||
if (!tok->function())
|
||||
if (!tok->function() && tok->varId() == 0)
|
||||
const_cast<Token *>(tok)->function(findFunction(tok));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue