fix symbol database bug where delete can be considered a variable declaration
This commit is contained in:
parent
962183f964
commit
3db0e7ef8f
|
@ -1363,8 +1363,8 @@ void Scope::getVariableList()
|
||||||
else if (tok->str() == "__property")
|
else if (tok->str() == "__property")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// skip return
|
// skip return and delete
|
||||||
else if (tok->str() == "return")
|
else if (Token::Match(tok, "return|delete"))
|
||||||
{
|
{
|
||||||
while (tok->next()->str() != ";")
|
while (tok->next()->str() != ";")
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
|
|
Loading…
Reference in New Issue