look for function prototypes but don't save them in the symbol database yet

This commit is contained in:
Robert Reif 2011-03-13 22:59:25 -04:00
parent 47a90851f1
commit 3babf6a9eb
1 changed files with 17 additions and 0 deletions

View File

@ -438,6 +438,23 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
tok = tok1;
}
// function prototype
else if (Token::simpleMatch(argStart->link(), ") ;"))
{
/** @todo save function prototypes in database someday */
tok = argStart->link()->next();
continue;
}
// function returning function pointer prototype
else if (Token::simpleMatch(argStart->link(), ") ) (") &&
Token::simpleMatch(argStart->link()->tokAt(2)->link(), ") ;"))
{
/** @todo save function prototypes in database someday */
tok = argStart->link()->tokAt(2)->link()->next();
continue;
}
}
}
else if (scope->type == Scope::eFunction || scope->isLocal())