From ecc2e00a383766bdaabf97c35899a7b05be79a63 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 17 Dec 2015 17:31:22 +0300 Subject: [PATCH] Don't proceed to outer scope once there's a match in this scope --- lib/symboldatabase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index a64d60c43ee..df9fd9f304d 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -2969,6 +2969,8 @@ const Token *Scope::checkVariable(const Token *tok, AccessControl varaccess, con break; } } + if (vType) + break; parent = parent->nestedIn; } }