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,15 +9168,11 @@ void Tokenizer::createSymbolDatabase()
} }
// Set function pointers // Set function pointers
const std::size_t functions = _symbolDatabase->functionScopes.size(); for (Token* tok = list.front(); tok != list.back(); tok = tok->next()) {
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% (")) { if (Token::Match(tok, "%var% (")) {
tok->function(_symbolDatabase->findFunction(tok)); tok->function(_symbolDatabase->findFunction(tok));
} }
} }
}
// Set variable pointers // Set variable pointers
for (Token* tok = list.front(); tok != list.back(); tok = tok->next()) { for (Token* tok = list.front(); tok != list.back(); tok = tok->next()) {