fix a bug in symbol database while scope processing
This commit is contained in:
parent
b74ebbda02
commit
2b03bfaf38
|
@ -432,7 +432,7 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
|
||||||
Token::simpleMatch(tok->next()->link(), ") {"))
|
Token::simpleMatch(tok->next()->link(), ") {"))
|
||||||
{
|
{
|
||||||
scope = new Scope(this, tok, scope, Scope::eWhile, tok->next()->link()->next());
|
scope = new Scope(this, tok, scope, Scope::eWhile, tok->next()->link()->next());
|
||||||
tok = tok->next()->link()->next()->link();
|
tok = tok->next()->link()->next();
|
||||||
scopeList.push_back(scope);
|
scopeList.push_back(scope);
|
||||||
}
|
}
|
||||||
else if (Token::simpleMatch(tok, "do {"))
|
else if (Token::simpleMatch(tok, "do {"))
|
||||||
|
|
Loading…
Reference in New Issue