diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-23 02:11:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-23 02:11:51 +0300 |
commit | d334657133cb123b79e5998c151b5285fc204018 (patch) | |
tree | 24daefd7be4381364cf6bf08b6ef3b3a7fbdd159 | |
parent | c8774654eebc90f1cd1a4e7bcec6252fd89db1d8 (diff) | |
download | paranucker-d334657133cb123b79e5998c151b5285fc204018.tar.gz paranucker-d334657133cb123b79e5998c151b5285fc204018.tar.bz2 paranucker-d334657133cb123b79e5998c151b5285fc204018.tar.xz paranucker-d334657133cb123b79e5998c151b5285fc204018.zip |
Ignore 'this' variable from internal checks.
-rw-r--r-- | src/analysis/checks.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<std::string> &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] == "=") |