This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix: local variable hiding parameter of same name
authorJames E Keenan <jkeenan@cpan.org>
Fri, 8 Nov 2019 15:17:50 +0000 (10:17 -0500)
committerJames E Keenan <jkeenan@cpan.org>
Tue, 12 Nov 2019 19:50:59 +0000 (19:50 +0000)
commit35bc1e35279523a59fee1761d7505ff5c04638c0
tree2f4a788c40bd59c3c28fc2e2ef6fc646db67cb9a
parentecfd8588da8b6d2b74d6476d4d1c9e40c7de8b8c
Fix: local variable hiding parameter of same name

LGTM provides static code analysis and recommendations for code quality
improvements.  Their recent run over the Perl 5 core distribution
identified 12 instances where a local variable hid a parameter of
the same name in an outer scope.  The LGTM rule governing this situation
can be found here:

Per: https://lgtm.com/rules/2156240606/

This patch renames local variables in approximately 8 of those instances
to comply with the LGTM recommendation.  Suggestions for renamed
variables were made by Tony Cook.

For: https://github.com/Perl/perl5/pull/17281
hv.c
mg.c
mro_core.c
sv.c
toke.c
utf8.c
util.c