| 1327 | } |
| 1328 | |
| 1329 | static bool isOnlyUsedInCurrentScope(const Variable* var, const Token *tok, const Scope* scope) |
| 1330 | { |
| 1331 | if (tok->scope() == scope) |
| 1332 | return true; |
| 1333 | if (tok->scope()->type == ScopeType::eSwitch) |
| 1334 | return false; |
| 1335 | return !Token::findmatch(tok->scope()->bodyEnd, "%varid%", var->scope()->bodyEnd, var->declarationId()); |
| 1336 | } |
| 1337 | |
| 1338 | bool CheckOtherImpl::checkInnerScope(const Token *tok, const Variable* var, bool& used) const |
| 1339 | { |