Mercurial > hg > Papers > 2021 > anatofuz-master
view paper/src/createHeaderName2Info.pl @ 91:4232c9dc1431
update
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 05 Feb 2021 19:09:08 +0900 |
parents | 88ae1e4d83c6 |
children |
line wrap: on
line source
sub createHeaderNameToInfo { my ($fn, $search_root) = @_; my $dirname = dirname $fn; my $files = Gears::Util->find_headers_from_path($search_root); my $interface_name2headerpath = {}; #This process assumes that there are no header files of the same name for my $file (@{$files}) { if ($file =~ m|/(\w+)\.\w+$|) { my $file_name = $1; my $isInterface = Gears::Interface->isThisFileInterface($file); if (defined $interface_name2headerpath->{$file_name}) { next if ($file !~ m|$dirname|); } $interface_name2headerpath->{$file_name} = { path => $file, isInterface => $isInterface }; } } return $interface_name2headerpath; }