From 3db0e7ef8f1b91f14118e63ab5d65560dcc9e35b Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Sun, 27 Feb 2011 10:35:59 -0500 Subject: [PATCH] fix symbol database bug where delete can be considered a variable declaration --- lib/symboldatabase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index f7e37ef8f..03ccd8b00 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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();