fix symbol database bug where delete can be considered a variable declaration

This commit is contained in:
Robert Reif 2011-02-27 10:35:59 -05:00
parent 962183f964
commit 3db0e7ef8f
1 changed files with 2 additions and 2 deletions

View File

@ -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();