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")
|
||||
continue;
|
||||
|
||||
// skip return
|
||||
else if (tok->str() == "return")
|
||||
// skip return and delete
|
||||
else if (Token::Match(tok, "return|delete"))
|
||||
{
|
||||
while (tok->next()->str() != ";")
|
||||
tok = tok->next();
|
||||
|
|
Loading…
Reference in New Issue