Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions pullproto.pl
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,22 @@ sub usage
else
{
# Paolo Capriotti - Simplify function regexp and fix bug for pointer and reference return types
my @a = $content =~ m/((const)?\s*(unsigned)?\s*\S+\s*[\*&]?)(\Q$function\E$matched?)\s*(\([^\)]*\)[^;]*);/m; # (Matt Spear) added \Q\E and $matched
my @a = $content =~ m/((const)?\s*(unsigned)?\s*\S+\s*[\*&]?)(\Q$function\E$matched?)\s*(\([^\)]*\))(\s*[^;]*?)\s*;/m; # (Matt Spear) added \Q\E and $matched
$pre = @a[0];
$fname = @a[3];
$post = @a[4];
($postpost = @a[5]) =~ s!override!!;
}
print "==\n";
my $toprint = "$pre$fname$post";
if ($class ne "")
if ($postpost !~ /=\s*0/) # avoid collecting pure virtual methods
{
$toprint = "$pre$class" . "::" . "$fname$post";
my $toprint = "$pre$fname$post$postpost";
if ($class ne "")
{
$toprint = "$pre$class" . "::" . "$fname$post$postpost";
}
$toprint =~ s/^\s*//;
print $toprint;
print "\n";
}
$toprint =~ s/^\s*//;
print $toprint;
print "\n";
}