From d334657133cb123b79e5998c151b5285fc204018 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Jul 2015 02:11:51 +0300 Subject: Ignore 'this' variable from internal checks. --- src/analysis/checks.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/analysis/checks.cpp b/src/analysis/checks.cpp index a520b4d..96a4631 100644 --- a/src/analysis/checks.cpp +++ b/src/analysis/checks.cpp @@ -60,7 +60,7 @@ std::string mergeCollection(const std::set &col) std::string str; FOR_EACH(it, col) { - str.append(it).append(","); + str.append("'").append(it).append("',"); } return str; } @@ -209,6 +209,10 @@ void checkState(CallExprNode *node, const WalkItem &wi) else { col1 = getCollection(node, name, wi); + if (isIn("this", col1)) + { + col1.erase("this"); + } col2 = splitArgs(args[2], 0); } if (args[0] == "=") -- cgit v1.2.3-70-g09d2