5 # -----------------------------------------------------------------------------
11 # Search for *.[H] files with 'InClass', 'InNamespace' or 'Type'
12 # starting in the first column.
13 # In some places these could removed. In other places they should be
14 # replaced with a 'Typedef'
15 # - print filename and the tag (InClass|InNamespace|Type)
17 # -----------------------------------------------------------------------------
19 my $re_filespec = qr{^.+\.[H]$};
21 # for the convenience of &wanted calls, including -eval statements:
22 ## use vars qw( *name *dir *prune );
23 ## *name = *File::Find::name;
24 ## *dir = *File::Find::dir;
25 ## *prune = *File::Find::prune;
28 unless ( lstat($_) and -f _
and -r _
and not -l _
and /$re_filespec/ ) {
34 if (/^(InClass|InNamespace|Type)\s*$/) {
35 print "$File::Find::name $1 line=$.\n";
42 ## Traverse desired filesystems
44 no warnings
'File::Find';
45 warn "(**) checking '$dir' ...\n";
46 File
::Find
::find
( { wanted
=> \
&wanted
}, $dir );