Forgot to commit a file in eb2962792f.

This commit is contained in:
PKEuS 2013-04-04 10:57:35 -07:00
parent eb2962792f
commit fd7c90f68d
1 changed files with 3 additions and 7 deletions

View File

@ -9168,13 +9168,9 @@ void Tokenizer::createSymbolDatabase()
}
// Set function pointers
const std::size_t functions = _symbolDatabase->functionScopes.size();
for (std::size_t i = 0; i < functions; ++i) {
const Scope * scope = _symbolDatabase->functionScopes[i];
for (Token* tok = scope->classStart->next(); tok != scope->classEnd; tok = tok->next()) {
if (Token::Match(tok, "%var% (")) {
tok->function(_symbolDatabase->findFunction(tok));
}
for (Token* tok = list.front(); tok != list.back(); tok = tok->next()) {
if (Token::Match(tok, "%var% (")) {
tok->function(_symbolDatabase->findFunction(tok));
}
}