Tokenizer: Only create 1 symbol database. ticket: #2468
This commit is contained in:
parent
a83aced2ec
commit
69eee86ee4
|
@ -7950,8 +7950,7 @@ void Tokenizer::simplifyStd()
|
||||||
|
|
||||||
const Token *Tokenizer::getFunctionTokenByName(const char funcname[]) const
|
const Token *Tokenizer::getFunctionTokenByName(const char funcname[]) const
|
||||||
{
|
{
|
||||||
if (_symbolDatabase == NULL)
|
getSymbolDatabase();
|
||||||
getSymbolDatabase();
|
|
||||||
|
|
||||||
std::list<Scope *>::const_iterator i;
|
std::list<Scope *>::const_iterator i;
|
||||||
|
|
||||||
|
@ -7971,7 +7970,7 @@ const Token *Tokenizer::getFunctionTokenByName(const char funcname[]) const
|
||||||
|
|
||||||
void Tokenizer::fillFunctionList()
|
void Tokenizer::fillFunctionList()
|
||||||
{
|
{
|
||||||
_symbolDatabase = new SymbolDatabase(this, _settings, _errorLogger);
|
getSymbolDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue