From c7e5a4554b0b829096a9d1d87f1f8a918044324d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Jun 2015 19:35:07 +0300 Subject: Skip for analysis first function parameter if it names "this". --- src/analysis/function.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/analysis/function.cpp b/src/analysis/function.cpp index 37078c3..4d7f73b 100644 --- a/src/analysis/function.cpp +++ b/src/analysis/function.cpp @@ -128,6 +128,8 @@ void analyseFunction(FunctionDeclNode *node, const WalkItem &wi, WalkItem &wo) if (!type || type->nodeType != POINTER_TYPE) continue; const ParmDeclNode *const name = node->args[f]; + if (f == 0 && name->label == "this") + continue; if (nonNull.find(f + 1) == nonNull.end()) { if (command == Command::FindArgs) -- cgit v1.2.3-60-g2f50