Skip to content

Commit 24c259c

Browse files
committed
Do not shadow name from outer scope
1 parent 3452d2b commit 24c259c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygccxml/declarations/scopedef.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,9 @@ def __findout_range(self, name, decl_type, recursive):
456456
name = None
457457

458458
if name and decl_type:
459-
matcher = scopedef_t._impl_matchers[scopedef_t.decl](name=name)
460-
if matcher.is_full_name():
461-
name = matcher.decl_name_only
459+
impl_match = scopedef_t._impl_matchers[scopedef_t.decl](name=name)
460+
if impl_match.is_full_name():
461+
name = impl_match.decl_name_only
462462
if recursive:
463463
self._logger.debug(
464464
'query has been optimized on type and name')

0 commit comments

Comments
 (0)